[oi-dev] Linker option 'discard-unused=sections' ?

Aurélien Larcher aurelien.larcher at gmail.com
Tue Jun 16 16:35:51 UTC 2015


Hi,
Thank you for your answer ! Is there a possible catch using 'ignore'
instead of just discarding unused sections ?
Best

Aurélien


On Tue, Jun 16, 2015 at 6:09 PM, Richard Lowe <richlowe at richlowe.net> wrote:

> -z ignore is similar but not the same.
>
> -z discard-unused is a (smart) splitting up of the meanings of -z ignore
> into separate options.  It'd be worth implementing, but we haven't yet
>
> On Tue, Jun 16, 2015 at 12:06 PM Aurélien Larcher <
> aurelien.larcher at gmail.com> wrote:
>
>> Hi,
>> I encountered '--gc-sections' in a Makefile that assumes that the GNU
>> linker is used and came across:
>>
>>
>> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150223/262762.html
>>
>> which indicates using* '*-z discard-unused=sections' but, as it seems,
>> it is only present in Solaris 11.1.
>>
>> Does illumos' ld provide similar option ?
>>
>> Best regards
>>
>> Aurélien
>>
>> --
>>
>> -------------------------------------------------------------------------------
>> LARCHER Aurélien          | KTH, School of Computer Science and
>> Communication
>> Work: +46 (0) 8 790 71 42 | Lindstedtsvägen 5, Plan 4, 100 44 Stockholm,
>> SWEDEN
>>
>> -------------------------------------------------------------------------------
>>  _______________________________________________
>> oi-dev mailing list
>> oi-dev at openindiana.org
>> http://openindiana.org/mailman/listinfo/oi-dev
>
>
> _______________________________________________
> oi-dev mailing list
> oi-dev at openindiana.org
> http://openindiana.org/mailman/listinfo/oi-dev
>



-- 
-------------------------------------------------------------------------------
LARCHER Aurélien          | KTH, School of Computer Science and
Communication
Work: +46 (0) 8 790 71 42 | Lindstedtsvägen 5, Plan 4, 100 44 Stockholm,
SWEDEN
-------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20150616/42047d0f/attachment-0005.html>


More information about the oi-dev mailing list