[PATCH] D28857: [ELF] - Allow relative relocations to a absolute value defined in linker script.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 18 07:16:28 PST 2017
>> starts from:
>> vvar_start = . - 2 * (1 << 12);
>> vvar_page = vvar_start;
>> vvar_vsyscall_gtod_data = vvar_page + 128;
>> I think vvar_start is always constant, do not know why they wrote ". - 2 * (1 << 12)" when it looks
>> could be just "- 2 * (1 << 12)".
>The difference is that the '.' makes it a position in the file, and
>therefore not absolute.
I see what you mean. I need to investigate this deeper.
More information about the llvm-commits