#!/bin/sh
cat <<EOF >foo.c
int _start() {
 return 0; 
}
EOF

cat <<EOF >ldscript2
ENTRY(_start)

SECTIONS
{
  . = 0xC0000000 + 0x100000;
  _text = .;
  .text :
      AT( ADDR(.text) - 0xC0000000 )
      { *(.text) } = 0x9090
}
EOF

i386-unknown-coyotos-gcc -Wl,-r -nostdlib foo.c -o foo.o
i386-unknown-coyotos-gcc -Wl,-N -Wl,-Tldscript2 -nostdlib -o foo foo.o -g
i386-unknown-coyotos-gcc -Wl,-n -Wl,-Tldscript2 -nostdlib -o foo foo.o -g

internal error in set_section_list_addresses, at
../../binutils-2.19.51/gold/output.cc:3004

these appear to link alright with gnu-ld, anyhow the linker invocation i was
debugging doesn't actually use -N or -n so i'm not sure if this could happen in
actual use or not.

-- 
           Summary: assertion failure when using -N/-n
           Product: binutils
           Version: 2.20 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: ian at airs dot com
        ReportedBy: ratmice at gmail dot com
                CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10029

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to