missing linker symbols w/ binutils-2.17

jbbachky@aim.com jbbachky@aim.com
Fri Dec 1 18:10:00 GMT 2006


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. I DO see it in the .map 
file, and it had the correct value. However, its really not in the 
symbol table. This script is used to create a library which needs to 
provide that symbol. I originally had the first two symbols defined in 
their own section.

I haven't been able to find a bug report which seems to mention this 
problem. I've tried a number of things w/o success. The 
"lexunix_prefetch_1_start" symbol simply doesn't make it into the 
resulting symbol file. The 5 other similar symbols all get processed 
correctly.

Any and all help is appreciated,
John

OUTPUT_ARCH(arm)

SECTIONS
{
. = 0x5a0000 + SIZEOF_HEADERS;

lexunix_prefetch_start = . ;
lexunix_prefetch1_start = . ;

PREFETCH : {
*(.PREFETCH1.text)
*(.PREFETCH1.data)
./lexthread.o (.rodata)
./lexunix.o (.rodata)
lexunix_prefetch1_end = .;

lexunix_prefetch2_start = .;
*(.PREFETCH2.text)
*(.PREFETCH2.data)
lexunix_prefetch2_end = .;
lexunix_prefetch_end = .;
}

.text : { * (.text) }
.rodata : { * (.rodata) }
. += 0x1000;
.data : { * (.data) * (COMMON) }
.sdata : { * (.sdata) }
.bss : { * (.bss*) }
/DISCARD/ : { * (.reginfo) }
}
________________________________________________________________________
Check Out the new free AIM(R) Mail -- 2 GB of storage and 
industry-leading spam and email virus protection.



More information about the Binutils mailing list