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] |
On Sat, Jul 12, 2008 at 05:59:25PM +0800, Jie Zhang wrote: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.I don't like to use a modified linker script. Maintaining it will be a pain.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?
Not an individual linker script in the applications, one in binutils. It's no different than what you added in your patch.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |