increase pptp package version
[openwrt.git] / toolchain / gcc / 3.3.5 / 820-no-mips-empic-relocs.patch
1 From: cgd at broadcom dot com
2 To: gcc-patches at gcc dot gnu dot org
3 Cc: mark at codesourcery dot com
4 Date: 13 Jun 2004 22:51:30 -0700
5 Subject: [trunk + 3.4-branch RFA] don't use empic relocs for mips-linuxeh
6
7 This patch changes mips-linux to avoid using embedded-pic relocs for
8 its eh data. (Support for generating these for new code is removed in
9 current binutils srcs.)
10
11 Relating to this, previously, mips-linux and mips64-linux would use
12 different representations for their EH data (even for mips64-linux o32
13 abi), due to the mips64-linux n32/64 BFDs not supporting the
14 embedded-pic relocs. This was a bug.
15
16 For more explanation, see the thread of the URL quoted in the comment
17 in linux.h.
18
19
20 Tested the same w/ sources of about a week ago for c/c++ for
21 mips-linux (native) before/after. Also verified .o compatibility
22 before/after just to be sure.
23
24 I'd like this approved for the branch as well, so 3.4.1 will work
25 nicely w/ the next major binutils release.
26
27
28 thanks,
29
30 chris
31
32 2004-06-13 Chris Demetriou <cgd@broadcom.com>
33
34 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Redefine
35 to return DW_EH_PE_absptr.
36
37 Index: config/mips/linux.h
38 ===================================================================
39 RCS file: /cvs/gcc/gcc/gcc/config/mips/linux.h,v
40 retrieving revision 1.77
41 diff -u -p -r1.77 linux.h
42 --- gcc/gcc/config/mips/linux.h 19 Feb 2004 22:07:51 -0000 1.77
43 +++ gcc/gcc/config/mips/linux.h 14 Jun 2004 05:49:51 -0000
44 @@ -170,10 +170,11 @@ Boston, MA 02111-1307, USA. */
45 #undef FUNCTION_NAME_ALREADY_DECLARED
46 #define FUNCTION_NAME_ALREADY_DECLARED 1
47
48 -#define ASM_PREFERRED_EH_DATA_FORMAT(CODE, GLOBAL) \
49 - (flag_pic \
50 - ? ((GLOBAL) ? DW_EH_PE_indirect : 0) | DW_EH_PE_pcrel | DW_EH_PE_sdata4\
51 - : DW_EH_PE_absptr)
52 +/* If possible, we should attempt to use GP-relative relocs for this
53 + (see <a href="http://sources.redhat.com/ml/binutils/2004-05/msg00227.html">http://sources.redhat.com/ml/binutils/2004-05/msg00227.html</a>).
54 + However, until that is implement, this just uses standard, absolute
55 + references. */
56 +#define ASM_PREFERRED_EH_DATA_FORMAT(CODE, GLOBAL) DW_EH_PE_absptr
57
58 /* The glibc _mcount stub will save $v0 for us. Don't mess with saving
59 it, since ASM_OUTPUT_REG_PUSH/ASM_OUTPUT_REG_POP do not work in the
This page took 0.051844 seconds and 5 git commands to generate.