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


Daniel Jacobowitz wrote:
On Sat, Jul 12, 2008 at 05:59:25PM +0800, Jie Zhang wrote:
Is there some requirement I am failing to understand that precludes
using the existing tools to accomplish what you want?

  1. Use objcopy to rename the sections after each .o is produced.
  2. Modify the linker script template to gather and group
     the new section names (if the necessary parts aren't there
     already).

What requirement do you have that cannot be solved using this approach?

I don't like to use a modified linker script. Maintaining it will be a pain.

Not an individual linker script in the applications, one in binutils. It's no different than what you added in your patch.

Oh, I understand what Jonathan said now. But using objcopy is not convenient. It needs to figure out what sections needs to be renamed. It needs to change Makefile rules. People use "coarse grained method" to put applications into L1 SRAM because it's convenient, i.e. adding two or three options in LDFLAGS in Makeifle is enough.



Jie


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