https://sourceware.org/bugzilla/show_bug.cgi?id=21086
Bug ID: 21086 Summary: static linking with --dynamic-list adds dynamic section and interpreter Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: nszabolcs at gmail dot com Target Milestone: --- i think static linking should work (produce a static linked executable without any dynamic linker) even with --dynamic-list, now the produced executable is broken. reproducer: echo 'int main(){}' >a.c echo '{main;};' >foo.list gcc -static -Wl,--dynamic-list=foo.list a.c readelf -l a.out |grep interpreter [Requesting program interpreter: /lib/ld64.so.1] (this is on x86_64, but other targets have the same behaviour) introduced in https://sourceware.org/ml/binutils/2016-02/msg00251.html https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bf89386a862ace008f0152bca8bddf996d3993c8 -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils