PSARC/2008/179 cross link-editor

Ali Bahrami Ali.Bahrami at sun.com
Thu Mar 6 10:27:40 PST 2008


John Plocher wrote:
> Ali Bahrami wrote:
>> The link-editor will tag every dynamic object it produces with a
>> DT_SUNW_LDMACH dynamic section entry. DT_SUNW_LDMACH is an integer
> 
> 
> Any chance of updating file(1) to know about this info?
> 
>    -John
> 

My feeling is that this wouldn't be the right thing. In principle,
a cross compiled object should be identical to the same object built
natively, and isn't a primary attribute in same way that the information
displayed by 'file' is.

DT_SUNW_LDMACH is really diagnostic information, of interest only when
the compiler/linker have done something wrong and we're trying to root
cause the issue. elfdump or elfedit are the best tools for getting that
this sort of information.

- Ali




More information about the opensolaris-arc mailing list