bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/21430] New: gold misplaces a relaxed section on AArch64


From: ikudrin at accesssoftek dot com
Subject: [Bug gold/21430] New: gold misplaces a relaxed section on AArch64
Date: Wed, 26 Apr 2017 10:41:24 +0000

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

            Bug ID: 21430
           Summary: gold misplaces a relaxed section on AArch64
           Product: binutils
           Version: 2.29 (HEAD)
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: ikudrin at accesssoftek dot com
                CC: ian at airs dot com
  Target Milestone: ---

Steps to reproduce:

$ cat > test.s << EOF
.globl _start, foo, bar

.section ".text.start", "ax"
_start:
    bl foo
    .space 0x7000000

.section ".text.bar", "ax"
bar:
    .space 0x1000000
    .size bar, .-bar

.section ".text.foo", "ax"
foo:
    b _start
EOF
$ aarch64-linux-gnu-as test.s -o test.o
$ ./gold-master test.o -o test.out
$ nm -S test.out | grep "foo\|bar"
00000000074000c4 0000000001000000 T bar
00000000084000b4 T foo

As you can see, the symbol 'foo' lays inside the content of 'bar'. If you use
something like "objdump -d test.out" you will see that the content of the input
section ".text.foo" is written on top of the section ".text.bar", so that it
becomes crippled.

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