[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/25490] __patchable_function_entries section doesn't work with --
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/25490] __patchable_function_entries section doesn't work with --gc-sections |
Date: |
Fri, 07 Feb 2020 03:42:41 +0000 |
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 <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5242a0a000ad7d3f2fa1cd0023f692d53261b302
commit 5242a0a000ad7d3f2fa1cd0023f692d53261b302
Author: H.J. Lu <address@hidden>
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.
- [Bug ld/25490] New: __patchable_function_entries section doesn't work with --gc-sections, hjl.tools at gmail dot com, 2020/02/01
- [Bug ld/25490] __patchable_function_entries section doesn't work with --gc-sections, hjl.tools at gmail dot com, 2020/02/01
- [Bug ld/25490] __patchable_function_entries section doesn't work with --gc-sections, hjl.tools at gmail dot com, 2020/02/01
- [Bug ld/25490] __patchable_function_entries section doesn't work with --gc-sections, hjl.tools at gmail dot com, 2020/02/01
- [Bug ld/25490] __patchable_function_entries section doesn't work with --gc-sections, hjl.tools at gmail dot com, 2020/02/01
- [Bug ld/25490] __patchable_function_entries section doesn't work with --gc-sections, cvs-commit at gcc dot gnu.org, 2020/02/06
- [Bug ld/25490] __patchable_function_entries section doesn't work with --gc-sections,
cvs-commit at gcc dot gnu.org <=
- [Bug ld/25490] __patchable_function_entries section doesn't work with --gc-sections, hjl.tools at gmail dot com, 2020/02/06