Define DWARF2_FDE_RELOC_SIZE for MIPS
Thiemo Seufer
ths@networkno.de
Thu Sep 4 20:35:00 GMT 2008
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
More information about the Binutils
mailing list