Re: [PATCH] i386: Access external function via GOT slot for -fno-plt

2016-06-23 Thread H.J. Lu
On Thu, Jun 23, 2016 at 9:23 AM, Uros Bizjak wrote: > On Thu, Jun 23, 2016 at 6:08 PM, H.J. Lu wrote: > >> Here is the updated patch. OK for trunk? >> >> PR target/66232 >> PR target/67400 >> * configure.ac (as_ix86_tls_ldm_opt): Renamed to ... >> (as_ix86_gas_opt): This. >> (ld_ix86_tls_ldm_opt

Re: [PATCH] i386: Access external function via GOT slot for -fno-plt

2016-06-23 Thread Uros Bizjak
On Thu, Jun 23, 2016 at 6:08 PM, H.J. Lu wrote: > Here is the updated patch. OK for trunk? > > PR target/66232 > PR target/67400 > * configure.ac (as_ix86_tls_ldm_opt): Renamed to ... > (as_ix86_gas_opt): This. > (ld_ix86_tls_ldm_opt): Renamed to ... > (ld_ix86_gld_opt): This. > (R_386_TLS_LDM r

Re: [PATCH] i386: Access external function via GOT slot for -fno-plt

2016-06-23 Thread H.J. Lu
t;> + .data >> +bar: >> + .byte 1 >> + .text >> + .global _start >> +_start: >> +movl \$0, bar@GOT >> +jmp *_start@GOT >> +EOF >> +if $gcc_cv_as $as_ix86_got32x_opt -o conftest.o conftest.s >

Re: [PATCH] i386: Access external function via GOT slot for -fno-plt

2016-06-23 Thread Uros Bizjak
On Thu, Jun 23, 2016 at 1:45 PM, H.J. Lu wrote: > i386 psABI has been updated to clarify that R_386_GOT32X and R_386_GOT32 > relocations can be used to access GOT without base register when PIC is > disabled: > > https://groups.google.com/forum/#!topic/ia32-abi/awsRSvJOJfs > > 32-bit x86 assembler

[PATCH] i386: Access external function via GOT slot for -fno-plt

2016-06-23 Thread H.J. Lu
i386 psABI has been updated to clarify that R_386_GOT32X and R_386_GOT32 relocations can be used to access GOT without base register when PIC is disabled: https://groups.google.com/forum/#!topic/ia32-abi/awsRSvJOJfs 32-bit x86 assembler and linker from binutils 2.26.1 and 2.27 support call/jmp *