Alan Modra
ab96bf03fd
PR 3958
...
bfd/
* elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link.
(elf_discarded_section): Move..
* bfd-in.h: ..to here.
* bfd-in2.h: Regenerate.
* elflink.c (elf_link_input_bfd): Don't zap relocs against symbols
from discarded sections before relocate_section has done its job.
* reloc.c (bfd_generic_get_relocated_section_contents): Handle
relocs against symbols from discarded sections.
* elf-hppa.h (elf_hppa_howto_table): Set size. Set dst_mask on
SECREL32.
(elf_hppa_relocate_section): Handle relocatable link after setting
sec, sym, h etc. for final link. Squash error messages for
relocatable link. Clear section contents for relocs against
symbols in discarded sections, and zero reloc. Remove existing
zero r_symndx code.
* elf-m10200.c (mn10200_elf_relocate_section): Likewise.
* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
* elf32-arm.c (elf32_arm_relocate_section): Likewise.
* elf32-avr.c (elf32_avr_relocate_section): Likewise.
* elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
(bfin_relocate_section): Likewise.
* elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-crx.c (elf32_crx_relocate_section): Likewise.
* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
* elf32-h8300.c (elf32_h8_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf32-i860.c (elf32_i860_relocate_section): Likewise.
* elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
* elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
* elf32-m32c.c (m32c_elf_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
* elf32-mep.c (mep_elf_relocate_section): Likewise.
* elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
* elf32-mt.c (mt_elf_relocate_section): Likewise.
* elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-score.c (_bfd_score_elf_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-spu.c (spu_elf_relocate_section): Likewise.
* elf32-v850.c (v850_elf_relocate_section): Likewise.
* elf32-vax.c (elf_vax_relocate_section): Likewise.
* elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
* elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
(elf64_alpha_relocate_section): Likewise.
* elf64-mmix.c (mmix_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
* elf32-arm.c (elf32_arm_relocate_section): Always adjust section
symbols for relocatable link. Don't use always-zero st_value.
(elf_backend_rela_normal): Don't define.
* elf32-bfin.c (bfinfdpic_relocate_section): Use
RELOC_FOR_GLOBAL_SYMBOL.
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
* elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE
section symbol adjustments with same for relocatable link.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf32-m68hc1x.c (m68hc11_get_relocation_value): Move..
(elf32_m68hc11_check_relocs): ..to here.
* elf32-score.c (score_elf_final_link_relocate): Remove zero
r_symndx code.
* elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
ld/testsuite/
* ld-elf/linkonce1.d: New.
* ld-elf/linkonce1a.s: New.
* ld-elf/linkonce1b.s: New.
* ld-elf/linkonce2.d: New.
* ld-i386/pcrel16abs.d: New.
* ld-i386/pcrel16abs.s: New.
* ld-i386/i386.exp: Run it.
2007-03-07 08:54:35 +00:00
..
2007-02-17 13:33:57 +00:00
2005-12-27 22:17:25 +00:00
2006-12-11 15:09:46 +00:00
2006-05-31 15:14:46 +00:00
2006-05-31 15:14:46 +00:00
2006-06-01 03:45:58 +00:00
2006-06-01 03:45:58 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-06-19 13:17:44 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-05-02 10:01:56 +00:00
2005-05-04 15:53:43 +00:00
2005-05-23 17:44:55 +00:00
2005-05-23 17:44:55 +00:00
2006-06-01 03:45:58 +00:00
2006-06-19 13:17:44 +00:00
2006-09-16 18:12:17 +00:00
2006-10-30 07:41:17 +00:00
2007-02-05 19:50:12 +00:00
2005-05-04 15:53:43 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2006-12-31 17:23:07 +00:00
2005-07-13 21:19:13 +00:00
2006-12-14 02:59:25 +00:00
2005-10-27 04:06:35 +00:00
2007-02-15 08:33:53 +00:00
2006-06-19 13:17:44 +00:00
2005-11-03 16:06:11 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2007-03-07 08:54:35 +00:00
2006-06-05 00:12:59 +00:00
2006-06-05 00:12:59 +00:00
2006-06-05 00:12:59 +00:00
2007-01-09 14:29:31 +00:00
2006-11-20 02:09:56 +00:00
2006-06-19 13:17:44 +00:00
2005-07-14 07:48:28 +00:00
2005-05-04 15:53:43 +00:00
2006-11-10 07:35:20 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-06-01 03:45:58 +00:00
2005-12-27 03:06:27 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-10-26 00:10:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-05-04 05:05:25 +00:00
2005-05-04 15:53:43 +00:00
2006-09-16 18:12:17 +00:00
2006-06-19 13:17:44 +00:00
2006-07-13 09:07:36 +00:00
2005-05-04 15:53:43 +00:00
2006-09-16 18:12:17 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-08 23:48:38 +00:00
2005-05-04 15:53:43 +00:00
2006-05-03 14:26:41 +00:00
2005-05-04 15:53:43 +00:00
2006-09-20 11:35:11 +00:00
2005-12-27 03:06:27 +00:00
2006-02-05 11:57:35 +00:00
2006-09-20 11:35:11 +00:00
2006-06-19 13:17:44 +00:00
2006-09-17 14:38:51 +00:00
2005-05-04 15:53:43 +00:00
2007-02-28 10:53:19 +00:00
2006-06-05 12:28:18 +00:00
2007-03-01 15:48:36 +00:00
2005-12-30 22:25:57 +00:00
2007-03-01 15:48:36 +00:00
2005-05-04 07:19:45 +00:00
2005-12-27 04:19:15 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-09-26 12:04:45 +00:00
2006-05-24 07:36:12 +00:00
2005-09-30 15:36:41 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-07-01 11:16:33 +00:00
2005-07-01 11:16:33 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-07-01 11:16:33 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-09-16 18:12:17 +00:00
2006-02-23 21:36:18 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-07-14 22:52:28 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2007-01-08 18:42:37 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2007-02-05 19:50:12 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-08-09 08:57:34 +00:00
2005-12-16 10:23:12 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-12-06 12:10:26 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-09-16 23:51:50 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-10-25 06:49:21 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-06-03 10:14:29 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-02-17 14:36:28 +00:00
2005-07-01 11:16:33 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-10-25 17:40:19 +00:00
2005-05-04 15:53:43 +00:00
2005-10-29 23:47:42 +00:00
2005-05-04 15:53:43 +00:00
2007-02-23 17:38:07 +00:00
2006-09-16 18:12:17 +00:00
2006-05-04 05:05:25 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-09-09 18:26:03 +00:00
2005-07-01 11:16:33 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2006-05-24 07:36:12 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2005-07-01 11:16:33 +00:00
2006-05-02 10:01:56 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2005-05-04 15:53:43 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2005-05-04 15:53:43 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2005-07-01 11:16:33 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2006-09-28 13:27:33 +00:00
2006-09-28 13:27:33 +00:00
2006-09-28 13:27:33 +00:00
2007-03-07 08:54:35 +00:00
2005-05-04 15:53:43 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2006-10-28 10:13:49 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2005-07-01 11:16:33 +00:00
2005-07-01 11:16:33 +00:00
2007-03-07 08:54:35 +00:00
2005-12-08 11:41:12 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2005-05-04 15:53:43 +00:00
2006-10-22 01:02:38 +00:00
2005-05-04 15:53:43 +00:00
2006-08-04 13:13:56 +00:00
2006-09-16 18:12:17 +00:00
2007-03-07 08:54:35 +00:00
2006-10-17 13:41:49 +00:00
2007-03-07 08:54:35 +00:00
2007-02-27 08:29:52 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2005-05-04 15:53:43 +00:00
2007-03-07 08:54:35 +00:00
2005-05-04 15:53:43 +00:00
2007-01-28 02:13:58 +00:00
2005-05-04 15:53:43 +00:00
2006-10-28 10:13:49 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2005-06-07 12:12:11 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2006-10-18 23:58:52 +00:00
2007-03-07 08:54:35 +00:00
2005-05-04 15:53:43 +00:00
2007-03-07 08:54:35 +00:00
2007-01-04 13:30:39 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2006-03-16 12:20:16 +00:00
2006-08-04 13:13:56 +00:00
2006-03-02 08:57:00 +00:00
2007-03-07 02:14:40 +00:00
2007-02-05 19:50:12 +00:00
2005-05-04 15:53:43 +00:00
2007-03-07 08:54:35 +00:00
2006-10-28 10:13:49 +00:00
2007-03-07 08:54:35 +00:00
2007-03-07 08:54:35 +00:00
2007-01-29 16:29:21 +00:00
2007-03-07 08:54:35 +00:00
2006-04-05 12:41:59 +00:00
2007-02-22 17:03:59 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-12-13 15:34:28 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-11-20 01:38:38 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-06-01 03:45:58 +00:00
2006-09-16 18:12:17 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-09-16 18:12:17 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-06-19 13:17:44 +00:00
2005-05-04 15:53:43 +00:00
2006-06-19 13:17:44 +00:00
2006-09-16 18:12:17 +00:00
2007-02-15 08:33:53 +00:00
2005-10-05 21:24:23 +00:00
2006-06-01 03:45:58 +00:00
2006-06-19 13:17:44 +00:00
2007-02-15 08:33:53 +00:00
2007-02-15 08:33:53 +00:00
2007-02-15 08:33:53 +00:00
2006-06-19 13:17:44 +00:00
2006-06-19 13:17:44 +00:00
2006-06-19 13:17:44 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-09-20 11:35:11 +00:00
2005-05-04 15:53:43 +00:00
2006-10-30 23:25:51 +00:00
2006-06-01 03:45:58 +00:00
2005-05-04 15:53:43 +00:00
2006-09-16 18:12:17 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2007-02-15 08:33:53 +00:00
2007-02-15 08:33:53 +00:00
2005-05-04 15:53:43 +00:00
2007-03-01 15:48:36 +00:00
2007-03-01 15:48:36 +00:00
2007-02-05 19:50:12 +00:00
2006-10-27 03:22:09 +00:00
2005-08-18 03:51:51 +00:00
2007-02-15 08:33:53 +00:00
2006-06-01 03:45:58 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-05-02 01:41:20 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-23 17:44:55 +00:00
2005-05-04 15:53:43 +00:00
2006-09-28 12:59:25 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-06-19 13:17:44 +00:00
2006-12-15 04:13:37 +00:00
2006-09-16 18:12:17 +00:00
2005-05-04 15:53:43 +00:00
2006-06-19 13:17:44 +00:00
2006-11-10 07:35:20 +00:00
2006-08-21 08:12:46 +00:00
2006-09-29 03:33:56 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-09-20 11:35:11 +00:00
2005-05-04 15:53:43 +00:00
2007-02-15 08:33:53 +00:00
2005-05-04 15:53:43 +00:00
2006-11-10 07:35:20 +00:00
2006-08-21 08:12:46 +00:00
2006-09-29 03:33:56 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-09-20 11:35:11 +00:00
2006-09-20 11:35:11 +00:00
2006-11-14 19:03:32 +00:00
2007-02-15 08:33:53 +00:00
2006-06-01 03:45:58 +00:00
2005-05-04 15:53:43 +00:00
2007-03-07 08:54:35 +00:00
2005-05-04 15:53:43 +00:00
2006-06-01 03:45:58 +00:00
2006-06-01 03:45:58 +00:00
2006-10-27 03:22:09 +00:00
2005-06-03 09:52:50 +00:00
2006-09-16 18:12:17 +00:00
2005-05-22 20:02:16 +00:00
2006-09-16 18:12:17 +00:00
2005-08-18 03:51:51 +00:00
2005-05-04 15:53:43 +00:00
2007-02-15 08:33:53 +00:00
2005-05-04 15:53:43 +00:00
2006-10-27 03:22:09 +00:00
2006-06-01 03:45:58 +00:00
2007-02-05 19:50:12 +00:00
2005-05-05 18:51:14 +00:00
2007-02-05 19:50:12 +00:00
2007-01-05 10:12:25 +00:00
2005-05-04 15:53:43 +00:00
2006-11-20 02:09:56 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-06-19 13:17:44 +00:00
2007-03-06 23:00:07 +00:00
2005-05-04 15:53:43 +00:00
2006-09-16 18:12:17 +00:00
2005-05-04 15:53:43 +00:00
2005-05-04 15:53:43 +00:00
2006-06-19 13:17:44 +00:00
2005-07-07 19:27:52 +00:00
2006-04-19 02:06:15 +00:00
2006-06-19 13:17:44 +00:00
2006-06-01 03:45:58 +00:00
2007-02-15 08:33:53 +00:00
2006-11-22 03:33:51 +00:00
2005-05-04 15:53:43 +00:00
2005-07-07 21:50:57 +00:00