I think your using the wrong debugging environment variable.

LD_DEBUG=... enables debuggign for the run-time linker

But - you're debugging a link-edit (ld) problem, you should instead
set:

% LD_OPTIONS='-Dsymbols,sections,...' go

and see if that gives you something more appropriate...

_Mike_

Chris Quenelle wrote:
> 
> 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
> 
> 
> 
> _______________________________________________
> tools-linking mailing list
> tools-linking at opensolaris.org


Reply via email to