From: Ken Raeburn Date: Thu, 12 Jan 1995 21:35:05 +0000 (+0000) Subject: * sunos.c (m68k_plt_first_entry, sparc_plt_first_entry): Now const. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89f7a04c0bc9aaa52d961b366601f67b0a091781;p=binutils-gdb.git * sunos.c (m68k_plt_first_entry, sparc_plt_first_entry): Now const. * elf32-i386.c (elf_i386_plt0_entry, elf_i386_plt_entry): Ditto. * archures.c (archures_init_table): Now const. (bfd_arch_init): Adjusted type of local var `ptable'. --- diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 81d7540eceb..844138f31ed 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -200,7 +200,7 @@ elf_i386_info_to_howto_rel (abfd, cache_ptr, dst) /* The first entry in an absolute procedure linkage table looks like this. See the SVR4 ABI i386 supplement to see how this works. */ -static bfd_byte elf_i386_plt0_entry[PLT_ENTRY_SIZE] = +static const bfd_byte elf_i386_plt0_entry[PLT_ENTRY_SIZE] = { 0xff, 0x35, /* pushl contents of address */ 0, 0, 0, 0, /* replaced with address of .got + 4. */ @@ -212,7 +212,7 @@ static bfd_byte elf_i386_plt0_entry[PLT_ENTRY_SIZE] = /* Subsequent entries in an absolute procedure linkage table look like this. */ -static bfd_byte elf_i386_plt_entry[PLT_ENTRY_SIZE] = +static const bfd_byte elf_i386_plt_entry[PLT_ENTRY_SIZE] = { 0xff, 0x25, /* jmp indirect */ 0, 0, 0, 0, /* replaced with address of this symbol in .got. */ @@ -224,7 +224,7 @@ static bfd_byte elf_i386_plt_entry[PLT_ENTRY_SIZE] = /* The first entry in a PIC procedure linkage table look like this. */ -static bfd_byte elf_i386_pic_plt0_entry[PLT_ENTRY_SIZE] = +static const bfd_byte elf_i386_pic_plt0_entry[PLT_ENTRY_SIZE] = { 0xff, 0xb3, 4, 0, 0, 0, /* pushl 4(%ebx) */ 0xff, 0xa3, 8, 0, 0, 0, /* jmp *8(%ebx) */ @@ -233,7 +233,7 @@ static bfd_byte elf_i386_pic_plt0_entry[PLT_ENTRY_SIZE] = /* Subsequent entries in a PIC procedure linkage table look like this. */ -static bfd_byte elf_i386_pic_plt_entry[PLT_ENTRY_SIZE] = +static const bfd_byte elf_i386_pic_plt_entry[PLT_ENTRY_SIZE] = { 0xff, 0xa3, /* jmp *offset(%ebx) */ 0, 0, 0, 0, /* replaced with offset of this symbol in .got. */