[PATCH] D32289: [ELF] - Linkerscript: support combination of linkerscript and --compress-debug-sections.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon May 1 15:21:36 PDT 2017


Rui Ueyama <ruiu at google.com> writes:
>> In the most general case (like for thunks), we will have to run
>> assignAddresses multiple times.
>>
>> For debug info it should be trivial to change processCommands to compute
>> the offsets.
>>
>> BTW, should we avoid compressing or error out if the linker script has a
>> symbol assignment? For example:
>>
>> SECTIONS {
>> .debug_str : { *(foo) sym=.; *(bar) }
>> }
>>
>
> Is this a hypothetical use case, or do you actually have something like
> this?

Hypothetical. When I wrote that it would be trivial to change
processCommands I wondered where that would fail.

Cheers,
Rafael


More information about the llvm-commits mailing list