mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
* archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
arhdrpos variable. * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused attribute to warned variable. Remove unused val, type and type2 variables.
This commit is contained in:
@ -1,8 +1,16 @@
|
|||||||
|
2010-04-19 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
|
||||||
|
arhdrpos variable.
|
||||||
|
* elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused
|
||||||
|
attribute to warned variable. Remove unused val, type and type2
|
||||||
|
variables.
|
||||||
|
|
||||||
2010-04-16 Andreas Schwab <schwab@redhat.com>
|
2010-04-16 Andreas Schwab <schwab@redhat.com>
|
||||||
|
|
||||||
* vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
|
* vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
|
||||||
strict-aliasing rules.
|
strict-aliasing rules.
|
||||||
|
|
||||||
2010-04-16 Tristan Gingold <gingold@adacore.com>
|
2010-04-16 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
|
* vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* MIPS-specific support for 64-bit ELF
|
/* MIPS-specific support for 64-bit ELF
|
||||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007
|
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007,
|
||||||
Free Software Foundation, Inc.
|
2010 Free Software Foundation, Inc.
|
||||||
Ian Lance Taylor, Cygnus Support
|
Ian Lance Taylor, Cygnus Support
|
||||||
Linker support added by Mark Mitchell, CodeSourcery, LLC.
|
Linker support added by Mark Mitchell, CodeSourcery, LLC.
|
||||||
<mark@codesourcery.com>
|
<mark@codesourcery.com>
|
||||||
@ -43,7 +43,6 @@ bfd_elf64_archive_slurp_armap (bfd *abfd)
|
|||||||
{
|
{
|
||||||
struct artdata *ardata = bfd_ardata (abfd);
|
struct artdata *ardata = bfd_ardata (abfd);
|
||||||
char nextname[17];
|
char nextname[17];
|
||||||
file_ptr arhdrpos;
|
|
||||||
bfd_size_type i, parsed_size, nsymz, stringsize, carsym_size, ptrsize;
|
bfd_size_type i, parsed_size, nsymz, stringsize, carsym_size, ptrsize;
|
||||||
struct areltdata *mapdata;
|
struct areltdata *mapdata;
|
||||||
bfd_byte int_buf[8];
|
bfd_byte int_buf[8];
|
||||||
@ -55,7 +54,6 @@ bfd_elf64_archive_slurp_armap (bfd *abfd)
|
|||||||
ardata->symdefs = NULL;
|
ardata->symdefs = NULL;
|
||||||
|
|
||||||
/* Get the name of the first element. */
|
/* Get the name of the first element. */
|
||||||
arhdrpos = bfd_tell (abfd);
|
|
||||||
i = bfd_bread (nextname, 16, abfd);
|
i = bfd_bread (nextname, 16, abfd);
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -2676,7 +2676,7 @@ elf64_x86_64_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bfd_boolean warned;
|
bfd_boolean warned ATTRIBUTE_UNUSED;
|
||||||
|
|
||||||
RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel,
|
RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel,
|
||||||
r_symndx, symtab_hdr, sym_hashes,
|
r_symndx, symtab_hdr, sym_hashes,
|
||||||
@ -3319,13 +3319,11 @@ elf64_x86_64_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
|
|||||||
leaq x@tlsdesc(%rip), %rax
|
leaq x@tlsdesc(%rip), %rax
|
||||||
|
|
||||||
Change it to:
|
Change it to:
|
||||||
movl $x@tpoff, %rax
|
movl $x@tpoff, %rax. */
|
||||||
*/
|
|
||||||
|
|
||||||
unsigned int val, type, type2;
|
unsigned int val, type;
|
||||||
|
|
||||||
type = bfd_get_8 (input_bfd, contents + roff - 3);
|
type = bfd_get_8 (input_bfd, contents + roff - 3);
|
||||||
type2 = bfd_get_8 (input_bfd, contents + roff - 2);
|
|
||||||
val = bfd_get_8 (input_bfd, contents + roff - 1);
|
val = bfd_get_8 (input_bfd, contents + roff - 1);
|
||||||
bfd_put_8 (output_bfd, 0x48 | ((type >> 2) & 1),
|
bfd_put_8 (output_bfd, 0x48 | ((type >> 2) & 1),
|
||||||
contents + roff - 3);
|
contents + roff - 3);
|
||||||
@ -3554,14 +3552,7 @@ elf64_x86_64_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
|
|||||||
leaq x@tlsdesc(%rip), %rax
|
leaq x@tlsdesc(%rip), %rax
|
||||||
|
|
||||||
Change it to:
|
Change it to:
|
||||||
movq x@gottpoff(%rip), %rax # before xchg %ax,%ax
|
movq x@gottpoff(%rip), %rax # before xchg %ax,%ax. */
|
||||||
*/
|
|
||||||
|
|
||||||
unsigned int val, type, type2;
|
|
||||||
|
|
||||||
type = bfd_get_8 (input_bfd, contents + roff - 3);
|
|
||||||
type2 = bfd_get_8 (input_bfd, contents + roff - 2);
|
|
||||||
val = bfd_get_8 (input_bfd, contents + roff - 1);
|
|
||||||
|
|
||||||
/* Now modify the instruction as appropriate. To
|
/* Now modify the instruction as appropriate. To
|
||||||
turn a leaq into a movq in the form we use it, it
|
turn a leaq into a movq in the form we use it, it
|
||||||
@ -3586,12 +3577,8 @@ elf64_x86_64_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
|
|||||||
call *(%rax)
|
call *(%rax)
|
||||||
|
|
||||||
Change it to:
|
Change it to:
|
||||||
xchg %ax,%ax. */
|
xchg %ax, %ax. */
|
||||||
|
|
||||||
unsigned int val, type;
|
|
||||||
|
|
||||||
type = bfd_get_8 (input_bfd, contents + roff);
|
|
||||||
val = bfd_get_8 (input_bfd, contents + roff + 1);
|
|
||||||
bfd_put_8 (output_bfd, 0x66, contents + roff);
|
bfd_put_8 (output_bfd, 0x66, contents + roff);
|
||||||
bfd_put_8 (output_bfd, 0x90, contents + roff + 1);
|
bfd_put_8 (output_bfd, 0x90, contents + roff + 1);
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user