projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatic date update in version.in
[deliverable/binutils-gdb.git]
/
bfd
/
elf32-s12z.c
diff --git
a/bfd/elf32-s12z.c
b/bfd/elf32-s12z.c
index 8b3099c26ee3f98846404cc13de70fa5abe60160..3bd828804f17d5b2918838d2ff496c7487299e19 100644
(file)
--- a/
bfd/elf32-s12z.c
+++ b/
bfd/elf32-s12z.c
@@
-1,5
+1,5
@@
/* Freescale S12Z-specific support for 32-bit ELF
/* Freescale S12Z-specific support for 32-bit ELF
- Copyright (C) 1999-20
19
Free Software Foundation, Inc.
+ Copyright (C) 1999-20
20
Free Software Foundation, Inc.
(Heavily copied from the D10V port by Martin Hunt (hunt@cygnus.com))
This file is part of BFD, the Binary File Descriptor library.
(Heavily copied from the D10V port by Martin Hunt (hunt@cygnus.com))
This file is part of BFD, the Binary File Descriptor library.
@@
-27,6
+27,9
@@
#include "elf/s12z.h"
#include "elf/s12z.h"
+/* All users of this file have bfd_octets_per_byte (abfd, sec) == 1. */
+#define OCTETS_PER_BYTE(ABFD, SEC) 1
+
/* Relocation functions. */
static reloc_howto_type *bfd_elf32_bfd_reloc_type_lookup
(bfd *, bfd_reloc_code_real_type);
/* Relocation functions. */
static reloc_howto_type *bfd_elf32_bfd_reloc_type_lookup
(bfd *, bfd_reloc_code_real_type);
@@
-44,7
+47,7
@@
opru18_reloc (bfd *abfd, arelent *reloc_entry, struct bfd_symbol *symbol,
Appendix A.4 of the S12Z reference manual. */
bfd_size_type octets = (reloc_entry->address
Appendix A.4 of the S12Z reference manual. */
bfd_size_type octets = (reloc_entry->address
- *
bfd_octets_per_byte (abfd, NULL
));
+ *
OCTETS_PER_BYTE (abfd, input_section
));
bfd_vma result = bfd_get_24 (abfd, (unsigned char *) data + octets);
bfd_vma val = bfd_asymbol_value (symbol);
bfd_vma result = bfd_get_24 (abfd, (unsigned char *) data + octets);
bfd_vma val = bfd_asymbol_value (symbol);
This page took
0.024477 seconds
and
4
git commands to generate.