Date: Tue, 23 Aug 2005 10:40:27 GMT From: Kostik Belousov <kostikbel@gmail.com> To: freebsd-i386@FreeBSD.org Subject: Re: i386/85242: [patch] libc contains relocation to the .text section Message-ID: <200508231040.j7NAeRcf017769@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/85242; it has been noted by GNATS. From: Kostik Belousov <kostikbel@gmail.com> To: bug-followup@FreeBSD.org Cc: Subject: Re: i386/85242: [patch] libc contains relocation to the .text section Date: Tue, 23 Aug 2005 13:37:44 +0300 Sorry, wrong patch. Correct one: --- orig/lib/libc/i386/gen/_ctx_start.S +++ mod/lib/libc/i386/gen/_ctx_start.S @@ -45,6 +45,10 @@ * setup stack for completion routine; * ucp is now at top of stack */ - call _ctx_done /* should never return */ - call abort /* fubar */ +#ifdef PIC + PIC_PROLOGUE + popl %eax +#endif + call PIC_PLT(_ctx_done) /* should never return */ + call PIC_PLT(abort) /* fubar */ ret Tested _both_ static and dynamic linking of libc. Sorry.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508231040.j7NAeRcf017769>