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]

Re: how do I tell GAS that I want something to be in the absolutesection?


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


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