https://sourceware.org/bugzilla/show_bug.cgi?id=34448
--- Comment #3 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d1268210b6f6eddd267a4ebe4b7d36b802af628d commit d1268210b6f6eddd267a4ebe4b7d36b802af628d Author: H.J. Lu <[email protected]> Date: Thu Jul 30 15:10:36 2026 +0800 ld: Don't define section symbols for excluded sections When the SEC_EXCLUDE bit is set on a section, for example, sections with the SHF_EXCLUDE flag bit set in ELF input, the contents of the section are excluded by the linker for non-relocatable output. Define __start, __stop, .startof. and .sizeof. symbols for relocatable link or if the SEC_EXCLUDE bit on the section is cleared. PR ld/34448 * ldlang.c (lang_init_start_stop): Call lang_define_start_stop for relocatable link or if the SEC_EXCLUDE bit on the section is cleared. Signed-off-by: H.J. Lu <[email protected]> -- You are receiving this mail because: You are on the CC list for the bug.
