[lld] r262026 - Add comment on AMDGPU that the difference has no obvious reason.
Rafael Espíndola via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 26 10:58:43 PST 2016
On 26 February 2016 at 13:42, Rui Ueyama <ruiu at google.com> wrote:
> I don't know what the intention there, but at least the current output for
> AMDGPU has a program header, which you can't get with -r. So, does that
You wouldn't get one. The spec also says
Program headers are meaningful only for executable and shared object files.
So the summary is that the these are not valid ELF files. It is hard
to guess what is being done with them, but something must be fixed.
* Use virtual addresses.
* Don't use program header in the consumer and use -r.
* Just declare that whatever is using this is not actually using ELF.
Name the format something else (Goblin?). We could still have some
form of support in lld. For example, we can produce regular ELF files
with addresses that can be passed to a elf2goblin tool that computes
More information about the llvm-commits