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.
pushl %esp
pushl %esp
pushl %edx
pushl %esp
pushl %esp
pushl %edx
- call 1f
-1: addl $[_fini-.],(%esp)
- call 1f
-1: addl $[_init-.],(%esp)
+ pushl $_fini
+ pushl $_init
- call 1f
-1: addl $[main-.],(%esp)
call __libc_start_main
1: jmp 1b
call __libc_start_main
1: jmp 1b