Linker order

cancel
Showing results for 
Search instead for 
Did you mean: 

Linker order

Jump to solution
153 Views
pietrodicastri
Senior Contributor I

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
51 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
52 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