https://sourceware.org/bugzilla/show_bug.cgi?id=25490
--- Comment #4 from cvs-commit at gcc dot gnu.org <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=5242a0a000ad7d3f2fa1cd0023f692d53261b302 commit 5242a0a000ad7d3f2fa1cd0023f692d53261b302 Author: H.J. Lu <[email protected]> Date: Thu Feb 6 19:37:54 2020 -0800 ld: Issue an error for GC on __patchable_function_entries section __patchable_function_entries section is generated by a compiler with -fpatchable-function-entry=XX. The assembly code looks like this: --- .text .globl _start .type _start, %function _start: .section __patchable_function_entries,"aw",%progbits .dc.a .LPFE1 .text .LPFE1: .byte 0 --- But --gc-sections will silently remove __patchable_function_entries section and generate corrupt result. This patch disallows garbage collection on __patchable_function_entries section without linked-to section. bfd/ PR ld/25490 * elflink.c (_bfd_elf_gc_mark_extra_sections): Issue an error for garbage collection on __patchable_function_entries section without linked-to section. ld/ PR ld/25490 * testsuite/ld-elf/pr25490-1.d: New file. * testsuite/ld-elf/pr25490-1.s: Likewise. -- You are receiving this mail because: You are on the CC list for the bug.
