Closed sonntex closed 1 month ago
This pull request was exported from Phabricator. Differential Revision: D61148295
This pull request was exported from Phabricator. Differential Revision: D61148295
This pull request was exported from Phabricator. Differential Revision: D61148295
This pull request has been merged in facebook/hhvm@003593b43465f243be08f3c08dab2ac6da7e5fec.
Summary: X-link: https://github.com/facebook/folly/pull/2307
Fix .stapsdt.base section in FOLLY_SDT macro.
Ported .stapsdt.base initialization from sys/sdt.h https://github.com/jav/systemtap/blob/2da355dd02a18bf4f67e2ceeb504b351b4bd5b83/includes/sys/sdt.h#L174C1-L199C21.
This section might be discarded explicitly using --discard-section=.stapsdt.base https://fburl.com/code/0pbird2s or implicitly using --gc-sections https://fburl.com/code/iy16v9v8. Use linker script to keep it if your build system sets --gc-sections implicitly.
Reviewed By: nslingerland
Differential Revision: D61148295