https://sourceware.org/bugzilla/show_bug.cgi?id=32769
Bug ID: 32769 Summary: ld: SFrame sections get deleted with --gc-sections Product: binutils Version: 2.45 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: indu.bhagat at oracle dot com Target Milestone: --- $ cat gc-section.s .text .globl foo .type foo, @function foo: .cfi_startproc ret .cfi_endproc .size foo, .-foo $ as -o gc-section.o --gsframe gc-section.s $ readelf -SW gc-section.o | grep 'sframe' [ 7] .sframe PROGBITS 0000000000000000 0000a8 000033 00 A 0 0 8 [ 8] .rela.sframe RELA 0000000000000000 000148 000018 18 I 9 7 8 $ readelf --sframe gc-section.o Contents of the SFrame section .sframe: Header : Version: SFRAME_VERSION_2 Flags: NONE CFA fixed RA offset: -8 Num FDEs: 1 Num FREs: 1 Function Index : func idx [0]: pc = 0x0, size = 1 bytes STARTPC CFA FP RA 0000000000000000 sp+8 u f $ ld --gc-sections -e foo -o dump.o gc-section.o $ readelf -wF dump.o Contents of the .eh_frame section: 00000000 0000000000000014 00000000 CIE "zR" cf=1 df=-8 ra=16 LOC CFA ra 0000000000000000 rsp+8 c-8 00000018 0000000000000010 0000001c FDE cie=00000000 pc=0000000000401000..0000000000401001 $ readelf -SW dump.o | grep 'sframe' There is no .sframe section in dump.o. -- You are receiving this mail because: You are on the CC list for the bug.