This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] ARM OABI - pc-relative relocations


On Mon, 15 Dec 2003, Zack Weinberg wrote:
> Index: gas/config/tc-arm.c
> --- gas/config/tc-arm.c	26 Nov 2003 05:10:06 -0000	1.1.3.1.2.1
> +++ gas/config/tc-arm.c	1 Dec 2003 08:00:23 -0000	1.1.3.1.2.2
> @@ -11274,7 +11274,19 @@ md_apply_fix3 (fixP, valP, seg)
>  	as_bad_where (fixP->fx_file, fixP->fx_line,
>  		      _("out of range branch"));
>
> -      newval = (value & 0x00ffffff) | (newval & 0xff000000);
> +      if (seg->use_rela_p && !fixP->fx_done)

I don't see use_rela_p defined in FSF CVS (expecting a
TC_SEGMENT_INFO_TYPE definition in tc-arm.h and a #define
tc_segment_info_data use_rela_p -- of course you didn't hack
gas/seg.h for this! ;-)  If you want to minimize general changes
perhaps you can instead use
 get_elf_backend_data (stdoutput)->default_use_rela_p.
See bfd/elf-bfd.h.

brgds, H-P


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]