diff options
author | Paul Iannetta <piannetta@kalrayinc.com> | 2023-08-17 16:08:29 +0200 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-08-23 12:38:58 +0930 |
commit | 835f16daa77952015d1a97ae6eab48cc2ea14fb8 (patch) | |
tree | 96b9ef4e05a77b9bd2b5b594fd1bb429bef12b9a /bfd/elfnn-kvx.c | |
parent | 36a52ab3bf46183e89c5ab01bb446fc6f94ce67d (diff) | |
download | gdb-835f16daa77952015d1a97ae6eab48cc2ea14fb8.zip gdb-835f16daa77952015d1a97ae6eab48cc2ea14fb8.tar.gz gdb-835f16daa77952015d1a97ae6eab48cc2ea14fb8.tar.bz2 |
kvx: fix 32-bit build
bfd/
* Makefile.am: Move elf32-kvx.lo from BFD32_BACKENDS to
BFD64_BACKENDS. Remove elfxx-kvx.lo from BFD32_BACKENDS.
Remove elfxx-kvx.c from BFD32_BACKENDS_CFILES.
* Makefile.in: Regenerate.
* config.bfd: Adjust targ_defvec and targ_selvecs and gate them
behind BFD64.
* configure.ac: Add target_size=64 to kvx_elf64_*vec.
* configure: Regenerate.
* elfnn-kvx.c (elfNN_kvx_stub_name): Cast rel->r_addend to
uint64_t to match format string.
(elfNN_kvx_relocate_section): Similarly for r_offset, and
use PRIx64 in format string.
* targets.c (_bfd_target_vector <kvx_elf32_vec>): Move inside
#ifdef BFD64.
ld/
* Makefile.am: Move eelf32kvx.c from ALL_EMULATION_SOURCES to
ALL_64_EMULATION_SOURCES.
* Makefile.in: Regenerate.
Diffstat (limited to 'bfd/elfnn-kvx.c')
-rw-r--r-- | bfd/elfnn-kvx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/elfnn-kvx.c b/bfd/elfnn-kvx.c index 467d91f..95580d1 100644 --- a/bfd/elfnn-kvx.c +++ b/bfd/elfnn-kvx.c @@ -736,7 +736,7 @@ elfNN_kvx_stub_name (const asection *input_section, snprintf (stub_name, len, "%08x_%s+%" PRIx64 "x", (unsigned int) input_section->id, hash->root.root.root.string, - rel->r_addend); + (uint64_t) rel->r_addend); } else { @@ -747,7 +747,7 @@ elfNN_kvx_stub_name (const asection *input_section, (unsigned int) input_section->id, (unsigned int) sym_sec->id, (unsigned int) ELFNN_R_SYM (rel->r_info), - rel->r_addend); + (uint64_t) rel->r_addend); } return stub_name; @@ -2568,11 +2568,11 @@ elfNN_kvx_relocate_section (bfd *output_bfd, (*_bfd_error_handler) ((sym_type == STT_TLS /* xgettext:c-format */ - ? _("%pB(%pA+%#lx): %s used with TLS symbol %s") + ? _("%pB(%pA+%#" PRIx64 "): %s used with TLS symbol %s") /* xgettext:c-format */ - : _("%pB(%pA+%#lx): %s used with non-TLS symbol %s")), + : _("%pB(%pA+%#" PRIx64 "): %s used with non-TLS symbol %s")), input_bfd, - input_section, (long) rel->r_offset, howto->name, name); + input_section, (uint64_t) rel->r_offset, howto->name, name); } /* Original aarch64 has relaxation handling for TLS here. */ |