how do I tell GAS that I want something to be in the absolute section?

Russell Shaw rjshaw@iprimus.com.au
Tue Oct 14 10:12:00 GMT 2003


Jonathan Wilson wrote:
> Russell Shaw wrote:
> 
>> Jonathan Wilson wrote:
>>
>>> I want to tell GAS to put stuff into an Absolute section.
>>> Also, how do I define an Absolute section and give it a name?
>>
>> Use: .section <secname> in the assembler input to fill the
>> section you want. Collect that input section into an output
>> section in the ld script, where you can specify the load-time
>> and run-time location.
>>
> I actually want this to be an absolute section in the .obj file (as 
> specified under "absolute section" under "Linker Sections" in the gas docs)

You can specify the address after the output-section name:

   http://www.gnu.org/manual/ld-2.9.1/html_node/ld_19.html



More information about the Binutils mailing list