I'm investigating a compiler error, and I'm getting no joy
from the LD_DEBUG option.  Can anyone offer me any hints?

% sh go
ld: fatal: relocation error: file: Derived-sparc-S2-debug/javatypenode.o 
section: .rela.debug_info symbol: : relocation against a discarded symbol,
         symbol is part of discarded section: 
.text%__1cGVector4CpnMJavaTypeNode__Egrow6Mi_v_

% LD_DEBUG=symbols,sections,segments,basic,bindings,entry,reloc,files sh go > 
out 2>&1

% grep Vector out
         symbol is part of discarded section: 
.text%__1cGVector4CpnMJavaTypeNode__Egrow6Mi_v_06664: 1: symbol=_xflsbuf;  
lookup in file=/usr/ccs/bin/ld  [ ELF ]

(I see there is a misplaced CR/LF in here somewhere)
% grep javatypenode
relocation error: file: Derived-sparc-S2-debug/javatypenode.o section: 
.rela.debug_info symbol: : relocation against a discarded symbol,


Is there any way I can get debug info about the .o files that are
being read and processed?

Ideally I would also like information about which sections are present in which 
.o files?

--chris




Reply via email to