Re: RFA: gas/cgen.[ch]: Make it easier to generate pc-relative relocations

2011-09-08 Thread Nick Clifton
Hi Joern, * cgen.c (gas_cgen_pcrel_r_type): New function. (gas_cgen_tc_gen_reloc): Check for GAS_CGEN_PCREL_R_TYPE. * cgen.h (gas_cgen_pcrel_r_type): Declare. Approved and applied. Cheers Nick ___ bug-binutils mailing li

RFA: gas/cgen.[ch]: Make it easier to generate pc-relative relocations

2011-08-18 Thread Joern Rennecke
I find that it is currently too hard to get pc-relative relocations right in a cgen-generated gas. E.g. look at testsuite/ld-elf/merge* . When the bfd_reloc_code_real_type of a fragment is selected, it is not known if the fragment is pc-relative or not. You could define tc_gen_reloc to your own