gold patch committed: Warn about undefined protected symbols

Ian Lance Taylor iant@google.com
Tue Jan 12 19:14:00 GMT 2010


It's an error to refer to a protected/hidden/internal symbol which is
not defined locally.  The dynamic linker will not be able to resolve
such a reference.  I committed this patch to gold to make it gives
error about such cases.

Ian


2010-01-12  Ian Lance Taylor  <iant@google.com>

	* target-reloc.h (visibility_error): New inline function.
	(relocate_section): Call visibility_error.
	* testsuite/Makefile.am (check_DATA): Add protected_3.err.
	(MOSTLYCLEANFILES): Likewise.
	(protected_4_pic.o, protected_3.err): New targets.
	* testsuite/protected_4.cc: New file.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 4019 bytes
Desc: hidden
URL: <https://sourceware.org/pipermail/binutils/attachments/20100112/8772fb9e/attachment.bin>


More information about the Binutils mailing list