[Bug ld/32433] No zero terminator at the end of .eh_frame with `-shared -nostdlib`

2024-12-09 Thread dm.chestnykh at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32433 Dmitriy Chestnykh changed: What|Removed |Added CC||dm.chestnykh at gmail dot com

[Bug ld/32433] No zero terminator at the end of .eh_frame with `-shared -nostdlib`

2024-12-09 Thread dm.chestnykh at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32433 --- Comment #1 from Dmitriy Chestnykh --- The comment from LLVM lld's source code: "The LSB standard does not allow a .eh_frame section with zero Call Frame Information records. glibc unwind-dw2-fde.c classify_object_over_fdes expects there i

[Bug ld/32433] New: No zero terminator at the end of .eh_frame with `-shared -nostdlib`

2024-12-09 Thread dm.chestnykh at gmail dot com
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