i386/85242: [patch] libc contains relocation to the .text section

Kostik Belousov kostikbel at gmail.com
Tue Aug 23 10:40:27 GMT 2005


The following reply was made to PR i386/85242; it has been noted by GNATS.

From: Kostik Belousov <kostikbel at gmail.com>
To: bug-followup at 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.


More information about the freebsd-i386 mailing list