This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Use --as-needed -lgcc_s for eh support for NetBSD


NetBSD does currently not link with gcc_s, so some programs fails to
link with errors such as:

hidden symbol `_Unwind_GetIP' is referenced by DSO

This is solved by the attached patch.

Bootstrapped and regtested on i386-unknown-netbsdelf3.1 where it fix
597 unexpected failures in the libgomp and libjava testsuite.

OK to commit?

/Krister


2007-05-06 Krister Walfridsson <cato@df.lth.se>


	* config/netbsd-elf.h (Copyright): Update year.
	(USE_LD_AS_NEEDED): Define.

Attachment: patch_netbsd-elf.h
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]