[PATCH] D43071: [ELF] - Support DSECT, COPY, INFO, OVERLAY output sections attributes.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 9 07:01:49 PST 2018


grimar added a comment.

In https://reviews.llvm.org/D43071#1002684, @ruiu wrote:

> I mean, for any language, if you google for some extremely minor feature of that language, I'm pretty sure that you can always find one. So the fact that you can find a use case on the internet isn't very convincing that we should support it.


I inspected binutils bugtracker and found following issue:
https://sourceware.org/bugzilla/show_bug.cgi?id=20062

In short it was about that person was unable to use gold as a drop in replacement for bfd to link
UEFI. I was interested if LLD can do this. Previous experience showed that linking specific things,
like kernels can reveal unobvious issues. And I expect LLD should be able to link UEFI or other programs
or at least would be nice to know why not and document it in bugtracker.

We were thinking about implementing features like "INSERT AFTER/INSERT BEFORE" which are probably even
more specific, and "INFO" is too simple for implementation to ignore it when alternative is to report
"undefined symbol INFO" error what we do now which is just bogus and not user friendly.
(and somebeody can try to define INFO symbol it will be treated as address expression and we will link
it without errors.)


https://reviews.llvm.org/D43071





More information about the llvm-commits mailing list