[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/11549] Allow 32bit relocations in 64bit code
From: |
hjl dot tools at gmail dot com |
Subject: |
[Bug binutils/11549] Allow 32bit relocations in 64bit code |
Date: |
5 May 2010 15:39:47 -0000 |
------- Additional Comments From hjl dot tools at gmail dot com 2010-05-05
15:39 -------
(In reply to comment #5)
> > You have
> >
> > 0000000000000000 <fn32>:
> > 0: a1 00 00 00 00 mov 0x0,%eax 1: R_X86_64_32 var
> > 5: c3 ret
> >
> > Since you are building PIE, which can be loaded anywhere in
> > 64bit address space, R_X86_64_32 may overflow.
>
> Correct, but the real loader does load this 64bit code at addresses lower
> then
> 4Gb, and actually it's loader task in such cases to check relocations
> overflow
> and their types, isn't it?
Linker shouldn't generate such binaries.
>
> Any other way to link 32bit/64bit code to single binary then?
>
You should checkout how other x86-64 low-level loaders deal with it.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11549
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/11549] Allow 32bit relocations in 64bit code, dev at sw dot ru, 2010/05/05
- [Bug binutils/11549] Allow 32bit relocations in 64bit code, hjl dot tools at gmail dot com, 2010/05/05
- [Bug binutils/11549] Allow 32bit relocations in 64bit code, dev at sw dot ru, 2010/05/05
- [Bug binutils/11549] Allow 32bit relocations in 64bit code,
hjl dot tools at gmail dot com <=
- [Bug binutils/11549] Allow 32bit relocations in 64bit code, dev at sw dot ru, 2010/05/05
- [Bug binutils/11549] Allow 32bit relocations in 64bit code, hjl dot tools at gmail dot com, 2010/05/05
- [Bug binutils/11549] Allow 32bit relocations in 64bit code, dev at sw dot ru, 2010/05/06
- [Bug binutils/11549] Allow 32bit relocations in 64bit code, hjl dot tools at gmail dot com, 2010/05/06