Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update global ctor/dtor instrumentation for static executables #1355

Merged
merged 21 commits into from
Feb 23, 2023

Commits on Feb 17, 2023

  1. Configuration menu
    Copy the full SHA
    25900ac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ab97cea View commit details
    Browse the repository at this point in the history
  3. Separate ctor/dtor handling

    hainest committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    a9d3aa1 View commit details
    Browse the repository at this point in the history
  4. Modernize conversion loop

    hainest committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    a3ef2ea View commit details
    Browse the repository at this point in the history
  5. Add check for 'main' function

    If __libc_csu_init doesn't exist, try to insert the constructor call
    into the beginning of 'main'.
    hainest committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    af53b35 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8077cf9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    15ccdd9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a84ba3d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3dec492 View commit details
    Browse the repository at this point in the history
  10. Only run the irel checks if the libc function is found

    This just saves a bit of unneeded computation.
    hainest committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    08854e6 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    30b02a5 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8980ad2 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    581c0b7 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    e7e1241 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    244ffc1 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    5df2624 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    b522998 View commit details
    Browse the repository at this point in the history
  18. Use C-style strings for symbol names

    There's no need to have a std::string object that incurs the overhead of a constructor/destructor call to just hold a literal that's only visible in the current translation unit.
    hainest committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    3e5047b View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    632c3c4 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    904a9f0 View commit details
    Browse the repository at this point in the history
  21. x86: don't export add_handler

    hainest committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    b748030 View commit details
    Browse the repository at this point in the history