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

            Bug ID: 25110
           Summary: FAIL: --gc-sections with __start_SECTIONNAME
           Product: binutils
           Version: 2.34 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu

gcc  -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/
-I/home/dave/gnu/binutils/src/ld/testsuite/ld-gc -g -O2   -g -O2
-ffunction-sections -fdata-sections -O0 -c
/home/dave/gnu/binutils/src/ld/testsuite/ld-gc/pr19161-1.c -o
tmpdir/pr19161-1.o
Executing on host: sh -c {gcc  -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/
-I/home/dave/gnu/binutils/src/ld/testsuite/ld-gc -g -O2   -g -O2
-ffunction-sections -fdata-sections -O0 -c
/home/dave/gnu/binutils/src/ld/testsuite/ld-gc/pr19161-1.c -o
tmpdir/pr19161-1.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
gcc  -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/
-I/home/dave/gnu/binutils/src/ld/testsuite/ld-gc -g -O2   -g -O2
-ffunction-sections -fdata-sections -O0 -c
/home/dave/gnu/binutils/src/ld/testsuite/ld-gc/pr19161-2.c -o
tmpdir/pr19161-2.o
Executing on host: sh -c {gcc  -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/
-I/home/dave/gnu/binutils/src/ld/testsuite/ld-gc -g -O2   -g -O2
-ffunction-sections -fdata-sections -O0 -c
/home/dave/gnu/binutils/src/ld/testsuite/ld-gc/pr19161-2.c -o
tmpdir/pr19161-2.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
/home/dave/gnu/binutils/objdir/ld/../gas/as-new     -o tmpdir/dummy.o
/home/dave/gnu/binutils/src/ld/testsuite/ld-gc/dummy.s
Executing on host: sh -c {/home/dave/gnu/binutils/objdir/ld/../gas/as-new    
-o tmpdir/dummy.o /home/dave/gnu/binutils/src/ld/testsuite/ld-gc/dummy.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
spawn [open ...]
./ld-new -z norelro  -L/home/dave/gnu/binutils/src/ld/testsuite/ld-gc 
--gc-sections -e main tmpdir/pr19161-1.o tmpdir/pr19161-2.o -o tmpdir/dump
tmpdir/dummy.o
Executing on host: sh -c {./ld-new -z norelro 
-L/home/dave/gnu/binutils/src/ld/testsuite/ld-gc  --gc-sections -e main
tmpdir/pr19161-1.o tmpdir/pr19161-2.o -o tmpdir/dump tmpdir/dummy.o  2>&1} 
/dev/null dump.tmp (timeout = 300)
spawn [open ...]
/home/dave/gnu/binutils/objdir/ld/.libs/lt-ld-new: tmpdir/pr19161-1.o: in
function `main':
/home/dave/gnu/binutils/src/ld/testsuite/ld-gc/pr19161-1.c:6: undefined
reference to `$$dyncall'
failed with: </home/dave/gnu/binutils/objdir/ld/.libs/lt-ld-new:
tmpdir/pr19161-1.o: in function `main':
/home/dave/gnu/binutils/src/ld/testsuite/ld-gc/pr19161-1.c:6: undefined
reference to `$$dyncall'>, no expected output
FAIL: --gc-sections with __start_SECTIONNAME

It would seem the linker is not linking against the library milli.a.

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