RE: Trying to map absolute sections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Ian Lance Taylor [mailto:ian@xxxxxxxx]
> Sent: Tuesday, February 07, 2006 1:46 PM
> To: Tarun
> Cc: gcc-help@xxxxxxxxxxx
> Subject: Re: Trying to map absolute sections
> 
> "Tarun" <tarun@xxxxxxxxx> writes:
> 
> > I am trying to map an elf section to absolute address. Is there any
way
> > that we can restrain the linker (ld) not to relocate a section and
place
> > it at an absolute address.
> >
> > I have tried placing the absolute address in the Sh_Addr and
updating
> > the section name as SH_ABS. But it was of no use.
> 
> Please don't send e-mail to both gcc-help and gcc.  Thanks.
> 
> The only way to do what you want is to write a linker script.  See the
> linker documentation.

Thanks for information.

But then if SHN_ABS is updated for the section name in the symbol table.
And the st_value has that absolute address, should the linker not map
the section to absolute address.



Thanks in advance
Tarun


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux