forked from Imagelibrary/binutils-gdb
Remove trailing white spaces in bfd
* aout0.c: Remove trailing white spaces. * archive.c: Likewise. * archures.c: Likewise. * bfd-in.h: Likewise. * bfd-in2.h: Likewise. * coff-alpha.c: Likewise. * coff-i860.c: Likewise. * coff-mips.c: Likewise. * coff-ppc.c: Likewise. * coff-tic80.c: Likewise. * coff-x86_64.c: Likewise. * coff-z80.c: Likewise. * coffcode.h: Likewise. * coffgen.c: Likewise. * cofflink.c: Likewise. * compress.c: Likewise. * corefile.c: Likewise. * cpu-arm.c: Likewise. * cpu-avr.c: Likewise. * cpu-bfin.c: Likewise. * cpu-cr16.c: Likewise. * cpu-cr16c.c: Likewise. * cpu-crx.c: Likewise. * cpu-h8300.c: Likewise. * cpu-i386.c: Likewise. * cpu-lm32.c: Likewise. * cpu-m68k.c: Likewise. * cpu-moxie.c: Likewise. * cpu-msp430.c: Likewise. * cpu-sh.c: Likewise. * cpu-xc16x.c: Likewise. * dwarf2.c: Likewise. * ecofflink.c: Likewise. * ecoffswap.h: Likewise. * elf-ifunc.c: Likewise. * elf-m10300.c: Likewise. * elf-vxworks.c: Likewise. * elf32-avr.c: Likewise. * elf32-avr.h: Likewise. * elf32-cr16.c: Likewise. * elf32-cr16c.c: Likewise. * elf32-cris.c: Likewise. * elf32-crx.c: Likewise. * elf32-frv.c: Likewise. * elf32-hppa.c: Likewise. * elf32-i860.c: Likewise. * elf32-ip2k.c: Likewise. * elf32-iq2000.c: Likewise. * elf32-m32c.c: Likewise. * elf32-m68hc1x.c: Likewise. * elf32-msp430.c: Likewise. * elf32-mt.c: Likewise. * elf32-ppc.c: Likewise. * elf32-rl78.c: Likewise. * elf32-s390.c: Likewise. * elf32-score.h: Likewise. * elf32-sh-symbian.c: Likewise. * elf32-sh.c: Likewise. * elf32-spu.c: Likewise. * elf32-tic6x.c: Likewise. * elf32-v850.c: Likewise. * elf32-xc16x.c: Likewise. * elf32-xtensa.c: Likewise. * elf64-alpha.c: Likewise. * elf64-hppa.c: Likewise. * elf64-ppc.c: Likewise. * elf64-s390.c: Likewise. * elfcore.h: Likewise. * elflink.c: Likewise. * elfxx-mips.c: Likewise. * elfxx-sparc.c: Likewise. * elfxx-tilegx.c: Likewise. * ieee.c: Likewise. * libcoff.h: Likewise. * libpei.h: Likewise. * libxcoff.h: Likewise. * linker.c: Likewise. * mach-o-i386.c: Likewise. * mach-o-target.c: Likewise. * mach-o.c: Likewise. * mach-o.h: Likewise. * mmo.c: Likewise. * opncls.c: Likewise. * pdp11.c: Likewise. * pe-x86_64.c: Likewise. * peXXigen.c: Likewise. * pef-traceback.h: Likewise. * pei-x86_64.c: Likewise. * peicode.h: Likewise. * plugin.c: Likewise. * reloc.c: Likewise. * riscix.c: Likewise. * section.c: Likewise. * som.c: Likewise. * syms.c: Likewise. * tekhex.c: Likewise. * ticoff.h: Likewise. * vaxbsd.c: Likewise. * xcofflink.c: Likewise. * xtensa-isa.c: Likewise.
This commit is contained in:
@@ -348,7 +348,7 @@ ip2k_is_switch_table_128 (bfd *abfd ATTRIBUTE_UNUSED,
|
||||
{
|
||||
bfd_byte code[4];
|
||||
int table_index = 0;
|
||||
|
||||
|
||||
/* Check current page-jmp. */
|
||||
if (addr + 4 > sec->size)
|
||||
return -1;
|
||||
@@ -358,7 +358,7 @@ ip2k_is_switch_table_128 (bfd *abfd ATTRIBUTE_UNUSED,
|
||||
if ((! IS_PAGE_OPCODE (code + 0))
|
||||
|| (! IS_JMP_OPCODE (code + 2)))
|
||||
return -1;
|
||||
|
||||
|
||||
/* Search back. */
|
||||
while (1)
|
||||
{
|
||||
@@ -428,7 +428,7 @@ ip2k_is_switch_table_256 (bfd *abfd ATTRIBUTE_UNUSED,
|
||||
{
|
||||
bfd_byte code[16];
|
||||
int table_index = 0;
|
||||
|
||||
|
||||
/* Check current page-jmp. */
|
||||
if (addr + 4 > sec->size)
|
||||
return -1;
|
||||
@@ -437,7 +437,7 @@ ip2k_is_switch_table_256 (bfd *abfd ATTRIBUTE_UNUSED,
|
||||
if ((! IS_PAGE_OPCODE (code + 0))
|
||||
|| (! IS_JMP_OPCODE (code + 2)))
|
||||
return -1;
|
||||
|
||||
|
||||
/* Search back. */
|
||||
while (1)
|
||||
{
|
||||
@@ -464,7 +464,7 @@ ip2k_is_switch_table_256 (bfd *abfd ATTRIBUTE_UNUSED,
|
||||
&& (IS_INC_1SP_OPCODE (code + 12))
|
||||
&& (IS_JMP_OPCODE (code + 14)))
|
||||
return table_index;
|
||||
|
||||
|
||||
if ((! IS_PAGE_OPCODE (code + 0))
|
||||
|| (! IS_JMP_OPCODE (code + 2)))
|
||||
return -1;
|
||||
@@ -658,11 +658,11 @@ adjust_all_relocations (bfd *abfd,
|
||||
if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info)
|
||||
{
|
||||
asection *sym_sec;
|
||||
|
||||
|
||||
/* A local symbol. */
|
||||
isym = isymbuf + ELF32_R_SYM (irel->r_info);
|
||||
sym_sec = bfd_section_from_elf_index (abfd, isym->st_shndx);
|
||||
|
||||
|
||||
if (sym_sec == sec)
|
||||
{
|
||||
const char *name;
|
||||
@@ -671,20 +671,20 @@ adjust_all_relocations (bfd *abfd,
|
||||
bfd_vma baseaddr = BASEADDR (sec);
|
||||
bfd_vma symval = BASEADDR (sym_sec) + isym->st_value
|
||||
+ irel->r_addend;
|
||||
|
||||
|
||||
if ((baseaddr + addr) <= symval
|
||||
&& symval <= (baseaddr + endaddr))
|
||||
irel->r_addend += count;
|
||||
|
||||
/* Go hunt up a function and fix its line info if needed. */
|
||||
stabp = stabcontents + irel->r_offset - 8;
|
||||
stabp = stabcontents + irel->r_offset - 8;
|
||||
|
||||
/* Go pullout the stab entry. */
|
||||
type = bfd_h_get_8 (abfd, stabp + TYPEOFF);
|
||||
value = bfd_h_get_32 (abfd, stabp + VALOFF);
|
||||
|
||||
|
||||
name = bfd_get_stab_name (type);
|
||||
|
||||
|
||||
if (strcmp (name, "FUN") == 0)
|
||||
{
|
||||
int function_adjusted = 0;
|
||||
@@ -710,7 +710,7 @@ adjust_all_relocations (bfd *abfd,
|
||||
{
|
||||
/* Adjust the value. */
|
||||
value += count;
|
||||
|
||||
|
||||
/* We need to put it back. */
|
||||
bfd_h_put_32 (abfd, value,stabp + VALOFF);
|
||||
}
|
||||
@@ -819,10 +819,10 @@ ip2k_delete_page_insn (bfd *abfd ATTRIBUTE_UNUSED,
|
||||
/* Delete the PAGE insn. */
|
||||
if (!ip2k_elf_relax_delete_bytes (abfd, sec, irel->r_offset, 2))
|
||||
return FALSE;
|
||||
|
||||
|
||||
/* Modified => will need to iterate relaxation again. */
|
||||
*again = TRUE;
|
||||
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -837,7 +837,7 @@ ip2k_relax_switch_table_128 (bfd *abfd ATTRIBUTE_UNUSED,
|
||||
Elf_Internal_Rela *ireltest = irel;
|
||||
bfd_byte code[4];
|
||||
bfd_vma addr;
|
||||
|
||||
|
||||
/* Test all page instructions. */
|
||||
addr = irel->r_offset;
|
||||
while (1)
|
||||
@@ -908,7 +908,7 @@ ip2k_relax_switch_table_256 (bfd *abfd ATTRIBUTE_UNUSED,
|
||||
Elf_Internal_Rela *ireltest = irel;
|
||||
bfd_byte code[12];
|
||||
bfd_vma addr;
|
||||
|
||||
|
||||
/* Test all page instructions. */
|
||||
addr = irel->r_offset;
|
||||
|
||||
@@ -995,7 +995,7 @@ ip2k_elf_relax_section_page (bfd *abfd,
|
||||
Elf_Internal_Rela *irel;
|
||||
int switch_table_128;
|
||||
int switch_table_256;
|
||||
|
||||
|
||||
/* Walk thru the section looking for relaxation opportunities. */
|
||||
for (irel = misc->irelbase; irel < irelend; irel++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user