Ryan Mansfield(deleted)
|
Re: Specifying a stack size causes crash
|
Ryan Mansfield(deleted)
04/13/2010 9:56 PM
post51620
|
Re: Specifying a stack size causes crash
Kevin Stallard wrote:
> I wonder if it is the invocation of ldrel that is causing problems.
>
> I ran qcc with the -vv option. ldrel is called when I specify a stack size, but it doesn't seem to be called when I
don't .
Yep, ldrel is what adds the stack note. In 6.3.2 there was an empty
placeholder section for the note in crtn.o but newer binutils will
discard empty sections. I suspect the problem your having is that ldrel
is failing to correctly add a stack size note with the placeholder
missing. Making room for a PT_NOTE segment post link without moving
things around gets kind of tricky. n 6.4.0 we added a default stack note
in the crtn.o files and then the 6.4.0 ldrel will modify the stack note
in place if one exists (all new binaries), or if not (older 6.3.2
binaries), try to create one create a stack note.
If you have a 6.4.0 system, grab the crtn.o files from it (or let me
know which ones you need) and use the attached 64x ldrel built for 6.3.2
and see if that works.
If it doesn't work, can you post the failing binary?
Regards,
Ryan Mansfield
|
|
|