x3 multiplier of address of section specified by symbol in section
Alan Modra
amodra@gmail.com
Tue Mar 26 01:31:00 GMT 2019
More information about the Binutils mailing list
Tue Mar 26 01:31:00 GMT 2019
- Previous message (by thread): x3 multiplier of address of section specified by symbol in section
- Next message (by thread): Healthy Lifestyle Challenge 12: Eat with the Seasons
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Mar 22, 2019 at 10:19:57PM -0400, Marco Sirabella wrote:
> Any idea what's going on? I suspect ORG is being evaluated multiple(3) times,
> each time being offset more because .text is being offset more.
Correct. You have defined ORG as a symbol in the .text section, not
an absolute symbol. (Related to this, .org does not set an absolute
address as you may be used to in some other assemblers.)
> .text
> .org 5
> .global ORG
> ORG:
>
> SECTIONS
> {
> . = ORG;
> .text : { *(.text) }
> }
>
--
Alan Modra
Australia Development Lab, IBM
- Previous message (by thread): x3 multiplier of address of section specified by symbol in section
- Next message (by thread): Healthy Lifestyle Challenge 12: Eat with the Seasons
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list