[patch] Use LDPR_PREVAILING_DEF for symbols in -u

Rafael Avila de Espindola respindola@mozilla.com
Fri Feb 4 21:21:00 GMT 2011


Using the gold plugin I noticed that symbols passed to -u were still 
reported as LDPR_PREVAILING_DEF_IRONLY. I believe the correct behaviour 
would be to return LDPR_PREVAILING_DEF. This is useful for example for 
letting the linker (and therefore the compiler) know of references that 
exist only in inline assembly.

2010-02-04  Rafael Ávila de Espíndola <respindola@mozilla.com>

	* plugin.cc (is_visible_from_outside): Return true for symbols
	in the -u option.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gold-plugin-u.patch
Type: text/x-patch
Size: 471 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20110204/a47815cd/attachment.bin>


More information about the Binutils mailing list