This is the mail archive of the binutils@sources.redhat.com 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]

Reserving some memory in .text segment


Hi,
 I am using gcc linker on a mips architecture. 
My .text segment for vmlinux starts at 0x80040000 and ends at 0x8010ffff
64K of memory region from 0x80060000 is reserved memory, I do not want
linker to generate any address of .text in this address range. How
should I do it . I tried using MEMORY command like

MEMORY
{  
   rom (!w!x) : ORIGIN = 0x80060000, LENGTH = 64K
}

.text 0x80040000 :
{
  *(.text)
} = 0

but still ld is using address range 0x80060000 (+64K) for .text .

In a nutshell, How do I reserve a memory in one particular section

Please CC me.

Thanks 
Amol







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