https://sourceware.org/bugzilla/show_bug.cgi?id=32433
Bug ID: 32433
Summary: No zero terminator at the end of .eh_frame with
`-shared -nostdlib`
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: dm.chestnykh at gmail dot com
Target Milestone: ---
Consider the simple x.c file contains
`void foo(){}`
Compile and link it to the shared library via
`gcc x.c -fPIC -shared -o libfoo.so -nostdlib`
And after `readelf --debug-dump=frames libfoo.so`
there is no 'ZERO terminator' at the end of .eh_frame in the output.
The same issue is observed with ld.gold.
LLVM ld.lld and ld.mold put the CIE with zero length at the end of .eh_frame
even if there are no crtend.o with zero terminator in the linker prompt
Tested on x86-64 and aarch64
--
You are receiving this mail because:
You are on the CC list for the bug.