This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Greetings, I am currently experiencing an issue when linking programs for the msp430-elf target. The linker complains that some symbols are being redefined. It does generate a working binary but I am not sure where the warnings are being generated. I thought I would ask here before opening a bug report. The tools I am currently using: msp430-elf-binutils 2.25.1 with this patch: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0f8f0c57ea4742ad2d9b0598a18243331c1c06e3 msp430-elf-gcc 5.2.0 [stock] msp430-elf-mcu 3.5.0.0 TI's latest linker scripts, modified as per: https://sourceware.org/bugzilla/show_bug.cgi?id=17940 msp430-elf-newlib 2.2.0.20150824 September snapshot fails to compile, modified nosys.specs file as to remove duplicate definition error [will report this in the proper mailing list]. The warnings in question: /usr/bin/msp430-elf-ld:msp430f2013.ld:41: warning: redeclaration of memory region `SFR' /usr/bin/msp430-elf-ld:msp430f2013.ld:42: warning: redeclaration of memory region `PERIPHERAL_8BIT' /usr/bin/msp430-elf-ld:msp430f2013.ld:43: warning: redeclaration of memory region `PERIPHERAL_16BIT' /usr/bin/msp430-elf-ld:msp430f2013.ld:44: warning: redeclaration of memory region `RAM' /usr/bin/msp430-elf-ld:msp430f2013.ld:45: warning: redeclaration of memory region `INFOMEM' /usr/bin/msp430-elf-ld:msp430f2013.ld:46: warning: redeclaration of memory region `INFOA' /usr/bin/msp430-elf-ld:msp430f2013.ld:47: warning: redeclaration of memory region `INFOB' /usr/bin/msp430-elf-ld:msp430f2013.ld:48: warning: redeclaration of memory region `INFOC' /usr/bin/msp430-elf-ld:msp430f2013.ld:49: warning: redeclaration of memory region `INFOD' /usr/bin/msp430-elf-ld:msp430f2013.ld:50: warning: redeclaration of memory region `ROM' /usr/bin/msp430-elf-ld:msp430f2013.ld:51: warning: redeclaration of memory region `VECT1' /usr/bin/msp430-elf-ld:msp430f2013.ld:52: warning: redeclaration of memory region `VECT2' /usr/bin/msp430-elf-ld:msp430f2013.ld:53: warning: redeclaration of memory region `VECT3' /usr/bin/msp430-elf-ld:msp430f2013.ld:54: warning: redeclaration of memory region `VECT4' /usr/bin/msp430-elf-ld:msp430f2013.ld:55: warning: redeclaration of memory region `VECT5' /usr/bin/msp430-elf-ld:msp430f2013.ld:56: warning: redeclaration of memory region `VECT6' /usr/bin/msp430-elf-ld:msp430f2013.ld:57: warning: redeclaration of memory region `VECT7' /usr/bin/msp430-elf-ld:msp430f2013.ld:58: warning: redeclaration of memory region `VECT8' /usr/bin/msp430-elf-ld:msp430f2013.ld:59: warning: redeclaration of memory region `VECT9' /usr/bin/msp430-elf-ld:msp430f2013.ld:60: warning: redeclaration of memory region `VECT10' /usr/bin/msp430-elf-ld:msp430f2013.ld:61: warning: redeclaration of memory region `VECT11' /usr/bin/msp430-elf-ld:msp430f2013.ld:62: warning: redeclaration of memory region `VECT12' /usr/bin/msp430-elf-ld:msp430f2013.ld:63: warning: redeclaration of memory region `VECT13' /usr/bin/msp430-elf-ld:msp430f2013.ld:64: warning: redeclaration of memory region `VECT14' /usr/bin/msp430-elf-ld:msp430f2013.ld:65: warning: redeclaration of memory region `VECT15' /usr/bin/msp430-elf-ld:msp430f2013.ld:66: warning: redeclaration of memory region `RESETVEC' Attached you will find the Makefile, source code and linker script in question. Any suggestions as where to look are greatly appreciated. Thank you. Cheers, Orlando.
#include <msp430.h> #ifdef __GNUC__ __attribute__((interrupt(TIMER0_A0_VECTOR))) #else #pragma vector=TIMER0_A0_VECTOR #endif void TimerA_vec(void) { P1OUT ^= 0xff; } int main(void) { WDTCTL = WDTPW | WDTHOLD; P1DIR = 0xff; P1OUT = 0x01; TACCR0 = 62499; TACCTL0 = CCIE; TACTL = (TASSEL1 | MC0 | ID1 | ID0); __bis_SR_register(CPUOFF | GIE); return 0; }
Attachment:
Makefile
Description: Text document
Attachment:
msp430f2013.ld
Description: Text document
Attachment:
signature.asc
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |