[PATCH] D28857: [ELF] - Allow relative relocations to a absolute value defined in linker script.
Rafael Avila de Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 18 06:35:05 PST 2017
George Rimar <grimar at accesssoftek.com> writes:
>>This is an over reduction. The real problem is that we are not tracking
>>absoluteness correctly. In the original case vvar_vsyscall_gtod_data
>>should not be absolute.
>
> But bfd generates is as absolute from original reproduce file:
> 35: ffffffffffffe080 0 NOTYPE LOCAL DEFAULT ABS vvar_vsyscall_gtod_data
>
> and gold too:
> 8: ffffffffffffe080 0 NOTYPE LOCAL DEFAULT ABS vvar_vsyscall_gtod_data
That is a bug in bfd. Its handling of what is absolute is broken. On ELF
absolute really means absolute, like a size. Anything that is a position
in the file is not absolute.
Cheers,
Rafael
More information about the llvm-commits
mailing list