bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/27377] New: /usr/bin/ld.bfd: section .note.ABI-tag VMA [00000000


From: mliska at suse dot cz
Subject: [Bug ld/27377] New: /usr/bin/ld.bfd: section .note.ABI-tag VMA [0000000000400190,00000000004001af] overlaps section .bss VMA [00000000000adc00,00000000004af3ff]
Date: Mon, 08 Feb 2021 16:17:29 +0000

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

            Bug ID: 27377
           Summary: /usr/bin/ld.bfd: section .note.ABI-tag VMA
                    [0000000000400190,00000000004001af] overlaps section
                    .bss VMA [00000000000adc00,00000000004af3ff]
           Product: binutils
           Version: 2.37 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: mliska at suse dot cz
  Target Milestone: ---

The test-case is taken from grub2:

$ cat 1.c
int main()
{
  return 0;
}

$ cat 2.S
.bss
.space (1 << 22)

$ gcc 1.c 2.S -Wl,-N -Wl,-Ttext,0 -static -Wl,--build-id=none -fuse-ld=bfd
/usr/bin/ld.bfd: section .note.ABI-tag VMA [0000000000400190,00000000004001af]
overlaps section .bss VMA [00000000000adc00,00000000004af3ff]
collect2: error: ld returned 1 exit status

I believe ld should not make the 2 sections to overlap.

gold is even worse, it crashes:

$ gcc 1.c 2.S -Wl,-N -Wl,-Ttext,0 -static -Wl,--build-id=none -fuse-ld=gold
/usr/bin/ld.gold: internal error in set_offset, at ../../gold/output.cc:4780
collect2: error: ld returned 1 exit status

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]