This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Define DWARF2_FDE_RELOC_SIZE for MIPS
- From: Thiemo Seufer <ths at networkno dot de>
- To: binutils at sourceware dot org, rdsandiford at googlemail dot com
- Date: Thu, 4 Sep 2008 22:34:33 +0200
- Subject: Re: Define DWARF2_FDE_RELOC_SIZE for MIPS
- References: <87tzcvad3f.fsf@firetop.home>
Richard Sandiford wrote:
> MIPS n64 needs the same treatment as 64-bit HPPA, where absolute FDE
> addresses must be 8 rather than 4 bytes in size.
>
> Tested on mips64-linux-gnu. OK to install?
>
> Richard
>
>
> gas/
> * config/tc-mips.h (DWARF2_FDE_RELOC_SIZE): Define.
>
> gas/testsuite/
> * gas/mips/cfi-n64-1.s, gas/mips/cfi-n64-1.d: New test.
> * gas/mips/mips.exp: Run it.
>
> Index: gas/config/tc-mips.h
> ===================================================================
> --- gas/config/tc-mips.h 2008-09-04 20:47:38.000000000 +0100
> +++ gas/config/tc-mips.h 2008-09-04 20:47:58.000000000 +0100
> @@ -168,6 +168,7 @@ #define DWARF2_FORMAT(SEC) mips_dwarf2_f
>
> extern int mips_dwarf2_addr_size (void);
> #define DWARF2_ADDR_SIZE(bfd) mips_dwarf2_addr_size ()
> +#define DWARF2_FDE_RELOC_SIZE (mips_dwarf2_addr_size ())
Extra parentheses, otherwise ok.
Thiemo