bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/20815] throw errors for invalid load segment


From: nickc at redhat dot com
Subject: [Bug ld/20815] throw errors for invalid load segment
Date: Thu, 17 Nov 2016 09:26:30 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=20815

--- Comment #11 from Nick Clifton <nickc at redhat dot com> ---
Hi Ma,

(In reply to ma.jiang from comment #9)


> Yes, the elf standard does not require " the program headers be contained
> in a program segment". But, now that the generated elf have a PT_PHDR
> segment, it must load the program header into memory,

Hang on - I think that we need to check that we agree on the contents of the
binary that we are talking about.  I have uploaded a compressed a.bad file
which is the executable I produced from your test.c source file, linked using
the pad.ld linker script.  This is the executable that I have been examining,
and this executable does not have a PT_PHDR segment.

Please could you compare this executable against the one that you are testing,
and if they are different (which I suspect will be the case), please could you
upload your version.  It would also help if you could let me know how you
produced that version, as obviously I must have done something different to
you.


>   To tell the truth, it's not hard for me to find what is wrong(LOL). But
> I'm a tool-chain maintainer in my company, and there are a lot of normal
> users who will get totally confused by such problems.

But hang on - why would a normal user be creating and using their own linker
scripts ?  This is something that should be completely hidden from the user,
and something that they never have to worry about (or even know about).

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]