This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gas question]relocate type of function call in i386
Well reading the gas source code I have found the answer.
binutils-source/gas/config/tc-i386.c
output_insn()
output_jump()
reloc()
When call the reloc() pass the 2ed argument :1, means it is PC-relative
2017-01-05 18:34 GMT+08:00 zet <feqin1023@gmail.com>:
> Hello, gas(GNU as) developers.
>
> I only talk about i386.
>
> When gas deal with this assembly code:
>
> ---------------------------
> call function_name
> ---------------------------
>
> In static NO PIC, the relocation type of function_name in call
> instruction must be R_386_PC32?
> Is it possible R_386_32 in gas(GNU as)?
>
> thx.
>
> --
> 业精于勤,荒于嬉.
--
业精于勤,荒于嬉.