https://sourceware.org/bugzilla/show_bug.cgi?id=32818
Bug ID: 32818 Summary: Linker uses wrong PLT sequence with memory-seal flag Product: binutils Version: 2.44 Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: ykhrustalev at sourceware dot org Target Milestone: --- When linking objects with BTI marking, static linker correctly produces output binary marking, however if the `-z memory-seal` flag is used, it chooses wrong PLT sequence (without BTI). Steps to reproduce: 1. Compile any object with "-mbranch-protection=bti". 2. Link it into a DSO with "-z memory-seal". 3. Check BTI marking in the produced share library with "readelf -n". 4. Check disassembly of the ".plt" sequence: BTI instruction won't be there. 5. Link without "-z memory-seal": see that ".plt" sequence contains BTI instruction as expected. -- You are receiving this mail because: You are on the CC list for the bug.