bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/21086] New: static linking with --dynamic-list adds dynamic sect


From: nszabolcs at gmail dot com
Subject: [Bug ld/21086] New: static linking with --dynamic-list adds dynamic section and interpreter
Date: Wed, 25 Jan 2017 15:02:06 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]