This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, CFI] Fix EH for coldfire-uclinux


On Wed, Nov 04, 2009 at 02:11:08PM -0800, Richard Henderson wrote:
> On 11/04/2009 11:46 AM, Daniel Jacobowitz wrote:
> >The problem's not just with elf2flt, but also with various other bits
> >including ld and linker scripts (I haven't tracked down all the pieces
> >yet): we end up with only one PT_LOAD segment.  Then elf2flt splits
> 
> Browsing buildroot elf2flt sources, the most obvious thing to do is
> to modify the linker script to explicitly manage the phdrs:
> 
>   PHDRS {
>     text PT_LOAD ;
>     data PT_LOAD ;
>   }
> 
> I guess I can assume you've tried this already and there are other problems?

I don't recall :-(  That's definitely something to try though.  I
wanted to work out first why ld was making a different choice; usually
it's because some section is writable that should be read-only.

> But personally think it's a shame not to be able to easily generate
> any appropriate relocation with data directives.  No telling how
> they'll be useful for random applications.  Of course, you can always
> do something gross like
> 
> 	.reloc	., R_68K_GOT32O, foo
> 	.long	0
> 
> but... really...  ;-)

Still, a neat trick... I should remember to buy Alan a beer for .reloc
sometime :-)

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]