diff options
author | Alan Modra <amodra@gmail.com> | 2017-04-13 10:58:40 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-04-13 17:07:24 +0930 |
commit | c08bb8dd9bd9fd101018b287726187d7ed6a0035 (patch) | |
tree | 09a33dcea9c5a05a81a944fea362ef434d93d9b8 /bfd/elfnn-ia64.c | |
parent | 10463f39c79843c2c141481a0781091870695b17 (diff) | |
download | gdb-c08bb8dd9bd9fd101018b287726187d7ed6a0035.zip gdb-c08bb8dd9bd9fd101018b287726187d7ed6a0035.tar.gz gdb-c08bb8dd9bd9fd101018b287726187d7ed6a0035.tar.bz2 |
Rewrite bfd error handler
This steals _doprnt from libiberty, extended to handle %A and %B.
Which lets us do away with the current horrible %A and %B handling
that requires all %A and %B arguments to be passed first, rather than
in the natural order.
* bfd.c (PRINT_TYPE): Define.
(_doprnt): New function.
(error_handler_internal): Use _doprnt.
* coff-arm.c: Put %A and %B arguments to _bfd_error_handler
calls in their natural order, throughout file.
* coff-mcore.c: Likewise.
* coff-ppc.c: Likewise.
* coff-tic80.c: Likewise.
* cofflink.c: Likewise.
* elf-s390-common.c: Likewise.
* elf.c: Likewise.
* elf32-arm.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-msp430.c: Likewise.
* elf32-spu.c: Likewise.
* elf64-ia64-vms.c: Likewise.
* elf64-sparc.c: Likewise.
* elf64-x86-64.c: Likewise.
* elflink.c: Likewise.
* elfnn-aarch64.c: Likewise.
* elfnn-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
Diffstat (limited to 'bfd/elfnn-ia64.c')
-rw-r--r-- | bfd/elfnn-ia64.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/bfd/elfnn-ia64.c b/bfd/elfnn-ia64.c index 6f92b34..3c27f5d 100644 --- a/bfd/elfnn-ia64.c +++ b/bfd/elfnn-ia64.c @@ -617,8 +617,9 @@ elfNN_ia64_relax_section (bfd *abfd, asection *sec, { _bfd_error_handler /* xgettext:c-format */ - (_("%B: Can't relax br at 0x%lx in section `%A'. Please use brl or indirect branch."), - sec->owner, sec, (unsigned long) roff); + (_("%B: Can't relax br at 0x%lx in section `%A'." + " Please use brl or indirect branch."), + sec->owner, (unsigned long) roff, sec); bfd_set_error (bfd_error_bad_value); goto error_return; } @@ -4474,9 +4475,10 @@ missing_tls_sec: case R_IA64_LTOFF_DTPREL22: _bfd_error_handler /* xgettext:c-format */ - (_("%B: missing TLS section for relocation %s against `%s' at 0x%lx in section `%A'."), - input_bfd, input_section, howto->name, name, - rel->r_offset); + (_("%B: missing TLS section for relocation %s against `%s'" + " at 0x%lx in section `%A'."), + input_bfd, howto->name, name, + rel->r_offset, input_section); break; case R_IA64_PCREL21B: @@ -4490,9 +4492,10 @@ missing_tls_sec: that the section is too big to relax. */ _bfd_error_handler /* xgettext:c-format */ - (_("%B: Can't relax br (%s) to `%s' at 0x%lx in section `%A' with size 0x%lx (> 0x1000000)."), - input_bfd, input_section, howto->name, name, - rel->r_offset, input_section->size); + (_("%B: Can't relax br (%s) to `%s' at 0x%lx" + " in section `%A' with size 0x%lx (> 0x1000000)."), + input_bfd, howto->name, name, rel->r_offset, + input_section, input_section->size); break; } /* Fall through. */ |