This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: missing linker symbols w/ binutils-2.17
- From: Nick Clifton <nickc at redhat dot com>
- To: jbbachky at aim dot com
- Cc: binutils at sourceware dot org
- Date: Tue, 05 Dec 2006 16:03:10 +0000
- Subject: Re: missing linker symbols w/ binutils-2.17
- References: <8C8E38B21E2A5E7-BAC-11EF7@WEBMAIL-MC15.sysops.aol.com>
Hi John,
The linker script which follows has been working fine with binutils-2.15
on a number of architectures. Now that I'm attempting to upgrade to
2.17, I find that one of the linker-script-defined symbols does does NOT
get added to the symbol table.
The
"lexunix_prefetch_1_start" symbol simply doesn't make it into the
resulting symbol file.
Can you provide a way to reproduce this problem ?
I tried to reproduce it using the script you supplied, but the symbol
appeared in the symbol table:
% cp hello.o lexthread.o
% cp hello.o lexunix.o
% arm-ld hello.o -T johns_script.t
warning: cannot find entry symbol _start; defaulting to 0000000000008000
% nm a.out
00000000005a0054 T lexunix_prefetch1_end
00000000005a0054 A lexunix_prefetch1_start
00000000005a0054 T lexunix_prefetch2_end
00000000005a0054 T lexunix_prefetch2_start
00000000005a0054 T lexunix_prefetch_end
00000000005a0054 A lexunix_prefetch_start
00000000005a0054 t my_variable
00000000005a0078 t my_variable
00000000005a009c t my_variable
This was using the current binutils mainline sources, rather than the
2.17 release sources, so it is possible that there was a bug that has
now been fixed.
Cheers
Nick