From b7761f11062dc4d4fd554342ac2d2fb235b65b7a Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 31 Jan 2012 17:54:39 +0000 Subject: Support arch-dependent fill bfd/ 2012-01-31 H.J. Lu PR ld/13616 * archures.c (bfd_arch_info): Add fill. (bfd_default_arch_struct): Add bfd_arch_default_fill. (bfd_arch_default_fill): New. * configure.in: Set bfd version to 2.22.52. * configure: Regenerated. * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info initializer. * cpu-arc.c: Likewise. * cpu-arm.c: Likewise. * cpu-avr.c: Likewise. * cpu-bfin.c: Likewise. * cpu-cr16.c: Likewise. * cpu-cr16c.c: Likewise. * cpu-cris.c: Likewise. * cpu-crx.c: Likewise. * cpu-d10v.c: Likewise. * cpu-d30v.c: Likewise. * cpu-dlx.c: Likewise. * cpu-epiphany.c: Likewise. * cpu-fr30.c: Likewise. * cpu-frv.c: Likewise. * cpu-h8300.c: Likewise. * cpu-h8500.c: Likewise. * cpu-hppa.c: Likewise. * cpu-i370.c: Likewise. * cpu-i860.c: Likewise. * cpu-i960.c: Likewise. * cpu-ia64.c: Likewise. * cpu-ip2k.c: Likewise. * cpu-iq2000.c: Likewise. * cpu-lm32.c: Likewise. * cpu-m10200.c: Likewise. * cpu-m10300.c: Likewise. * cpu-m32c.c: Likewise. * cpu-m32r.c: Likewise. * cpu-m68hc11.c: Likewise. * cpu-m68hc12.c: Likewise. * cpu-m68k.c: Likewise. * cpu-m88k.c: Likewise. * cpu-mcore.c: Likewise. * cpu-mep.c: Likewise. * cpu-microblaze.c: Likewise. * cpu-mips.c: Likewise. * cpu-mmix.c: Likewise. * cpu-moxie.c: Likewise. * cpu-msp430.c: Likewise. * cpu-mt.c: Likewise. * cpu-ns32k.c: Likewise. * cpu-openrisc.c: Likewise. * cpu-or32.c: Likewise. * cpu-pdp11.c: Likewise. * cpu-pj.c: Likewise. * cpu-plugin.c: Likewise. * cpu-powerpc.c: Likewise. * cpu-rl78.c: Likewise. * cpu-rs6000.c: Likewise. * cpu-rx.c: Likewise. * cpu-s390.c: Likewise. * cpu-score.c: Likewise. * cpu-sh.c: Likewise. * cpu-sparc.c: Likewise. * cpu-spu.c: Likewise. * cpu-tic30.c: Likewise. * cpu-tic4x.c: Likewise. * cpu-tic54x.c: Likewise. * cpu-tic6x.c: Likewise. * cpu-tic80.c: Likewise. * cpu-tilegx.c: Likewise. * cpu-tilepro.c: Likewise. * cpu-v850.c: Likewise. * cpu-vax.c: Likewise. * cpu-w65.c: Likewise. * cpu-we32k.c: Likewise. * cpu-xc16x.c: Likewise. * cpu-xstormy16.c: Likewise. * cpu-xtensa.c: Likewise. * cpu-z80.c: Likewise. * cpu-z8k.c: Likewise. * cpu-i386.c: Include "libiberty.h". (bfd_arch_i386_fill): New. Add bfd_arch_i386_fill to bfd_arch_info initializer. * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer. * cpu-l1om.c: Likewise. * linker.c (default_data_link_order): Call abfd->arch_info->fill if fill size is 0. * bfd-in2.h: Regenerated. include/ 2012-01-31 H.J. Lu PR ld/13616 * bfdlink.h (bfd_link_order): Update comments on data size. ld/ 2012-01-31 H.J. Lu PR ld/13616 * emulparams/elf32_x86_64.sh: Remove NOP. * emulparams/elf_i386.sh: Likewise. * emulparams/elf_i386_be.sh: Likewise. * emulparams/elf_i386_ldso.sh: Likewise. * emulparams/elf_i386_vxworks.sh: Likewise. * emulparams/elf_k1om.sh: Likewise. * emulparams/elf_l1om.sh: Likewise. * emulparams/elf_x86_64.sh: Likewise. * ldlang.c (zero_fill): Initialized to 0. * ldwrite.c (build_link_order): Set data size to linker odrder size when they are the same. * scripttempl/elf.sc: Don't specify fill if NOP is undefined. ld/testsuite/ 2012-01-31 H.J. Lu PR ld/13616 * ld-i386/tlsbindesc.dd: Update no-op padding. * ld-i386/tlsnopic.dd: Likewise. * ld-i386/tlspic.dd: Likewise. * ld-x86-64/tlsbin.dd: Likewise. * ld-x86-64/tlsbindesc.dd: Likewise. * ld-x86-64/tlspic.dd: Likewise. --- bfd/cpu-sh.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'bfd/cpu-sh.c') diff --git a/bfd/cpu-sh.c b/bfd/cpu-sh.c index af97a47..6fe6c15 100644 --- a/bfd/cpu-sh.c +++ b/bfd/cpu-sh.c @@ -61,6 +61,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2_NEXT }, { @@ -75,6 +76,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2E_NEXT }, { @@ -89,6 +91,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH_DSP_NEXT }, { @@ -103,6 +106,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH3_NEXT }, { @@ -117,6 +121,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH3_NOMMU_NEXT }, { @@ -131,6 +136,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH3_DSP_NEXT }, { @@ -145,6 +151,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH3E_NEXT }, { @@ -159,6 +166,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH4_NEXT }, { @@ -173,6 +181,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH4A_NEXT }, { @@ -187,6 +196,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH4AL_DSP_NEXT }, { @@ -201,6 +211,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH4_NOFPU_NEXT }, { @@ -215,6 +226,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH4_NOMMU_NOFPU_NEXT }, { @@ -229,6 +241,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH4A_NOFPU_NEXT }, { @@ -243,6 +256,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2A_NEXT }, { @@ -257,6 +271,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2A_NOFPU_NEXT }, { @@ -271,6 +286,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2A_NOFPU_OR_SH4_NOMMU_NOFPU_NEXT }, { @@ -285,6 +301,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2A_NOFPU_OR_SH3_NOMMU_NEXT }, { @@ -299,6 +316,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2A_OR_SH4_NEXT }, { @@ -313,6 +331,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2A_OR_SH3E_NEXT }, { @@ -327,6 +346,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH64_NEXT }, }; @@ -344,6 +364,7 @@ const bfd_arch_info_type bfd_sh_arch = TRUE, /* The default machine. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH_NEXT }; -- cgit v1.1