bug-binutils
[Top][All Lists]
Advanced

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

Re: Binutils/ld: linker script does not work for AVR mega 0 series (avrx


From: Nick Clifton
Subject: Re: Binutils/ld: linker script does not work for AVR mega 0 series (avrxmega3)
Date: Tue, 1 Nov 2022 16:54:58 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0

Hi Konrad,

+  data   (rw!x) : ORIGIN = 0x802000, LENGTH = 0x10000

The fixed origin seems very dubious to me and I wasn't able to debug 
__DATA_REGION_LENGTH__.

It is defined earlier on in script:

[cut]

I actually meant to ask: is there a way to debug the linker script? I.e. to 
output what real values are used and where they come from?

Absolutely.  Just run the linker with the --verbose command line option.
That will output the linker's internal script with values filled in.

Make sure to include any other command line options you would normally
use as the internal script varies based upon the presence of certain options.


Cheers
  Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]