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

            Bug ID: 18935
           Summary: Gold assert fail when moving dot in NOLOAD section.
           Product: binutils
           Version: 2.25
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: johan.karlsson at enea dot com
                CC: ian at airs dot com
  Target Milestone: ---

ld.gold: internal error in set_address, at gold/output.h:197

The version I run is Binutils 2.25 with bug fixes for PR18846, PR18847, and
PR18746. I believe it would be reproducible on master.
Also, this might be a regression from PR18847.

Repo:
test.c:
int main() { return 0; }

script.lcf:
PHDRS
{
 ph_load PT_LOAD ;
}
SECTIONS
{
 .text :
 {
  *(.text)
 } :ph_load = 0
 .data ALIGN(0x2000) :
 {
  *(.data)
 } :ph_load
 .bss :
 {
  *(.bss)
 } :ph_load
 .init_stack (NOLOAD) :
 {
   . = . + 0x200;
 } :ph_load
}


gcc -c -o test.o test.c
ld.gold -T script.lcf test.o
ld.gold: internal error in set_address, at gold/output.h:197

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