aboutsummaryrefslogtreecommitdiff
path: root/bfd/reloc.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1995-01-12 02:41:04 +0000
committerKen Raeburn <raeburn@cygnus>1995-01-12 02:41:04 +0000
commit82b1edf7b9cf3aaa2bf75a55894690fbf2a1c32c (patch)
tree61ff3225d756c1a6e05742e57d6d59b8ee87681c /bfd/reloc.c
parent280c564c7687440cc9662f262a8a3baedd979bba (diff)
downloadgdb-82b1edf7b9cf3aaa2bf75a55894690fbf2a1c32c.zip
gdb-82b1edf7b9cf3aaa2bf75a55894690fbf2a1c32c.tar.gz
gdb-82b1edf7b9cf3aaa2bf75a55894690fbf2a1c32c.tar.bz2
Change "reloc_howto_type" typedef to be "const", since all uses of it are (or
should be) anyways.
Diffstat (limited to 'bfd/reloc.c')
-rw-r--r--bfd/reloc.c26
1 files changed, 19 insertions, 7 deletions
diff --git a/bfd/reloc.c b/bfd/reloc.c
index ade22e2..3285252 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -287,7 +287,7 @@ CODE_FRAGMENT
.struct symbol_cache_entry; {* Forward declaration *}
.
.typedef unsigned char bfd_byte;
-.typedef struct reloc_howto_struct reloc_howto_type;
+.typedef const struct reloc_howto_struct reloc_howto_type;
.
.struct reloc_howto_struct
.{
@@ -413,7 +413,7 @@ FUNCTION
bfd_get_reloc_size
SYNOPSIS
- int bfd_get_reloc_size (const reloc_howto_type *);
+ int bfd_get_reloc_size (reloc_howto_type *);
DESCRIPTION
For a reloc_howto_type that operates on a fixed number of bytes,
@@ -422,7 +422,7 @@ DESCRIPTION
int
bfd_get_reloc_size (howto)
- const reloc_howto_type *howto;
+ reloc_howto_type *howto;
{
switch (howto->size)
{
@@ -500,7 +500,7 @@ bfd_perform_relocation (abfd, reloc_entry, data, input_section, output_bfd,
bfd_reloc_status_type flag = bfd_reloc_ok;
bfd_size_type addr = reloc_entry->address;
bfd_vma output_base = 0;
- const reloc_howto_type *howto = reloc_entry->howto;
+ reloc_howto_type *howto = reloc_entry->howto;
asection *reloc_target_output_section;
asymbol *symbol;
@@ -961,7 +961,7 @@ bfd_install_relocation (abfd, reloc_entry, data_start, data_start_offset,
bfd_reloc_status_type flag = bfd_reloc_ok;
bfd_size_type addr = reloc_entry->address;
bfd_vma output_base = 0;
- const reloc_howto_type *howto = reloc_entry->howto;
+ reloc_howto_type *howto = reloc_entry->howto;
asection *reloc_target_output_section;
asymbol *symbol;
bfd_byte *data;
@@ -1395,7 +1395,7 @@ space consuming. For each target:
bfd_reloc_status_type
_bfd_final_link_relocate (howto, input_bfd, input_section, contents, address,
value, addend)
- const reloc_howto_type *howto;
+ reloc_howto_type *howto;
bfd *input_bfd;
asection *input_section;
bfd_byte *contents;
@@ -1441,7 +1441,7 @@ _bfd_final_link_relocate (howto, input_bfd, input_section, contents, address,
bfd_reloc_status_type
_bfd_relocate_contents (howto, input_bfd, relocation, location)
- const reloc_howto_type *howto;
+ reloc_howto_type *howto;
bfd *input_bfd;
bfd_vma relocation;
bfd_byte *location;
@@ -2006,6 +2006,18 @@ ENUMDOC
These relocs are only used within the ARM assembler. They are not
(at present) written to any object files.
+COMMENT
+{* start-sanitize-arc *}
+ENUM
+ BFD_RELOC_ARC_B22_PCREL
+ENUMDOC
+ Argonaut RISC Core (ARC) relocs.
+ ARC 22 bit pc-relative branch. The lowest two bits must be zero and are
+ not stored in the instruction. High 20 bits installed in bits 7 through 26
+ of instruction.
+COMMENT
+{* end-sanitize-arc *}
+
ENDSENUM
BFD_RELOC_UNUSED