+2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
+
+ 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.
+
2012-01-27 Michael Eager <eager@eagercon.com>
* bfd/elf32-microblaze.c (create_got_section):
.
. bfd_boolean (*scan) (const struct bfd_arch_info *, const char *);
.
+. {* Allocate via bfd_malloc and return a fill buffer of size COUNT. If
+. IS_BIGENDIAN is TRUE, the order of bytes is big endian. If CODE is
+. TRUE, the buffer contains code. *}
+. void *(*fill) (bfd_size_type count, bfd_boolean is_bigendian,
+. bfd_boolean code);
+.
. const struct bfd_arch_info *next;
.}
.bfd_arch_info_type;
32, 32, 8, bfd_arch_unknown, 0, "unknown", "unknown", 2, TRUE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
return ap->bits_per_byte / 8;
return 1;
}
+
+/*
+INTERNAL_FUNCTION
+ bfd_arch_default_fill
+
+SYNOPSIS
+ void *bfd_arch_default_fill (bfd_size_type count,
+ bfd_boolean is_bigendian,
+ bfd_boolean code);
+
+DESCRIPTION
+ Allocate via bfd_malloc and return a fill buffer of size COUNT.
+ If IS_BIGENDIAN is TRUE, the order of bytes is big endian. If
+ CODE is TRUE, the buffer contains code.
+*/
+
+void *
+bfd_arch_default_fill (bfd_size_type count,
+ bfd_boolean is_bigendian ATTRIBUTE_UNUSED,
+ bfd_boolean code ATTRIBUTE_UNUSED)
+{
+ void *fill = bfd_malloc (count);
+ if (fill != NULL)
+ memset (fill, 0, count);
+ return fill;
+}
#define bfd_mach_tilegx 1
bfd_arch_last
};
-
typedef struct bfd_arch_info
{
int bits_per_word;
bfd_boolean (*scan) (const struct bfd_arch_info *, const char *);
+ /* Allocate via bfd_malloc and return a fill buffer of size COUNT. If
+ IS_BIGENDIAN is TRUE, the order of bytes is big endian. If CODE is
+ TRUE, the buffer contains code. */
+ void *(*fill) (bfd_size_type count, bfd_boolean is_bigendian,
+ bfd_boolean code);
+
const struct bfd_arch_info *next;
}
bfd_arch_info_type;
# Define the identity of the package.
PACKAGE=bfd
- VERSION=2.22.51
+ VERSION=2.22.52
cat >>confdefs.h <<_ACEOF
AC_CANONICAL_TARGET
AC_ISC_POSIX
-AM_INIT_AUTOMAKE(bfd, 2.22.51)
+AM_INIT_AUTOMAKE(bfd, 2.22.52)
dnl These must be called before LT_INIT, because it may want
dnl to call AC_CHECK_PROG.
DEFAULT, \
bfd_default_compatible, \
bfd_default_scan, \
+ bfd_arch_default_fill, \
NEXT, \
}
default_p, \
bfd_default_compatible, \
bfd_default_scan, \
+ bfd_arch_default_fill, \
next, \
}
}
#define N(number, print, default, next) \
-{ 32, 32, 8, bfd_arch_arm, number, "arm", print, 4, default, compatible, scan, next }
+{ 32, 32, 8, bfd_arch_arm, number, "arm", print, 4, default, compatible, \
+ scan, bfd_arch_default_fill, next }
static const bfd_arch_info_type arch_info_struct[] =
{
default, /* Is this the default ? */ \
compatible, \
bfd_default_scan, \
+ bfd_arch_default_fill, \
next \
}
4, /* Section align power. */
TRUE, /* The one and only. */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
1, /* Unsigned int section alignment power. */
TRUE, /* The one and only. */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
1,
TRUE, /* The one and only. */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
#define N(NUMBER, PRINT, NEXT) \
{ 32, 32, 8, bfd_arch_cris, NUMBER, "cris", PRINT, 1, FALSE, \
- get_compatible, bfd_default_scan, NEXT }
+ get_compatible, bfd_default_scan, bfd_arch_default_fill, NEXT }
static const bfd_arch_info_type bfd_cris_arch_compat_v10_v32 =
N (bfd_mach_cris_v10_v32, "cris:common_v10_v32", NULL);
bfd_arch_info_type. */
bfd_default_scan, /* Check if a bfd_arch_info_type is a
match. */
+ bfd_arch_default_fill, /* Default fill. */
&bfd_cris_arch_v32 /* Pointer to next bfd_arch_info_type in
the same family. */
};
1, /* Unsigned int section alignment power. */
TRUE, /* The one and only. */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
FALSE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
FALSE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
& d10v_ts3_info,
};
TRUE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
& d10v_ts2_info,
};
TRUE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
4,
TRUE, /* The one and only. */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
FALSE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
bfd_default_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
NULL /* Next in list. */
};
TRUE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
bfd_default_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
& bfd_epiphany16_arch /* Next in list. */
};
TRUE, /* the default ? */
bfd_default_compatible, /* architecture comparison fn */
bfd_default_scan, /* string to architecture convert fn */
+ bfd_arch_default_fill, /* Default fill. */
NULL /* next in list */
};
DEFAULT, /* is this the default? */ \
bfd_default_compatible, /* architecture comparison fn */ \
bfd_default_scan, /* string to architecture convert fn */ \
+ bfd_arch_default_fill, /* Default fill. */ \
NEXT /* next in list */ \
}
FALSE, /* the default machine */
compatible,
h8300_scan,
+ bfd_arch_default_fill,
0
};
FALSE, /* the default machine */
compatible,
h8300_scan,
+ bfd_arch_default_fill,
&h8300sxn_info_struct
};
FALSE, /* The default machine. */
compatible,
h8300_scan,
+ bfd_arch_default_fill,
&h8300sx_info_struct
};
FALSE, /* The default machine. */
compatible,
h8300_scan,
+ bfd_arch_default_fill,
&h8300sn_info_struct
};
FALSE, /* The default machine. */
compatible,
h8300_scan,
+ bfd_arch_default_fill,
& h8300hn_info_struct
};
FALSE, /* The default machine. */
compatible,
h8300_scan,
+ bfd_arch_default_fill,
&h8300s_info_struct
};
TRUE, /* The default machine. */
compatible,
h8300_scan,
+ bfd_arch_default_fill,
&h8300h_info_struct
};
TRUE, /* the default machine */
bfd_default_compatible,
scan_mach,
+ bfd_arch_default_fill,
0,
};
3,
TRUE, /* Unless we use 1.1 specific features */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
3,
FALSE, /* Unless we use 1.1 specific features */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_hppa10_arch,
};
3,
FALSE, /* Unless we use 1.1 specific features */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_hppa20_arch,
};
3,
FALSE, /* 1.1 specific features used */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_hppa20w_arch,
};
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&arch_info_struct[1]
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0
},
};
TRUE, /* The default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
& arch_info_struct[0]
};
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
+#include "libiberty.h"
+
+extern void * bfd_arch_i386_fill (bfd_size_type, bfd_boolean, bfd_boolean);
static const bfd_arch_info_type *
bfd_i386_compatible (const bfd_arch_info_type *a,
return compat;
}
+/* Fill the buffer with zero or nop instruction if CODE is TRUE. */
+
+void *
+bfd_arch_i386_fill (bfd_size_type count,
+ bfd_boolean is_bigendian ATTRIBUTE_UNUSED,
+ bfd_boolean code)
+{
+ /* nop */
+ static const char nop_1[] = { 0x90 };
+ /* nopw */
+ static const char nop_2[] = { 0x66, 0x90 };
+ /* nopl (%[re]ax) */
+ static const char nop_3[] = { 0x0f, 0x1f, 0x00 };
+ /* nopl 0(%[re]ax) */
+ static const char nop_4[] = { 0x0f, 0x1f, 0x40, 0x00 };
+ /* nopl 0(%[re]ax,%[re]ax,1) */
+ static const char nop_5[] = { 0x0f, 0x1f, 0x44, 0x00, 0x00 };
+ /* nopw 0(%[re]ax,%[re]ax,1) */
+ static const char nop_6[] = { 0x66, 0x0f, 0x1f, 0x44, 0x00, 0x00 };
+ /* nopl 0L(%[re]ax) */
+ static const char nop_7[] = { 0x0f, 0x1f, 0x80, 0x00, 0x00, 0x00, 0x00 };
+ /* nopl 0L(%[re]ax,%[re]ax,1) */
+ static const char nop_8[] =
+ { 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00};
+ /* nopw 0L(%[re]ax,%[re]ax,1) */
+ static const char nop_9[] =
+ { 0x66, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 };
+ /* nopw %cs:0L(%[re]ax,%[re]ax,1) */
+ static const char nop_10[] =
+ { 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 };
+ static const char *const nops[] =
+ { nop_1, nop_2, nop_3, nop_4, nop_5,
+ nop_6, nop_7, nop_8, nop_9, nop_10 };
+
+ void *fill = bfd_malloc (count);
+ if (fill == NULL)
+ return fill;
+
+ if (code)
+ {
+ bfd_byte *p = fill;
+ while (count >= ARRAY_SIZE (nops))
+ {
+ memcpy (p, nops[ARRAY_SIZE (nops) - 1], ARRAY_SIZE (nops));
+ p += ARRAY_SIZE (nops);
+ count -= ARRAY_SIZE (nops);
+ }
+ if (count != 0)
+ memcpy (p, nops[count - 1], count);
+ }
+ else
+ memset (fill, 0, count);
+
+ return fill;
+}
+
static const bfd_arch_info_type bfd_x64_32_arch_intel_syntax =
{
64, /* 64 bits in a word */
FALSE,
bfd_i386_compatible,
bfd_default_scan,
+ bfd_arch_i386_fill,
0
};
FALSE,
bfd_i386_compatible,
bfd_default_scan,
+ bfd_arch_i386_fill,
&bfd_x64_32_arch_intel_syntax,
};
TRUE,
bfd_i386_compatible,
bfd_default_scan,
+ bfd_arch_i386_fill,
&bfd_x86_64_arch_intel_syntax
};
FALSE,
bfd_i386_compatible,
bfd_default_scan,
+ bfd_arch_i386_fill,
&bfd_i386_arch_intel_syntax
};
FALSE,
bfd_i386_compatible,
bfd_default_scan,
+ bfd_arch_i386_fill,
&i8086_arch
};
FALSE,
bfd_i386_compatible,
bfd_default_scan,
+ bfd_arch_i386_fill,
&bfd_x64_32_arch
};
TRUE,
bfd_i386_compatible,
bfd_default_scan,
+ bfd_arch_i386_fill,
&bfd_x86_64_arch
};
TRUE, /* Is this the default architecture? */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0, /* Next in list */
};
}
#define N(a,b,d,n) \
-{ 32, 32, 8,bfd_arch_i960,a,"i960",b,3,d,compatible,scan_960_mach,n,}
+{ 32, 32, 8,bfd_arch_i960,a,"i960",b,3,d,compatible,scan_960_mach, \
+ bfd_arch_default_fill, n,}
static const bfd_arch_info_type arch_info_struct[] =
{
3, /* log2 of section alignment */
TRUE, /* the one and only */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
3, /* log2 of section alignment */
TRUE, /* the one and only */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_ia64_elf32_arch,
};
FALSE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
bfd_default_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
NULL /* Next in list. */
};
TRUE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
bfd_default_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
& bfd_ip2k_nonext_arch /* Next in list. */
};
FALSE, /* the default ? */
bfd_default_compatible, /* architecture comparison fn */
bfd_default_scan, /* string to architecture convert fn */
+ bfd_arch_default_fill, /* Default fill. */
NULL /* next in list */
}
};
TRUE, /* the default ? */
bfd_default_compatible, /* architecture comparison fn */
bfd_default_scan, /* string to architecture convert fn */
+ bfd_arch_default_fill, /* Default fill. */
&arch_info_struct[0], /* next in list */
};
#include "bfd.h"
#include "libbfd.h"
+extern void * bfd_arch_i386_fill (bfd_size_type, bfd_boolean, bfd_boolean);
+
static const bfd_arch_info_type bfd_k1om_arch_intel_syntax =
{
64, /* 64 bits in a word */
TRUE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_i386_fill,
0
};
TRUE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_i386_fill,
&bfd_k1om_arch_intel_syntax
};
#include "bfd.h"
#include "libbfd.h"
+extern void * bfd_arch_i386_fill (bfd_size_type, bfd_boolean, bfd_boolean);
+
static const bfd_arch_info_type bfd_l1om_arch_intel_syntax =
{
64, /* 64 bits in a word */
TRUE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_i386_fill,
0
};
TRUE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_i386_fill,
&bfd_l1om_arch_intel_syntax
};
TRUE, /* Is this the default machine for the target. */
bfd_default_compatible, /* Function callback to test if two files have compatible machines. */
bfd_default_scan,
+ bfd_arch_default_fill,
NULL /* Next. */
};
2,
TRUE, /* the one and only */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
FALSE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
FALSE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_am33_2_arch,
};
TRUE, /* the one and only */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_am33_arch,
};
FALSE, /* the default ? */
bfd_default_compatible, /* architecture comparison fn */
m32c_scan, /* string to architecture convert fn */
+ bfd_arch_default_fill, /* Default fill. */
NULL /* next in list */
},
};
TRUE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
m32c_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
&arch_info_struct[0], /* Next in list. */
};
#define N(number, print, default, next) \
{ 32, 32, 8, bfd_arch_m32r, number, "m32r", print, 4, default, \
- bfd_default_compatible, bfd_default_scan, next }
+ bfd_default_compatible, bfd_default_scan, bfd_arch_default_fill, next }
#define M32R2_NEXT & arch_info_struct [1]
#define NEXT & arch_info_struct [0]
TRUE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
TRUE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
TRUE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_m68hc12s_arch,
};
const bfd_arch_info_type *b);
#define N(name, print,d,next) \
-{ 32, 32, 8, bfd_arch_m68k, name, "m68k",print,2,d,bfd_m68k_compatible,bfd_default_scan, next, }
+{ 32, 32, 8, bfd_arch_m68k, name, "m68k",print,2,d,bfd_m68k_compatible, \
+ bfd_default_scan, bfd_arch_default_fill, next, }
static const bfd_arch_info_type arch_info_struct[] =
{
3,
TRUE, /* the one and only */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
TRUE, /* Is this the default architecture ? */
bfd_default_compatible, /* Architecture comparison function */
bfd_default_scan, /* String to architecture conversion */
+ bfd_arch_default_fill, /* Default fill. */
NULL /* Next in list */
};
#include "libbfd.h"
#define MA(x, n, def, y) { 32, 32, 8, bfd_arch_mep, x, "mep", n, \
- 2, def, bfd_default_compatible, bfd_default_scan, y }
+ 2, def, bfd_default_compatible, bfd_default_scan, \
+ bfd_arch_default_fill, y }
static const bfd_arch_info_type bfd_c5_arch = MA (bfd_mach_mep_c5, "c5", FALSE, NULL);
static const bfd_arch_info_type bfd_h1_arch = MA (bfd_mach_mep_h1, "h1", FALSE, & bfd_c5_arch);
TRUE, /* Is this the default architecture ? */
bfd_default_compatible, /* Architecture comparison function. */
bfd_default_scan, /* String to architecture conversion. */
+ bfd_arch_default_fill, /* Default fill. */
NULL /* Next in list. */
};
DEFAULT, \
mips_compatible, \
bfd_default_scan, \
+ bfd_arch_default_fill, \
NEXT, \
}
TRUE, /* This is the default architecture. */
bfd_default_compatible, /* Architecture comparison function. */
bfd_default_scan, /* String to architecture conversion. */
+ bfd_arch_default_fill, /* Default fill. */
NULL /* Next in list. */
};
2, /* Unsigned int section alignment power. */
TRUE, /* The one and only. */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
default, /* The default machine. */ \
compatible, \
bfd_default_scan, \
+ bfd_arch_default_fill, \
next \
}
FALSE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
bfd_default_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
&arch_info_struct[1] /* Next in list. */
},
{
FALSE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
bfd_default_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
NULL /* Next in list. */
},
};
TRUE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
bfd_default_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
&arch_info_struct[0] /* Next in list. */
};
#include "ns32k.h"
#define N(machine, printable, d, next) \
-{ 32, 32, 8, bfd_arch_ns32k, machine, "ns32k",printable,3,d,bfd_default_compatible,bfd_default_scan, next, }
+{ 32, 32, 8, bfd_arch_ns32k, machine, "ns32k",printable,3,d, \
+ bfd_default_compatible,bfd_default_scan,bfd_arch_default_fill,next, }
static const bfd_arch_info_type arch_info_struct[] =
{
DEFAULT, \
bfd_default_compatible, \
bfd_default_scan, \
+ bfd_arch_default_fill, \
NEXT, \
}
4,
TRUE, /* The one and only. */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
1, /* aligment = 16 bit */
TRUE, /* the one and only */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
TRUE, /* the default machine */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0
};
TRUE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0
};
TRUE, /* default for 64 bit target */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[1]
},
/* elf32-ppc:ppc_elf_object_p relies on the default 32 bit arch
FALSE,
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[2],
},
#else
TRUE, /* default for 32 bit target */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[1],
},
/* elf64-ppc:ppc64_elf_object_p relies on the default 64 bit arch
FALSE,
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[2]
},
#endif
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[3]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[4]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[5]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[6]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[7]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[8]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[9]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[10]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[11]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[12]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[13]
},
{
FALSE,
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[14]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[15]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[16]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[17]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_powerpc_archs[18]
},
{
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0
}
};
TRUE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
bfd_default_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
NULL /* Next in list. */
};
FALSE, /* not the default */
rs6000_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&arch_info_struct[1]
},
{
FALSE, /* not the default */
rs6000_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&arch_info_struct[2]
},
{
FALSE, /* not the default */
rs6000_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0
}
};
TRUE, /* the default */
rs6000_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&arch_info_struct[0]
};
FALSE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
bfd_default_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
NULL /* Next in list. */
},
};
TRUE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
bfd_default_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
& arch_info_struct[0], /* Next in list. */
};
TRUE, /* the default */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
NULL
};
TRUE, /* the default */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&bfd_s390_64_arch
};
default, /* The default machine. */ \
compatible, \
bfd_default_scan, \
+ bfd_arch_default_fill, \
next \
}
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH2_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH2E_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH_DSP_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH3_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH3_NOMMU_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH3_DSP_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH3E_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH4_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH4A_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH4AL_DSP_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH4_NOFPU_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH4_NOMMU_NOFPU_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH4A_NOFPU_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH2A_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH2A_NOFPU_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH2A_NOFPU_OR_SH4_NOMMU_NOFPU_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH2A_NOFPU_OR_SH3_NOMMU_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH2A_OR_SH4_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH2A_OR_SH3E_NEXT
},
{
FALSE, /* Not the default. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH64_NEXT
},
};
TRUE, /* The default machine. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
SH_NEXT
};
FALSE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&arch_info_struct[1],
},
{
FALSE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&arch_info_struct[2],
},
{
FALSE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&arch_info_struct[3],
},
{
FALSE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&arch_info_struct[4],
},
{
FALSE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&arch_info_struct[5],
},
{
FALSE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&arch_info_struct[6],
},
{
FALSE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&arch_info_struct[7],
},
{
FALSE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&arch_info_struct[8],
},
{
FALSE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0,
}
};
TRUE, /* the default */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
&arch_info_struct[0],
};
TRUE, /* the default machine for the architecture */
spu_compatible, /* the spu is only compatible with itself, see above */
bfd_default_scan,
+ bfd_arch_default_fill,
0, /* next -- there are none! */
}
};
TRUE, /* the one and only */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
FALSE, /* Not the default architecture. */
bfd_default_compatible,
tic4x_scan,
+ bfd_arch_default_fill,
0
};
TRUE, /* The default architecture. */
bfd_default_compatible,
tic4x_scan,
+ bfd_arch_default_fill,
&bfd_tic3x_arch,
};
TRUE, /* the one and only */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
TRUE, /* Default machine for this architecture. */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
2, /* section alignment power */
TRUE, /* default machine for architecture */
bfd_default_compatible,
- bfd_default_scan ,
+ bfd_default_scan,
+ bfd_arch_default_fill,
NULL, /* Pointer to next in chain */
};
TRUE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
TRUE,
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
#define N(number, print, default, next) \
{ 32, 32, 8, bfd_arch_v850, number, "v850", print, 2, default, \
- bfd_default_compatible, bfd_default_scan, next }
+ bfd_default_compatible, bfd_default_scan, bfd_arch_default_fill, next }
#define NEXT NULL
TRUE, /* the one and only */
bfd_default_compatible,
bfd_default_scan,
+ bfd_arch_default_fill,
0,
};
TRUE, /* the default machine */
bfd_default_compatible,
scan_mach,
+ bfd_arch_default_fill,
0,
};
TRUE, /* the one and only */
bfd_default_compatible,
bfd_default_scan ,
+ bfd_arch_default_fill,
0,
};
TRUE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
bfd_default_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
NULL /* Next in list. */
};
TRUE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
bfd_default_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
& xc16xs_info_struct /* Next in list. */
};
TRUE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
bfd_default_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
& xc16xl_info_struct /* Next in list. */
};
TRUE, /* the default ? */
bfd_default_compatible, /* architecture comparison fn */
bfd_default_scan, /* string to architecture convert fn */
+ bfd_arch_default_fill, /* Default fill. */
NULL /* next in list */
};
TRUE, /* The default? */
bfd_default_compatible, /* Architecture comparison fn. */
bfd_default_scan, /* String to architecture convert fn. */
+ bfd_arch_default_fill, /* Default fill. */
NULL /* Next in list. */
};
#define N(name,print,default,next) \
{ 16, 16, 8, bfd_arch_z80, name, "z80", print, 0, default, \
- compatible, bfd_default_scan, next }
+ compatible, bfd_default_scan, bfd_arch_default_fill, next }
#define M(n) &arch_info_struct[n]
static const bfd_arch_info_type arch_info_struct[] =
{
{ 32, 16, 8, bfd_arch_z8k, bfd_mach_z8002, "z8k", "z8002", 1, FALSE,
- compatible, bfd_default_scan, 0 }
+ compatible, bfd_default_scan, bfd_arch_default_fill, 0 }
};
const bfd_arch_info_type bfd_z8k_arch =
{
32, 32, 8, bfd_arch_z8k, bfd_mach_z8001, "z8k", "z8001", 1, TRUE,
- compatible, bfd_default_scan, &arch_info_struct[0]
+ compatible, bfd_default_scan, bfd_arch_default_fill,
+ &arch_info_struct[0]
};
bfd_boolean bfd_default_scan
(const struct bfd_arch_info *info, const char *string);
+void *bfd_arch_default_fill (bfd_size_type count,
+ bfd_boolean is_bigendian,
+ bfd_boolean code);
+
/* Extracted from elf.c. */
fill = link_order->u.data.contents;
fill_size = link_order->u.data.size;
- if (fill_size != 0 && fill_size < size)
+ if (fill_size == 0)
+ {
+ fill = abfd->arch_info->fill (size, bfd_big_endian (abfd),
+ (sec->flags & SEC_CODE) != 0);
+ if (fill == NULL)
+ return FALSE;
+ }
+ else if (fill_size < size)
{
bfd_byte *p;
fill = (bfd_byte *) bfd_malloc (size);
+2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/13616
+ * bfdlink.h (bfd_link_order): Update comments on data size.
+
2012-01-26 Cary Coutant <ccoutant@google.com>
* dwarf2.h (enum dwarf_form): Add Fission extensions.
} indirect;
struct
{
- /* Size of contents, or zero when contents size == size
- within output section.
+ /* Size of contents, or zero when contents should be filled by
+ the architecture-dependent fill function.
A non-zero value allows filling of the output section
with an arbitrary repeated pattern. */
unsigned int size;
+2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
+
+ 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.
+
2012-01-17 Alan Modra <amodra@gmail.com>
* ldver.c (ldversion): Update copyright message year.
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
ARCH="i386:x64-32"
MACHINE=
-NOP=0x90909090
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
ARCH=i386
MACHINE=
-NOP=0x90909090
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
ARCH=i386
MACHINE=
-NOP=0x90909090
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
NO_SMALL_DATA=yes
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
ARCH=i386
MACHINE=
-NOP=0x90909090
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
ELF_INTERPRETER_NAME=\"/usr/lib/ld.so.1\"
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
ARCH=i386
MACHINE=
-NOP=0x90909090
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
ARCH="k1om"
MACHINE=
COMPILE_IN=yes
-NOP=0x90909090
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
ARCH="l1om"
MACHINE=
COMPILE_IN=yes
-NOP=0x90909090
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
ARCH="i386:x86-64"
MACHINE=
-NOP=0x90909090
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
asection *output_section,
bfd_vma dot)
{
- static fill_type zero_fill = { 1, { 0 } };
+ static fill_type zero_fill;
lang_statement_union_type *pad = NULL;
if (ptr != &statement_list.head)
default:
abort ();
}
+ link_order->u.data.size = link_order->size;
}
break;
#
# Unusual variables checked by this code:
-# NOP - four byte opcode for no-op (defaults to 0)
+# NOP - four byte opcode for no-op (defaults to none)
# NO_SMALL_DATA - no .sbss/.sbss2/.sdata/.sdata2 sections if not
# empty.
# SMALL_DATA_CTOR - .ctors contains small data.
#
# Each of these can also have corresponding .rel.* and .rela.* sections.
+if test -n "$NOP"; then
+ FILL="=$NOP"
+else
+ FILL=
+fi
+
test -z "$RODATA_NAME" && RODATA_NAME=rodata
test -z "$SDATA_NAME" && SDATA_NAME=sdata
test -z "$SBSS_NAME" && SBSS_NAME=sbss
${RELOCATING+${INIT_START}}
KEEP (*(.init))
${RELOCATING+${INIT_END}}
- } =${NOP-0}
+ } ${FILL}
${TEXT_PLT+${PLT}}
${TINY_READONLY_SECTION}
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
${RELOCATING+${OTHER_TEXT_SECTIONS}}
- } =${NOP-0}
+ } ${FILL}
.fini ${RELOCATING-0} :
{
${RELOCATING+${FINI_START}}
KEEP (*(.fini))
${RELOCATING+${FINI_END}}
- } =${NOP-0}
+ } ${FILL}
${RELOCATING+PROVIDE (__${ETEXT_NAME} = .);}
${RELOCATING+PROVIDE (_${ETEXT_NAME} = .);}
${RELOCATING+PROVIDE (${ETEXT_NAME} = .);}
+2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
+
+ 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.
+
2012-01-17 Alan Modra <amodra@gmail.com>
* config/default.exp: Provide tmpdir/ld/collect-ld.
[0-9a-f]+: 8b 5d fc[ ]+mov -0x4\(%ebp\),%ebx
[0-9a-f]+: c9[ ]+leave *
[0-9a-f]+: c3[ ]+ret *
- [0-9a-f]+: 90[ ]+nop *
- [0-9a-f]+: 90[ ]+nop *
+ [0-9a-f]+: 66 90[ ]+xchg %ax,%ax
[0-9a-f]+ <_start>:
[0-9a-f]+: 55[ ]+push %ebp
10ec: 8b 5d fc[ ]+mov -0x4\(%ebp\),%ebx
10ef: c9[ ]+leave *
10f0: c3[ ]+ret *
- 10f1: 90[ ]+nop *
- 10f2: 90[ ]+nop *
- 10f3: 90[ ]+nop *
+ 10f1: 0f 1f 00[ ]+nopl \(%eax\)
[0-9a-f]+: 8b 5d fc[ ]+mov -0x4\(%ebp\),%ebx
[0-9a-f]+: c9[ ]+leave *
[0-9a-f]+: c3[ ]+ret *
- [0-9a-f]+: 90[ ]+nop *
- [0-9a-f]+: 90[ ]+nop *
- [0-9a-f]+: 90[ ]+nop *
+ [0-9a-f]+: 0f 1f 00[ ]+nopl \(%eax\)
401136: 90[ ]+nop *
401137: c9[ ]+leaveq *
401138: c3[ ]+retq *
- 401139: 90[ ]+nop *
- 40113a: 90[ ]+nop *
- 40113b: 90[ ]+nop *
+ 401139: 0f 1f 00[ ]+nopl \(%rax\)
0+40113c <_start>:
40113c: 55[ ]+push %rbp
[0-9a-f]+: 90[ ]+nop *
[0-9a-f]+: c9[ ]+leaveq *
[0-9a-f]+: c3[ ]+retq *
- [0-9a-f]+: 90[ ]+nop *
- [0-9a-f]+: 90[ ]+nop *
- [0-9a-f]+: 90[ ]+nop *
+ [0-9a-f]+: 0f 1f 00[ ]+nopl \(%rax\)
[0-9a-f]+ <_start>:
[0-9a-f]+: 55[ ]+push %rbp
+11a7: 90[ ]+nop *
+11a8: c9[ ]+leaveq *
+11a9: c3[ ]+retq *
- +11aa: 90[ ]+nop *
- +11ab: 90[ ]+nop *
+ +11aa: 66 90[ ]+xchg %ax,%ax