Displaying 3 results from an estimated 3 matches for "inputsectioncontents".
2017 Jul 11
2
[LLD] Linker Relaxation
Hi,
Does lld support linker relaxation that may shrink code size? As far
as I see lld seems to assume that the content of input sections to be
fixed other than patching up relocations, but I believe some targets
may benefit the extra optimization opportunity with relaxation.
Specifically, I'm currently working on adding support for RISC-V in
lld, and RISC-V heavily relies on linker relaxation
2017 Jul 11
8
[LLD] Linker Relaxation
...createThunks(), or perhaps the mechanisms would need to be
> merged as I think they'll need to converge on a point when no more
> relaxations are possible and no more thunks can be added.
>
> Writing out the relaxed sections will be interesting as you won't want
> all of the InputSectionContents. I suggest looking at EHFrame and
> MergeInputSections for ideas.
>
> Hope that is of some use
>
> Peter
>
> [*] For example in pseudo ARM
>
> ldr r0, [pc, offset] ; where pc + offset == label
> ...
> relaxable sequence such as an indirect jump via a reg...
2017 Jul 11
4
[LLD] Linker Relaxation
...ms would need to be
>>> merged as I think they'll need to converge on a point when no more
>>> relaxations are possible and no more thunks can be added.
>>>
>>> Writing out the relaxed sections will be interesting as you won't want
>>> all of the InputSectionContents. I suggest looking at EHFrame and
>>> MergeInputSections for ideas.
>>>
>>> Hope that is of some use
>>>
>>> Peter
>>>
>>> [*] For example in pseudo ARM
>>>
>>> ldr r0, [pc, offset] ; where pc + offset == label
>...