mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 11:39:26 +08:00
Fix formatting of pe-mips.c file.
* pe-mips.c (coff_mips_reloc): Fix formatting.
This commit is contained in:

committed by
Nick Clifton

parent
bdbca4e6f8
commit
6f57d0469a
@ -1,3 +1,7 @@
|
|||||||
|
2016-02-05 Simon Marchi <simon.marchi@ericsson.com>
|
||||||
|
|
||||||
|
* pe-mips.c (coff_mips_reloc): Fix formatting.
|
||||||
|
|
||||||
2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
|
2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
|
||||||
|
|
||||||
* cpu-arc.c: Change default archure from bfd_mach_arc_arcv2
|
* cpu-arc.c: Change default archure from bfd_mach_arc_arcv2
|
||||||
|
@ -95,44 +95,44 @@ coff_mips_reloc (bfd *abfd,
|
|||||||
#define DOIT(x) \
|
#define DOIT(x) \
|
||||||
x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + (diff >> howto->rightshift)) & howto->dst_mask))
|
x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + (diff >> howto->rightshift)) & howto->dst_mask))
|
||||||
|
|
||||||
if (diff != 0)
|
if (diff != 0)
|
||||||
{
|
{
|
||||||
reloc_howto_type *howto = reloc_entry->howto;
|
reloc_howto_type *howto = reloc_entry->howto;
|
||||||
unsigned char *addr = (unsigned char *) data + reloc_entry->address;
|
unsigned char *addr = (unsigned char *) data + reloc_entry->address;
|
||||||
|
|
||||||
switch (howto->size)
|
switch (howto->size)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
{
|
{
|
||||||
case 0:
|
char x = bfd_get_8 (abfd, addr);
|
||||||
{
|
|
||||||
char x = bfd_get_8 (abfd, addr);
|
|
||||||
|
|
||||||
DOIT (x);
|
DOIT (x);
|
||||||
bfd_put_8 (abfd, x, addr);
|
bfd_put_8 (abfd, x, addr);
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 1:
|
|
||||||
{
|
|
||||||
short x = bfd_get_16 (abfd, addr);
|
|
||||||
|
|
||||||
DOIT (x);
|
|
||||||
bfd_put_16 (abfd, (bfd_vma) x, addr);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 2:
|
|
||||||
{
|
|
||||||
long x = bfd_get_32 (abfd, addr);
|
|
||||||
|
|
||||||
DOIT (x);
|
|
||||||
bfd_put_32 (abfd, (bfd_vma) x, addr);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
abort ();
|
|
||||||
}
|
}
|
||||||
}
|
break;
|
||||||
|
|
||||||
|
case 1:
|
||||||
|
{
|
||||||
|
short x = bfd_get_16 (abfd, addr);
|
||||||
|
|
||||||
|
DOIT (x);
|
||||||
|
bfd_put_16 (abfd, (bfd_vma) x, addr);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 2:
|
||||||
|
{
|
||||||
|
long x = bfd_get_32 (abfd, addr);
|
||||||
|
|
||||||
|
DOIT (x);
|
||||||
|
bfd_put_32 (abfd, (bfd_vma) x, addr);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
abort ();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Now let bfd_perform_relocation finish everything up. */
|
/* Now let bfd_perform_relocation finish everything up. */
|
||||||
return bfd_reloc_continue;
|
return bfd_reloc_continue;
|
||||||
|
Reference in New Issue
Block a user