cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
3,823 Views
Registered: ‎05-28-2014

divide text memory objects

Hello,

 

I am trying to split the object files (.o) into 2 separate text sections, but I keep getting "multiple definition of..." error in linkage: This is the .ld script relevant section (in this test I just put one file with one routine and no dependency in any other files (it just has some dummy routine, without main):

 

.text : { CZ5C2010A_uBlaze_POD_Code\Source\checksum.o(.text) } > microblaze_i_bram_ctrl_0_microblaze_d_bram_ctrl_0

 

And this is the error in compile/link: ./CZ5C2010A_uBlaze_POD_Code/Source/checksum.o: In function `crc32': D:/MicroBlaze/App/CZ5C2010A_uBlaze_POD_APP/CZ5C2010A_uBlaze_POD/Code/Source/checksum.c:17: multiple definition of `crc32' CZ5C2010A_uBlaze_POD_Code\Source\checksum.o:D:/MicroBlaze/App/CZ5C2010A_uBlaze_POD_APP/CZ5C2010A_uBlaze_POD/Code/Source/checksum.c:17: first defined here collect2: ld returned 1 exit status make: *** [CZ5C2010A_uBlaze_POD.elf] 1

 

Can anyone Please try to see if gets tha same error ? What can I do ?

 

Thanks for any idea, Ran

0 Kudos
Reply
0 Replies