This is the mail archive of the binutils@sources.redhat.com 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]

N_SO stabs corrupted after linking


Hi,

I have ported binutils to a new target. The problem that I encounter is that the string fields of N_SO stabs are corrupted after linking. When I dump the debugging info by means of objdump -G I see that the N_SO entries of the .o files are correct but the N_SO entries of the linker output are corrupted. Only the two entries of the first module are correct. Any idea what could be wrong? Is it the port? Is it the linker script that I use?

% objdump -G test.o | grep SO
0 SO 0 0 00000000 8 /home/hoogerb/gdb-5.3/cakesimtest/
1 SO 0 3 00000000 43 test.c
40 SO 0 3 00000000 0
% objdump -G test2.o | grep SO
0 SO 0 0 00000000 9 /home/hoogerb/gdb-5.3/cakesimtest/
1 SO 0 3 00000000 44 test2.c
19 SO 0 3 00000000 0
% << link test.o and test2.o to test >>
% objdump -G test | grep SO
0 SO 0 0 e0000140 8 /home/hoogerb/gdb-5.3/cakesimtest/
1 SO 0 3 e0000140 43 test.c
40 SO 0 3 e0000492 0
64 SO 0 0 e0000540 13 4,2112;scheduler_stack:59=ar1;0;127;1,4576,4096;idle_handler:60=B61=*62=f12,8672,32;clock:63=*64=65=xsclk_s:,8704,32;idle_spin_count:8,8736,32;;
65 SO 0 3 e0000540 48 ;1,4576,4096;idle_handler:60=B61=*62=f12,8672,32;clock:63=*64=65=xsclk_s:,8704,32;idle_spin_count:8,8736,32;;
1648 SO 0 0 e000e680 22 *
1649 SO 0 3 e000e680 47 *
2432 SO 0 0 e0013280 22 *
2433 SO 0 3 e0013280 47 *
3069 SO 0 0 e0016e40 5204 *
3070 SO 0 3 e0016e40 5211 *
3224 SO 0 0 e0017840 5204 *
3225 SO 0 3 e0017840 5967 *
3367 SO 0 0 e0017f40 22 *
3368 SO 0 3 e0017f40 29 *
3655 SO 0 0 e0018980 22 *
3656 SO 0 3 e0018980 29 *
...


Thanks,
Jan

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]