bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/25406] [ARM] pcrel relocations referencing STB_GLOBAL symbols a


From: tnfchris at sourceware dot org
Subject: [Bug gas/25406] [ARM] pcrel relocations referencing STB_GLOBAL symbols are resolved at assembly time
Date: Wed, 15 Apr 2020 18:16:12 +0000

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

Tamar Christina <tnfchris at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tnfchris at sourceware dot org

--- Comment #2 from Tamar Christina <tnfchris at sourceware dot org> ---
To add to what Richard said having the assembler emits much better error
messages for these cases.

If we emitted the relocations here and have the linker resolve them when not
-shared the error would be a generic truncation error.

Ultimately you wouldn't want to write code like this using pcrel instructions
if you want to write PIC code.

I'm also worried about previously working code that can fail if it now ends up
in a shared object with relocation and it's preempted by another symbol which
will more than likely be out of range.

So I also don't think we should emit relocations here.

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