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] |
Hello I noticed in a version of the tools I am using that the output from ld shows the wrong line number for an "undefined reference". as my tools are not so recent (codesourcery), would someone be able to confirm if this issue is reproducable if possible please. The line number 19 is the last symbol in the start.S. void main(void) function does exist in the build as well. Possibly is this the debug info that is incorrect in the start.o file? I attach my sample assembler file, which is for ARM. Let me know if you would like me to create a bugzilla ticket. Best regards, Jon ./libtest.a(start.o): In function `go_main': c:\test\start.S:19: undefined reference to `global_buffer' collect2: ld returned 1 exit status make: *** [test.elf] Error 1 C:\>arm-none-eabi-ld --version GNU ld (Sourcery G++ Lite 2010.09-51) 2.20.51.20100809 arm-none-eabi-gcc (Sourcery G++ Lite 2010.09-51) 4.5.1
Attachment:
start.S
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |