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: allocating starting at top of memory with ld?


Hi Galen,

When linking I would like to allocate input sections starting from the highest memory address of an output section and working downwards. For example, given a memory area that starts at 0 and is 64KB in size, and an input section that is 4KB in size, I would like to have the input section located at 0xf000. Additional input sections would be located below this.

Sorry - this is not something that is currently supported by the linker. It always allocates from lower addresses towards higher addresses.


What benefit do you gain from allocating sections downwards ? Perhaps there is another way to solve the problem that you are handling.

Cheers
  Nick



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