📄 001-debian.patch
字号:
+ bfd_put_32 (output_bfd, got_displacement, splt->contents + 16);+#endif } /* UnixWare sets the entsize of .plt to 4, although that doesn't@@ -3714,7 +4127,7 @@ #define elf_backend_check_relocs elf32_arm_check_relocs #define elf_backend_relocate_section elf32_arm_relocate_section #define elf_backend_adjust_dynamic_symbol elf32_arm_adjust_dynamic_symbol-#define elf_backend_create_dynamic_sections _bfd_elf_create_dynamic_sections+#define elf_backend_create_dynamic_sections elf32_arm_create_dynamic_sections #define elf_backend_finish_dynamic_symbol elf32_arm_finish_dynamic_symbol #define elf_backend_finish_dynamic_sections elf32_arm_finish_dynamic_sections #define elf_backend_size_dynamic_sections elf32_arm_size_dynamic_sections@@ -3723,7 +4136,9 @@ #define elf_backend_object_p elf32_arm_object_p #define elf_backend_section_flags elf32_arm_section_flags #define elf_backend_final_write_processing elf32_arm_final_write_processing+#define elf_backend_copy_indirect_symbol elf32_arm_copy_indirect_symbol +#define elf_backend_can_refcount 1 #define elf_backend_can_gc_sections 1 #define elf_backend_plt_readonly 1 #define elf_backend_want_got_plt 1@@ -3733,7 +4148,7 @@ #endif #define elf_backend_got_header_size 12-#define elf_backend_plt_header_size PLT_ENTRY_SIZE+#define elf_backend_plt_header_size PLT_HEADER_SIZE #include "elf32-target.h" diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-avr.c binutils-2.14.90.0.7/bfd/elf32-avr.c--- binutils-2.14.90.0.7.orig/bfd/elf32-avr.c 2003-07-23 09:08:08.000000000 -0600+++ binutils-2.14.90.0.7/bfd/elf32-avr.c 2004-04-20 01:26:12.000000000 -0600@@ -750,7 +750,7 @@ { sym = local_syms + r_symndx; sec = local_sections [r_symndx];- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); name = bfd_elf_string_from_elf_section (input_bfd, symtab_hdr->sh_link, sym->st_name);diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-cris.c binutils-2.14.90.0.7/bfd/elf32-cris.c--- binutils-2.14.90.0.7.orig/bfd/elf32-cris.c 2003-08-21 09:28:47.000000000 -0600+++ binutils-2.14.90.0.7/bfd/elf32-cris.c 2004-04-20 01:26:12.000000000 -0600@@ -847,7 +847,7 @@ { sym = local_syms + r_symndx; sec = local_sections [r_symndx];- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); symname = (bfd_elf_string_from_elf_section (input_bfd, symtab_hdr->sh_link, sym->st_name));@@ -1292,16 +1292,7 @@ { long indx; - if (h == NULL)- sec = local_sections[r_symndx];- else- {- BFD_ASSERT (h->root.type == bfd_link_hash_defined- || (h->root.type- == bfd_link_hash_defweak));- sec = h->root.u.def.section;- }- if (sec != NULL && bfd_is_abs_section (sec))+ if (bfd_is_abs_section (sec)) indx = 0; else if (sec == NULL || sec->owner == NULL) {diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-fr30.c binutils-2.14.90.0.7/bfd/elf32-fr30.c--- binutils-2.14.90.0.7.orig/bfd/elf32-fr30.c 2003-07-23 09:08:08.000000000 -0600+++ binutils-2.14.90.0.7/bfd/elf32-fr30.c 2004-04-20 01:26:12.000000000 -0600@@ -552,7 +552,7 @@ { sym = local_syms + r_symndx; sec = local_sections [r_symndx];- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); name = bfd_elf_string_from_elf_section (input_bfd, symtab_hdr->sh_link, sym->st_name);diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-frv.c binutils-2.14.90.0.7/bfd/elf32-frv.c--- binutils-2.14.90.0.7.orig/bfd/elf32-frv.c 2003-10-29 10:37:47.000000000 -0700+++ binutils-2.14.90.0.7/bfd/elf32-frv.c 2004-04-20 01:26:12.000000000 -0600@@ -724,7 +724,7 @@ { sym = local_syms + r_symndx; sec = local_sections [r_symndx];- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); name = bfd_elf_string_from_elf_section (input_bfd, symtab_hdr->sh_link, sym->st_name);diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-h8300.c binutils-2.14.90.0.7/bfd/elf32-h8300.c--- binutils-2.14.90.0.7.orig/bfd/elf32-h8300.c 2003-10-29 10:37:47.000000000 -0700+++ binutils-2.14.90.0.7/bfd/elf32-h8300.c 2004-04-20 01:26:12.000000000 -0600@@ -435,7 +435,7 @@ { sym = local_syms + r_symndx; sec = local_sections[r_symndx];- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); } else {diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-hppa.c binutils-2.14.90.0.7/bfd/elf32-hppa.c--- binutils-2.14.90.0.7.orig/bfd/elf32-hppa.c 2003-10-29 10:37:47.000000000 -0700+++ binutils-2.14.90.0.7/bfd/elf32-hppa.c 2004-04-20 01:26:12.000000000 -0600@@ -3408,7 +3408,7 @@ /* This is a local symbol, h defaults to NULL. */ sym = local_syms + r_symndx; sym_sec = local_sections[r_symndx];- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sym_sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sym_sec, rel); } else {diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-i370.c binutils-2.14.90.0.7/bfd/elf32-i370.c--- binutils-2.14.90.0.7.orig/bfd/elf32-i370.c 2003-07-23 09:08:08.000000000 -0600+++ binutils-2.14.90.0.7/bfd/elf32-i370.c 2004-04-20 01:26:12.000000000 -0600@@ -1210,7 +1210,7 @@ sec = local_sections[r_symndx]; sym_name = "<local symbol>"; - relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); addend = rel->r_addend; } else@@ -1363,16 +1363,7 @@ { long indx; - if (h == NULL)- sec = local_sections[r_symndx];- else- {- BFD_ASSERT (h->root.type == bfd_link_hash_defined- || (h->root.type- == bfd_link_hash_defweak));- sec = h->root.u.def.section;- }- if (sec != NULL && bfd_is_abs_section (sec))+ if (bfd_is_abs_section (sec)) indx = 0; else if (sec == NULL || sec->owner == NULL) {diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-i860.c binutils-2.14.90.0.7/bfd/elf32-i860.c--- binutils-2.14.90.0.7.orig/bfd/elf32-i860.c 2003-10-29 10:37:47.000000000 -0700+++ binutils-2.14.90.0.7/bfd/elf32-i860.c 2004-04-20 01:26:12.000000000 -0600@@ -1104,7 +1104,7 @@ { sym = local_syms + r_symndx; sec = local_sections [r_symndx];- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); name = bfd_elf_string_from_elf_section (input_bfd, symtab_hdr->sh_link, sym->st_name);diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-m32r.c binutils-2.14.90.0.7/bfd/elf32-m32r.c--- binutils-2.14.90.0.7.orig/bfd/elf32-m32r.c 2003-10-29 10:37:47.000000000 -0700+++ binutils-2.14.90.0.7/bfd/elf32-m32r.c 2004-04-20 01:26:12.000000000 -0600@@ -1107,7 +1107,7 @@ sec = local_sections[r_symndx]; sym_name = "<local symbol>"; #if !USE_REL- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); addend = rel->r_addend; #else /* FIXME: This won't handle local relocations against SEC_MERGEdiff -urN binutils-2.14.90.0.7.orig/bfd/elf32-m68k.c binutils-2.14.90.0.7/bfd/elf32-m68k.c--- binutils-2.14.90.0.7.orig/bfd/elf32-m68k.c 2003-08-21 09:28:47.000000000 -0600+++ binutils-2.14.90.0.7/bfd/elf32-m68k.c 2004-04-20 01:26:12.000000000 -0600@@ -1403,7 +1403,7 @@ { sym = local_syms + r_symndx; sec = local_sections[r_symndx];- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); } else {@@ -1657,16 +1657,7 @@ { long indx; - if (h == NULL)- sec = local_sections[r_symndx];- else- {- BFD_ASSERT (h->root.type == bfd_link_hash_defined- || (h->root.type- == bfd_link_hash_defweak));- sec = h->root.u.def.section;- }- if (sec != NULL && bfd_is_abs_section (sec))+ if (bfd_is_abs_section (sec)) indx = 0; else if (sec == NULL || sec->owner == NULL) {diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-mcore.c binutils-2.14.90.0.7/bfd/elf32-mcore.c--- binutils-2.14.90.0.7.orig/bfd/elf32-mcore.c 2003-10-29 10:37:48.000000000 -0700+++ binutils-2.14.90.0.7/bfd/elf32-mcore.c 2004-04-20 01:26:12.000000000 -0600@@ -467,7 +467,7 @@ { sym = local_syms + r_symndx; sec = local_sections [r_symndx];- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); addend = rel->r_addend; } elsediff -urN binutils-2.14.90.0.7.orig/bfd/elf32-msp430.c binutils-2.14.90.0.7/bfd/elf32-msp430.c--- binutils-2.14.90.0.7.orig/bfd/elf32-msp430.c 2003-08-21 09:28:47.000000000 -0600+++ binutils-2.14.90.0.7/bfd/elf32-msp430.c 2004-04-20 01:26:12.000000000 -0600@@ -449,7 +449,7 @@ { sym = local_syms + r_symndx; sec = local_sections[r_symndx];- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); name = bfd_elf_string_from_elf_section (input_bfd, symtab_hdr->sh_link, sym->st_name);diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-openrisc.c binutils-2.14.90.0.7/bfd/elf32-openrisc.c--- binutils-2.14.90.0.7.orig/bfd/elf32-openrisc.c 2003-07-23 09:08:08.000000000 -0600+++ binutils-2.14.90.0.7/bfd/elf32-openrisc.c 2004-04-20 01:26:12.000000000 -0600@@ -375,7 +375,7 @@ { sym = local_syms + r_symndx; sec = local_sections[r_symndx];- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); name = bfd_elf_string_from_elf_section (input_bfd, symtab_hdr->sh_link, sym->st_name);diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-ppc.c binutils-2.14.90.0.7/bfd/elf32-ppc.c--- binutils-2.14.90.0.7.orig/bfd/elf32-ppc.c 2003-10-29 10:37:48.000000000 -0700+++ binutils-2.14.90.0.7/bfd/elf32-ppc.c 2004-04-20 01:26:12.000000000 -0600@@ -4727,7 +4727,7 @@ sec = local_sections[r_symndx]; sym_name = bfd_elf_local_sym_name (input_bfd, sym); - relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); } else {@@ -5455,44 +5455,9 @@ break; case R_PPC_RELAX32:- {- unsigned long r_symndx;- Elf_Internal_Sym *sym;- asection *sym_sec;- bfd_byte *hit_addr = 0;- bfd_vma value = 0;-- r_symndx = ELF32_R_SYM (rel->r_info);-- if (r_symndx < symtab_hdr->sh_info)- {- sym = local_syms + r_symndx;- sym_sec = local_sections[r_symndx];-- value = _bfd_elf_rela_local_sym (output_bfd, sym, sym_sec, rel);- }- else- {- bfd_boolean warned;- bfd_boolean unresolved_reloc;-- RELOC_FOR_GLOBAL_SYMBOL (h, elf_sym_hashes (input_bfd),- r_symndx, symtab_hdr,- value, sym_sec,- unresolved_reloc, info,- warned);- if (warned)- continue;- }- hit_addr = contents + rel->r_offset;- value += rel->r_addend;-- r = ppc_elf_install_value (output_bfd, hit_addr, value, r_type);- if (r != bfd_reloc_ok)- break;- else- continue;- }+ ppc_elf_install_value (output_bfd, contents + rel->r_offset,+ relocation + addend, r_type);+ continue; /* Indirect .sdata relocation. */ case R_PPC_EMB_SDAI16:diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-s390.c binutils-2.14.90.0.7/bfd/elf32-s390.c--- binutils-2.14.90.0.7.orig/bfd/elf32-s390.c 2003-08-21 09:28:47.000000000 -0600+++ binutils-2.14.90.0.7/bfd/elf32-s390.c 2004-04-20 01:26:12.000000000 -0600@@ -2327,7 +2327,7 @@ { sym = local_syms + r_symndx; sec = local_sections[r_symndx];- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); } else {diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-sh.c binutils-2.14.90.0.7/bfd/elf32-sh.c--- binutils-2.14.90.0.7.orig/bfd/elf32-sh.c 2003-10-29 10:37:48.000000000 -0700+++ binutils-2.14.90.0.7/bfd/elf32-sh.c 2004-04-20 01:26:12.000000000 -0600@@ -4805,7 +4805,7 @@ } else if (! howto->partial_inplace) {- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); addend = rel->r_addend; } else if ((sec->flags & SEC_MERGE)diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-sparc.c binutils-2.14.90.0.7/bfd/elf32-sparc.c--- binutils-2.14.90.0.7.orig/bfd/elf32-sparc.c 2003-08-21 09:28:48.000000000 -0600+++ binutils-2.14.90.0.7/bfd/elf32-sparc.c 2004-04-20 01:26:12.000000000 -0600@@ -2182,7 +2182,7 @@ { sym = local_syms + r_symndx; sec = local_sections[r_symndx];- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); } else {@@ -2459,16 +2459,8 @@ if (is_plt) sec = htab->splt;- else if (h == NULL)- sec = local_sections[r_symndx];- else- {- BFD_ASSERT (h->root.type == bfd_link_hash_defined- || (h->root.type- == bfd_link_hash_defweak));- sec = h->root.u.def.section;- }- if (sec != NULL && bfd_is_abs_section (sec))++ if (bfd_is_abs_section (sec)) indx = 0; else if (sec == NULL || sec->owner == NULL) {diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-v850.c binutils-2.14.90.0.7/bfd/elf32-v850.c--- binutils-2.14.90.0.7.orig/bfd/elf32-v850.c 2003-10-29 10:37:48.000000000 -0700+++ binutils-2.14.90.0.7/bfd/elf32-v850.c 2004-04-20 01:26:12.000000000 -0600@@ -1681,7 +1681,7 @@ { sym = local_syms + r_symndx; sec = local_sections[r_symndx];- relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);+ relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); #if 0 { char * name;diff -urN binutils-2.14.90.0.7.orig/bfd/elf32-vax.c binutils-2.14.90.0.7/bfd/elf32-vax.c--- binutils-2.14.90.0.7.orig/bfd/elf32-vax.c 2003-08-21 09:28:48.000000000 -0600+++ binutils-2.14.90.0.7/bfd/elf32-vax.c 2004-04-20 01:26:12.000000000 -0600@@ -1483,7 +1483,7 @@ { sym = local_syms + r_sym
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -