remove attempts to be pie-compatible from i386 crt1.s

it does not work; after further consideration, a separate Scrt1.s for
pie really is essential. it would be nice if the unified approach
worked, but the linker fails to generate the correct PLT entries and
instead puts textrels in the main program, which don't work because
the kernel maps the text read-only.

new Scrt1.s will be committed soon in place of this.
This commit is contained in:
Rich Felker 2012-05-02 20:56:55 -04:00
parent 485fb14ab4
commit c9dea48f84
1 changed files with 3 additions and 6 deletions

View File

@ -10,13 +10,10 @@ _start:
pushl %esp pushl %esp
pushl %esp pushl %esp
pushl %edx pushl %edx
call 1f pushl $_fini
1: addl $[_fini-.],(%esp) pushl $_init
call 1f
1: addl $[_init-.],(%esp)
pushl %eax pushl %eax
pushl %ecx pushl %ecx
call 1f pushl $main
1: addl $[main-.],(%esp)
call __libc_start_main call __libc_start_main
1: jmp 1b 1: jmp 1b