Constify target name, reloc name, and carsym name
authorAlan Modra <amodra@gmail.com>
Wed, 18 Sep 2019 05:34:27 +0000 (15:04 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 18 Sep 2019 12:02:51 +0000 (21:32 +0930)
commit1d38e9d14cc793bca9124d5ed7dc2a6e3122f2e5
treeaf0c3bdb5483df06b9f1fb399aa40bfdf0c138ce
parent90d92a632aaf75ce698335efeb383ddf785c12d8
Constify target name, reloc name, and carsym name

bfd/
* bfd-in.h (carsym.name): Make const.
* reloc.c (struct reloc_howto_struct.name): Likewise.
* targets.c (bfd_target.name): Likewise.!
* bfd.c (bfd_get_sign_extend_vma): Make variable const.
* som.c (som_bfd_fill_in_ar_symbols): Use an intermediary variable
when setting carsym.name.
* bfd-in2.h: Regenerate.
gdb/
* amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
* i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
* i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
ld/
* ldlang.c (stricpy, strcut, name_compare): Constify params.
(get_first_input_target): Make return and "target" const.
13 files changed:
bfd/ChangeLog
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/bfd.c
bfd/reloc.c
bfd/som.c
bfd/targets.c
gdb/ChangeLog
gdb/amd64-dicos-tdep.c
gdb/i386-cygwin-tdep.c
gdb/i386-dicos-tdep.c
ld/ChangeLog
ld/ldlang.c
This page took 0.027065 seconds and 4 git commands to generate.