Changeset 558

Show
Ignore:
Timestamp:
02/21/06 07:55:58 (3 years ago)
Author:
jim
Message:

r560@server (orig r558): roliver | 2005-06-03 22:48:58 -0700
Update arm glibc-2.3.4 gcc4 patch
Add fixes for i386 (seen when building 32bit glibc on amd64)
Update glibc-2.3.4-gcc4_elf_fixes.patch to reflect changes



Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cross-lfs/cross-lfs/trunk/patches/glibc-2.3.4-gcc4_elf_fixes.patch

    r493 r558  
    11Submitted By: Ryan Oliver <ryan.oliver@pha.com.au>  
    2 Date: 2005-05-03 
     2Date: 2005-05-03 (updated 2005-06-03) 
    33Initial Package Version: 2.3.4 
    44Origin: glibc cvs 
     
    77        libc/sysdeps/arm/dl-machine.h 
    88         - fix_bad_pc24 fix from Dan Kegel's crosstool 
    9          - remainder from -r1.51 
     9         - remainder from -r1.52 
    1010        libc/sysdeps/generic/dl-machine.h -r1.9 
    1111        libc/sysdeps/mips/dl-machine.h -r1.77 
     
    1414        libc/sysdeps/powepc/powerpc64/dl-machine.h -r1.23 
    1515        libc/sysdeps/sparc/sparc64/dl-machine.h -r1.48 
     16        libc/sysdeps/i386/dl-machine.h -r1.134 (except using RESOLVE) 
    1617Upstream Status: See Origin, all except fix_bad_pc24 fixed in glibc cvs 
    1718Description:  
     
    3536        elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel): 
    3637        Likewise. 
     38 
     392005-03-05  Jakub Jelinek  <jakub@redhat.com> 
     40 
     41        * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define 
     42        unconditionally to (defined RTLD_BOOTSTRAP). 
     43        * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Likewise 
     44 
     452005-03-01  Roland McGrath  <roland@redhat.com> 
     46 
     47        [BZ #721] 
     48        * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside 
     49        of [RESOLVE_MAP] 
    3750 
    38512005-02-16  Roland McGrath  <roland@redhat.com> 
     
    156169 { 
    157170--- glibc-2.3.4/sysdeps/arm/dl-machine.h-orig   2004-12-05 08:20:17.000000000 +1100 
    158 +++ glibc-2.3.4/sysdeps/arm/dl-machine.h        2005-05-04 18:41:04.000000000 +1000 
    159 @@ -359,7 +359,8 @@ 
    160  # endif 
     171+++ glibc-2.3.4/sysdeps/arm/dl-machine.h        2005-06-03 15:33:44.000000000 +1000 
     172@@ -350,16 +350,15 @@ 
     173  
     174 #endif /* !dl_machine_h */ 
     175  
     176-#ifdef RESOLVE 
     177
     178 /* ARM never uses Elf32_Rela relocations for the dynamic linker. 
     179    Prelinked libraries may use Elf32_Rela though.  */ 
     180-# ifdef RTLD_BOOTSTRAP 
     181-#  define ELF_MACHINE_NO_RELA 1 
     182-# endif 
     183+#define ELF_MACHINE_NO_RELA defined RTLD_BOOTSTRAP 
     184
     185+#ifdef RESOLVE 
    161186  
    162187 /* Deal with an out-of-range PC24 reloc.  */ 
     
    167192 { 
    168193   static void *fix_page; 
    169 @@ -392,7 +393,8 @@ 
     194@@ -392,7 +391,8 @@ 
    170195 /* Perform the relocation specified by RELOC and SYM (which is fully resolved). 
    171196    MAP is the object containing the reloc.  */ 
     
    177202                 const Elf32_Sym *sym, const struct r_found_version *version, 
    178203                 void *const reloc_addr_arg) 
    179 @@ -517,7 +519,8 @@ 
     204@@ -517,7 +517,8 @@ 
    180205 } 
    181206  
     
    187212                  const Elf32_Sym *sym, const struct r_found_version *version, 
    188213                  void *const reloc_addr_arg) 
    189 @@ -597,7 +600,8 @@ 
     214@@ -597,7 +598,8 @@ 
    190215 } 
    191216 # endif 
     
    197222                          void *const reloc_addr_arg) 
    198223 { 
    199 @@ -606,7 +610,8 @@ 
     224@@ -606,7 +608,8 @@ 
    200225 } 
    201226  
     
    207232                           void *const reloc_addr_arg) 
    208233 { 
    209 @@ -615,7 +620,8 @@ 
     234@@ -615,7 +618,8 @@ 
    210235 } 
    211236 # endif 
     
    472497                      Elf64_Addr l_addr, const Elf64_Rela *reloc) 
    473498 { 
     499--- glibc-2.3.4/sysdeps/i386/dl-machine.h-orig  2004-09-28 14:54:41.000000000 +1000 
     500+++ glibc-2.3.4/sysdeps/i386/dl-machine.h       2005-06-02 19:28:58.000000000 +1000 
     501@@ -377,13 +377,11 @@ 
     502  
     503 #endif /* !dl_machine_h */ 
     504  
     505-#ifdef RESOLVE 
     506- 
     507 /* The i386 never uses Elf32_Rela relocations for the dynamic linker. 
     508    Prelinked libraries may use Elf32_Rela though.  */ 
     509-#ifdef RTLD_BOOTSTRAP 
     510-# define ELF_MACHINE_NO_RELA 1 
     511-#endif 
     512+#define ELF_MACHINE_NO_RELA defined RTLD_BOOTSTRAP 
     513+ 
     514+#ifdef RESOLVE 
     515  
     516 /* Perform the relocation specified by RELOC and SYM (which is fully resolved). 
     517    MAP is the object containing the reloc.  */ 
  • cross-lfs/cross-lfs/trunk/patches/glibc-2.3.4-gcc4_elf_fixes_individual/glibc-2.3.4-gcc4_arm_elf_dl-machine.patch

    r556 r558  
    1 Submitted By: Ryan Oliver <ryan.oliver@pha.com.au> Date: 2005-05-03 
     1Submitted By: Ryan Oliver <ryan.oliver@pha.com.au>  
     2Date: 2005-05-03 (updated 20050603) 
    23Initial Package Version: 2.3.4 
    34Origin: fix_bad_pc24 from Dan Kegel's crosstool, rest from glibc cvs 
     
    56Description:  
    67 
    7 ( edited changelog entry
     8( edited changelog entries
    892005-03-15  Jakub Jelinek  <jakub@redhat.com> 
    910 
     
    1213        Add inline keyword. 
    1314 
     152005-03-05  Jakub Jelinek  <jakub@redhat.com> 
     16 
     17        * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Define 
     18        unconditionally to (defined RTLD_BOOTSTRAP). 
     19 
     202005-03-01  Roland McGrath  <roland@redhat.com> 
     21 
     22        [BZ #721] 
     23        * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside 
     24        of [RESOLVE_MAP] 
     25 
    1426fix_bad_pc24 fix from Dan Kegel's crosstool 
    1527 
    1628--- glibc-2.3.4/sysdeps/arm/dl-machine.h-orig   2004-12-05 08:20:17.000000000 +1100 
    17 +++ glibc-2.3.4/sysdeps/arm/dl-machine.h        2005-05-04 18:41:04.000000000 +1000 
    18 @@ -359,7 +359,8 @@ 
    19  # endif 
     29+++ glibc-2.3.4/sysdeps/arm/dl-machine.h        2005-06-03 15:33:44.000000000 +1000 
     30@@ -350,16 +350,15 @@ 
     31  
     32 #endif /* !dl_machine_h */ 
     33  
     34-#ifdef RESOLVE 
     35
     36 /* ARM never uses Elf32_Rela relocations for the dynamic linker. 
     37    Prelinked libraries may use Elf32_Rela though.  */ 
     38-# ifdef RTLD_BOOTSTRAP 
     39-#  define ELF_MACHINE_NO_RELA 1 
     40-# endif 
     41+#define ELF_MACHINE_NO_RELA defined RTLD_BOOTSTRAP 
     42
     43+#ifdef RESOLVE 
    2044  
    2145 /* Deal with an out-of-range PC24 reloc.  */ 
     
    2650 { 
    2751   static void *fix_page; 
    28 @@ -392,7 +393,8 @@ 
     52@@ -392,7 +391,8 @@ 
    2953 /* Perform the relocation specified by RELOC and SYM (which is fully resolved). 
    3054    MAP is the object containing the reloc.  */ 
     
    3660                 const Elf32_Sym *sym, const struct r_found_version *version, 
    3761                 void *const reloc_addr_arg) 
    38 @@ -517,7 +519,8 @@ 
     62@@ -517,7 +517,8 @@ 
    3963 } 
    4064  
     
    4670                  const Elf32_Sym *sym, const struct r_found_version *version, 
    4771                  void *const reloc_addr_arg) 
    48 @@ -597,7 +600,8 @@ 
     72@@ -597,7 +598,8 @@ 
    4973 } 
    5074 # endif 
     
    5680                          void *const reloc_addr_arg) 
    5781 { 
    58 @@ -606,7 +610,8 @@ 
     82@@ -606,7 +608,8 @@ 
    5983 } 
    6084  
     
    6690                           void *const reloc_addr_arg) 
    6791 { 
    68 @@ -615,7 +620,8 @@ 
     92@@ -615,7 +618,8 @@ 
    6993 } 
    7094 # endif