aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-dlx.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-01-31 23:13:34 +0000
committerBen Elliston <bje@au.ibm.com>2005-01-31 23:13:34 +0000
commit0e71e4955cd1a6ad7d03775dec5df49323204dec (patch)
treee01ba923b5a2ce31612afdf6f289bb0d614719a1 /bfd/elf32-dlx.c
parent71143983c8f9437ad5bd813f1355305c6ab52ffd (diff)
downloadgdb-0e71e4955cd1a6ad7d03775dec5df49323204dec.zip
gdb-0e71e4955cd1a6ad7d03775dec5df49323204dec.tar.gz
gdb-0e71e4955cd1a6ad7d03775dec5df49323204dec.tar.bz2
* aout-arm.c, aout-target.h, aoutx.h, archive.c, armnetbsd.c,
bfd-in.h, bfdio.c, coff-alpha.c, coff-arm.c, coff-h8300.c, coff-i860.c, coff-mcore.c, coff-or32.c, coff-ppc.c, coff-sh.c, coff-sparc.c, coffcode.h, coffgen.c, cofflink.c, cpu-cris.c, cpu-h8500.c, cpu-ns32k.c, ecoff.c, ecofflink.c, elf.c, elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-hppa.c, elf32-i860.c, elf32-ip2k.c, elf32-m32r.c, elf32-sh.c, elf32-v850.c, elf64-mips.c, elf64-sparc.c, elflink.c, i386aout.c, i386msdos.c, i386os9k.c, ieee.c, mach-o.c, nlm32-sparc.c, oasys.c, opncls.c, pdp11.c, pe-mips.c, peXXigen.c, pef.c, peicode.h, reloc.c, riscix.c, section.c, simple.c, som.c, sparclynx.c, targets.c, vms-misc.c, vms-tir.c, xsym.c, doc/chew.c, hosts/delta68.h, hosts/vaxbsd.h: Remove #if 0'd code throughout. Similarly, collapse #if 1'd code.
Diffstat (limited to 'bfd/elf32-dlx.c')
-rw-r--r--bfd/elf32-dlx.c74
1 files changed, 0 insertions, 74 deletions
diff --git a/bfd/elf32-dlx.c b/bfd/elf32-dlx.c
index f8a3946..44f190c 100644
--- a/bfd/elf32-dlx.c
+++ b/bfd/elf32-dlx.c
@@ -98,25 +98,6 @@ static reloc_howto_type dlx_elf_howto_table[]=
0xffff, /* dst_mask */
FALSE), /* pcrel_offset */
-#if 0
- /* 26 bit jump address. */
- HOWTO (R_DLX_RELOC_26, /* type */
- 0, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 26, /* bitsize */
- FALSE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_dont,/* complain_on_overflow */
- /* This needs complex overflow detection, because the upper four
- bits must match the PC + 4. */
- bfd_elf_generic_reloc, /* special_function */
- "R_DLX_RELOC_26", /* name */
- TRUE, /* partial_inplace */
- 0x3ffffff, /* src_mask */
- 0x3ffffff, /* dst_mask */
- FALSE), /* pcrel_offset */
-#endif
-
/* 32 bit relocation. */
HOWTO (R_DLX_RELOC_32, /* type */
0, /* rightshift */
@@ -261,9 +242,6 @@ _bfd_dlx_elf_hi16_reloc (abfd, reloc_entry, symbol, data,
/* If the skip flag is set then we simply do the generic relocating, this
is more of a hack for dlx gas/gld, so we do not need to do the %hi/%lo
fixup like mips gld did. */
-#if 0
- printf ("DEBUG: skip_dlx_elf_hi16_reloc = 0x%08x\n", skip_dlx_elf_hi16_reloc);
-#endif
if (skip_dlx_elf_hi16_reloc)
return bfd_elf_generic_reloc (abfd, reloc_entry, symbol, data,
input_section, output_bfd, error_message);
@@ -284,23 +262,6 @@ _bfd_dlx_elf_hi16_reloc (abfd, reloc_entry, symbol, data,
&& output_bfd == (bfd *) NULL)
ret = bfd_reloc_undefined;
-#if 0
- {
- unsigned long vallo, val;
-
- vallo = bfd_get_16 (abfd, (bfd_byte *) data + reloc_entry->address);
- printf ("DEBUG: The relocation address = 0x%08x\n", reloc_entry->address);
- printf ("DEBUG: The symbol = 0x%08x\n", vallo);
- printf ("DEBUG: The symbol name = %s\n", bfd_asymbol_name (symbol));
- printf ("DEBUG: The symbol->value = 0x%08x\n", symbol->value);
- printf ("DEBUG: The vma = 0x%08x\n", symbol->section->output_section->vma);
- printf ("DEBUG: The output_offset = 0x%08x\n", symbol->section->output_offset);
- printf ("DEBUG: The input_offset = 0x%08x\n", input_section->output_offset);
- printf ("DEBUG: The input_vma = 0x%08x\n", input_section->vma);
- printf ("DEBUG: The addend = 0x%08x\n", reloc_entry->addend);
- }
-#endif
-
relocation = (bfd_is_com_section (symbol->section)) ? 0 : symbol->value;
relocation += symbol->section->output_section->vma;
relocation += symbol->section->output_offset;
@@ -310,10 +271,6 @@ _bfd_dlx_elf_hi16_reloc (abfd, reloc_entry, symbol, data,
if (reloc_entry->address > bfd_get_section_limit (abfd, input_section))
return bfd_reloc_outofrange;
-#if 0
- printf ("DEBUG: The finial relocation value = 0x%08x\n", relocation);
-#endif
-
bfd_put_16 (abfd, (short)((relocation >> 16) & 0xFFFF),
(bfd_byte *)data + reloc_entry->address);
@@ -383,19 +340,6 @@ elf32_dlx_relocate16 (abfd, reloc_entry, symbol, data,
val = (symbol->section->output_offset +
symbol->section->output_section->vma +
symbol->value) - vallo;
-#if 0
- printf ("DEBUG elf32_dlx_relocate: We are here\n");
- printf ("DEBUG: The insn = 0x%08x\n", insn);
- printf ("DEBUG: The vallo = 0x%08x\n", vallo);
- printf ("DEBUG: The val = 0x%08x\n", val);
- printf ("DEBUG: The symbol name = %s\n", bfd_asymbol_name (symbol));
- printf ("DEBUG: The symbol->value = 0x%08x\n", symbol->value);
- printf ("DEBUG: The vma = 0x%08x\n", symbol->section->output_section->vma);
- printf ("DEBUG: The lma = 0x%08x\n", symbol->section->output_section->lma);
- printf ("DEBUG: The alignment_power = 0x%08x\n", symbol->section->output_section->alignment_power);
- printf ("DEBUG: The output_offset = 0x%08x\n", symbol->section->output_offset);
- printf ("DEBUG: The addend = 0x%08x\n", reloc_entry->addend);
-#endif
if (abs ((int) val) > 0x00007FFF)
return bfd_reloc_outofrange;
@@ -461,21 +405,6 @@ elf32_dlx_relocate26 (abfd, reloc_entry, symbol, data,
val = (symbol->section->output_offset +
symbol->section->output_section->vma + symbol->value)
- vallo;
-#if 0
- printf ("DEBUG elf32_dlx_relocate26: We are here\n");
- printf ("DEBUG: The insn = 0x%08x\n", insn);
- printf ("DEBUG: The vallo = 0x%08x\n", vallo);
- printf ("DEBUG: The val = 0x%08x\n", val);
- printf ("DEBUG: The abs(val) = 0x%08x\n", abs (val));
- printf ("DEBUG: The symbol name = %s\n", bfd_asymbol_name (symbol));
- printf ("DEBUG: The symbol->value = 0x%08x\n", symbol->value);
- printf ("DEBUG: The vma = 0x%08x\n", symbol->section->output_section->vma);
- printf ("DEBUG: The output_offset = 0x%08x\n", symbol->section->output_offset);
- printf ("DEBUG: The input_vma = 0x%08x\n", input_section->output_section->vma);
- printf ("DEBUG: The input_offset = 0x%08x\n", input_section->output_offset);
- printf ("DEBUG: The input_name = %s\n", input_section->name);
- printf ("DEBUG: The addend = 0x%08x\n", reloc_entry->addend);
-#endif
if (abs ((int) val) > 0x01FFFFFF)
return bfd_reloc_outofrange;
@@ -505,9 +434,6 @@ static const struct elf_reloc_map dlx_reloc_map[] =
{
{ BFD_RELOC_NONE, R_DLX_NONE },
{ BFD_RELOC_16, R_DLX_RELOC_16 },
-#if 0
- { BFD_RELOC_DLX_JMP26, R_DLX_RELOC_26_PCREL },
-#endif
{ BFD_RELOC_32, R_DLX_RELOC_32 },
{ BFD_RELOC_DLX_HI16_S, R_DLX_RELOC_16_HI },
{ BFD_RELOC_DLX_LO16, R_DLX_RELOC_16_LO },