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 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?

Which doesn't matter if you're using CFI directives, does it?

No.


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... ;-)


r~



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