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] Utilize Blackfin L1 SRAM


On Tue, Jul 15, 2008 at 03:28:44PM +0800, Jie Zhang wrote:
>>   ld/emulparams/armelf_coyotos.sh    # basically armelf.sh
>>   ld/emulparams/armelf_coyotos_small.sh

Note, these are in emulparams.

> I know how to implement this, and the implementation is simple and easy.
> But maintaining the customized linker scripts will be a burden. Each time 
> the generic ELF linker script changes, like adding new section names, you 
> have to change the customized scripts accordingly.

No you don't.  They go in emulparams and use the generic elf.sc.  If
there's some reason they can't, then we add more knobs to elf.sc until
they can.

> From the other side, _bfd_elf_map_sections_to_segments assumes that
> read only data can be put into the same segment with the code and they
> can be loaded together. But this assumption is not true for Blackfin.
> Read only data cannot be put into the same segment with the code if you  
> want to put the code into L1 instruction SRAM of Blackfin. Adding  
> --sep-code will tell ld not to put them together.

Will tell it not to put them together _anywhere_.  But other text /
rodata can be combined even on Blackfin, just not the bits for the L1.

Anyway, I suggest we see what Alan thinks when he's back.

-- 
Daniel Jacobowitz
CodeSourcery


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