This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix handling of common symbols with plugins


On Wed, Sep 17, 2014 at 3:36 PM, Rafael EspÃndola
<rafael.espindola@gmail.com> wrote:
>>> The gold patch looks good to me. Thanks!
>
> Pushed.
>
>> Can you add an ld testcase to ld/testsuite/ld-plugin/lto.exp?
>
> I don't think my patch changes the behavior of bfd-l, it is just a
> cleanup. I applied Hal Finkel's patch to let ld work with llvm IR and
> it passes the run.sh that I emailed earlier with or without my patch.

If it has no impact on your testcase, I prefer to leave ld alone.

> Having said that, while the size field is not useful for common
> symbols, it might be just what is needed for coff's
> COMDAT_SELECT_LARGEST. Do you know if that is implemented?
>

The ELF ld will always use the largest alignment and sizes for
the common symbol.

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]