[llvm] r241721 - Start adding support for writing archives in BSD format.

Rafael Espíndola rafael.espindola at gmail.com
Thu Jul 9 05:39:03 PDT 2015


On 8 July 2015 at 21:02, Kevin Enderby <enderby at apple.com> wrote:
> Hi Rafael,
>
> I had been working on the same support and noticed your changes today when I updated just now.  I am heading out for the day but haven’t resolved my conflicts.  I have the support for the symbol table done but if you get to that that and want to use yours that is fine.
>
> I my version also had a separate darwin format which is BSD with 8 byte alignment.  But if you see no need for that that is fine too.

So, the situation with darwin native tools is a bit odd. It looks like
ar proper will add some padding to the name, but fails to align the
member to 8 bytes.

Ranlib instead of changing the name with null padding pads the member
itself with '\n' to the end.

My idea was to always pad the name with nulls so that we have members
that are 8 byte aligned and we never modify files put in the archive.

I am probably half the way there to get __.SYMDEF out, if you don't
mind I will finish that and add the sorted version as a follow up.

I will also be adding support for thin archives.

> Didn’t know I was duplicating your work.  Catch up with you tomorrow,

Oops, sorry about that. Do you hang out in #llvm? It is a good place
to discuss what everyone is doing.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 4853 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150709/bae88234/attachment.obj>


More information about the llvm-commits mailing list