https://sourceware.org/bugzilla/show_bug.cgi?id=26105
Bug ID: 26105 Summary: PROTECTED in executable Product: binutils Version: 2.35 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- [hjl@gnu-cfl-2 pr20022]$ cat a.s .globl _start _start: .dc.a __start__foo .dc.a bar .section _foo,"aw",%progbits foo: .ascii "This is " [hjl@gnu-cfl-2 pr20022]$ cat c.s .data .globl bar .type bar,%object bar: .dc.a __start__foo .section _foo,"aw",%progbits foo: .ascii "This is " [hjl@gnu-cfl-2 pr20022]$ make as -o a.o a.s as -o c.o c.s ./ld -shared --gc-sections -o c.so c.o ./ld --gc-sections -o a a.o c.so readelf --dyn-syms -W a | grep foo 2: 0000000000403000 0 NOTYPE GLOBAL PROTECTED 10 __start__foo [hjl@gnu-cfl-2 pr20022]$ PROTECTED symbol in executable serves no purpose since definitions in executable aren't preemptible. -- You are receiving this mail because: You are on the CC list for the bug.