RFR: 8301129: Link to debuginfo files should only be made after stripping
Magnus Ihse Bursie
ihse at openjdk.org
Thu Jan 26 16:19:19 UTC 2023
On Thu, 26 Jan 2023 04:05:37 GMT, Julian Waters <jwaters at openjdk.org> wrote:
> Links to debuginfo files should only be made after strip is run, as doing so before can cause strip to wreck the embedded link and make the executable entirely un-executable in certain strange cases. It's safer to always just make the link after strip is called regardless
Otherwise, it looks good!
make/common/NativeCompilation.gmk line 1067:
> 1065: $1_CREATE_DEBUGINFO_CMDS := \
> 1066: $$($1_OBJCOPY) --only-keep-debug $$($1_TARGET) $$($1_DEBUGINFO_FILES) $$(NEWLINE)
> 1067: $1_CREATE_DEBUGINFO_LINK_CMDS := $(CD) $$($1_SYMBOLS_DIR) && \
Maybe add a comment along the lines of "debuglink needs to be done after stripping"
-------------
Marked as reviewed by ihse (Reviewer).
PR: https://git.openjdk.org/jdk/pull/12209
More information about the build-dev
mailing list