ld location counter going backward?
Andreas Schwab
schwab@suse.de
Wed Mar 25 08:47:10 GMT 2026
On Mär 24 2026, Luke T. Shumaker wrote:
> On Tue, 24 Mar 2026 03:13:23 -0600,
> Andreas Schwab wrote:
>>
>> On Mär 24 2026, Luke T. Shumaker wrote:
>>
>> > ...
>> > } > RAM
>> > __binary_info_end = .;
>> >
>> > . = ALIGN((1<<LOG2CEIL(.-__logical_binary_start))/8);
>> > .data : {
>> > __data_start__ = .;
>> > ...
>>
>> Do you have a region assignment for the .data section?
>
> Yes, .data is `> RAM` as well.
That probably explains it:
"If no address was specified for the
output section, the linker will set the address to the next available
address within the memory region."
The dot is not associated with the memory region.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Binutils
mailing list