https://sourceware.org/bugzilla/show_bug.cgi?id=17448

            Bug ID: 17448
           Summary: gold doesn't work with --dynamic-list=<(echo '...')
                    construct (non-seekable pipe input)
           Product: binutils
           Version: 2.24
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at google dot com
          Reporter: martinrb at google dot com
                CC: ian at airs dot com

The self-explanatory bash snippet below shows that --dynamic-list must be a
"real" file and that gold's error message is misleading and contains
implementation details of the file parser (what's $end?; what do you mean, you
were looking for '{' in column 1??  It's right there!).  Whereas bfd ld works
correctly.

$ for ld in bfd gold; do echo -- $ld --; gcc --use-ld=$ld
-Wl,--dynamic-list=<(echo '{ main; };') main.c && nm -D a.out; done
-- bfd --
                 w __gmon_start__
                 U __libc_start_main
000000000040054d T main
                 U puts
-- gold --
/usr/bin/ld.gold: error: /proc/self/fd/11:1:1: syntax error, unexpected $end,
expecting '{'
/usr/bin/ld.gold: fatal error: unable to parse dynamic-list script file
/proc/self/fd/11

-- 
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

Reply via email to