Linker order

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linker order

Jump to solution
545 Views
pietrodicastri
Senior Contributor II

Good morning

 

I need a suggestion regarding the linker order. The KDS is defaulting the order of the files in a way that is preventing me

to place the RESET_HANDLER at a fixed predictable address.

I am customizing the bootloader, I need to fix this address, but the routine pattern_fill_gcc is always on top.

How to force the linker order from inside the KDS 3. ???

 

Thank You

 

Pietro

Labels (1)
Tags (2)
0 Kudos
1 Solution
443 Views
BlackNight
NXP Employee
NXP Employee

You can influence the command line passed to the linker here:

pastedImage_0.png

Other than that, you can change/modify the linker file.

Other than that, maybe this helps you:

Putting Code of Files into Special Section with the GNU Linker | MCU on Eclipse

Defining Variables at Absolute Addresses with gcc | MCU on Eclipse

See as well the comments in above articles.

I hope this helps,

Erich

View solution in original post

0 Kudos
1 Reply
444 Views
BlackNight
NXP Employee
NXP Employee

You can influence the command line passed to the linker here:

pastedImage_0.png

Other than that, you can change/modify the linker file.

Other than that, maybe this helps you:

Putting Code of Files into Special Section with the GNU Linker | MCU on Eclipse

Defining Variables at Absolute Addresses with gcc | MCU on Eclipse

See as well the comments in above articles.

I hope this helps,

Erich

0 Kudos