[llvm-dev] Should lld support binary output ("--oformat binary")?
George Rimar via llvm-dev
llvm-dev at lists.llvm.org
Mon Aug 22 07:39:01 PDT 2016
> Maybe we should implement it. I had a concern about adding complexity for
> the less frequently used feature, but I believe it can be implemented
> easily. Specifically, I think we need to
>
> - implement another version of `Writer<ELFT>::writeSections` for
> --oformat=binary and
> - stop calling `Writer::writeHeaders` and `writeBuildId` if
> --oformat=binary is specified.
Patch implementing --oformat binary is here: https://reviews.llvm.org/D23769
I noticed that ld and gold has idfferent behavior:
gold uses LMA of PT_LOADs to find the destination file offset of data which it takes from segments.
I tried to play with AT() and looks GNU ld ignores that.
Patch implements ld behavior for now.
George.
More information about the llvm-dev
mailing list