Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: msp430-elf linker not honoring linker script

$
0
0
I'm having a linking issue with the newer version of msp430 compiler/linker. I'm trying to compile several .c files to generate .o files, then link them to create "boot.elf" file. For reference, the versions are the followings. New compiler/linker from binutils: 5.2.0/2.25.1 Old compiler/linker from binutils: 4.6.3/2.21.1 "make_output_new.txt" (attached) shows the output from the new compiler/linker. It shows that .o files are generated successfully, but at the linking stage, it raises an error saying that ".text" and ".trampoline" sections are over-wrapping. In "boot.x" (attached), which is passed to the linker, it specifies ".text" to be at REGION_TEXT which is aliased to "boot2", which is at "0xfa00". In "boot_new.map" (I renamed it from boot.map)(attached), which was generated with the linking command, it shows that ".text" is at 0xe000, not 0xfa00 as specified in boot.x. .text 0x000000000000e000 0x6d6 "make_output_old.txt" (attached) shows the output from the old compiler/linker. All the object files are generated and it links them successfully. In "boot_old.map" (I renamed it from boot.map) (attached), which was generated with the linking command, it shows that ".text" is at 0xfa00 as specified in boot.x. .text 0x0000fa00 0x3c6 Do you have any idea why the new compiler/linker fails to honor what is in boot.x? Thanks! (Please visit the site to view this file)

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>