This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

Re: [PATCH] PR dynamic-link/17711: copy relocations against protected symbols don't work


> Protocted symbol in shared library can only be accessed from PIE
> or shared library.  Linker in binutils 2.26 enforces it.  We must
> compile vismain with -fPIE and link it with -pie.  OK for master?

Add some comments (in vismain.c is probably fine) explaining that it must
be a PIE and why.

> 	PR dynamic-link/17711
	[BZ #17711]

> 	* elf/Makefile (tests): Add vismain only if PIE is enabled.
> 	(tests-pie): Add vismain.
> 	(CFLAGS-vismain.c): New.


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