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

            Bug ID: 22836
           Summary: "-r -s" doesn't work with -g3 using GCC 7
           Product: binutils
           Version: 2.31 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

[hjl@gnu-4 tmp]$ cat x.c
void
foo ()
{
}
[hjl@gnu-4 tmp]$ gcc -c -g3 x.c
[hjl@gnu-4 tmp]$ ld.bfd -r -s x.o
ld.bfd: BFD (Linux/GNU Binutils) 2.30.51.0.1.20180210 assertion fail
/net/gnu-bdx-1/export/linux/src/binutils/binutils/bfd/elf.c:3565
ld.bfd: BFD (Linux/GNU Binutils) 2.30.51.0.1.20180210 assertion fail
/net/gnu-bdx-1/export/linux/src/binutils/binutils/bfd/elf.c:3565

Gold gives reason, but still fails:

[hjl@gnu-4 tmp]$ ld.gold -r -s x.o
ld.gold: error: x.o: section group retained but group element discarded
ld.gold: error: x.o: section group retained but group element discarded
ld.gold: error: x.o: section group retained but group element discarded
ld.gold: error: x.o: section group retained but group element discarded
[hjl@gnu-4 tmp]$

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