From: Martin Schwidefsky Date: Mon, 27 Jan 2003 08:44:21 +0000 (+0000) Subject: * Avoid designated initializers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5cfbfc2b20bb18a0a9ff530935ae044f6caeecff;p=binutils-gdb.git * Avoid designated initializers. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index a2f9e0783b1..10870bea8d3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2003-01-27 Martin Schwidefsky + + * config/tc-s390.c (s390_elf_cons): Avoid designated initializers. + 2003-01-25 Jakub Jelinek * config/tc-sparc.c (sparc_ip): Handle TLS % operators. diff --git a/gas/config/tc-s390.c b/gas/config/tc-s390.c index af6c70be7a1..0c54330d738 100644 --- a/gas/config/tc-s390.c +++ b/gas/config/tc-s390.c @@ -1033,19 +1033,19 @@ s390_elf_cons (nbytes) { static bfd_reloc_code_real_type tab2[] = { - [ELF_SUFFIX_NONE] BFD_RELOC_UNUSED , - [ELF_SUFFIX_GOT] BFD_RELOC_390_GOT16, - [ELF_SUFFIX_PLT] BFD_RELOC_UNUSED, - [ELF_SUFFIX_GOTENT] BFD_RELOC_UNUSED, - [ELF_SUFFIX_GOTOFF] BFD_RELOC_16_GOTOFF, - [ELF_SUFFIX_GOTPLT] BFD_RELOC_UNUSED, - [ELF_SUFFIX_PLTOFF] BFD_RELOC_390_PLTOFF16, - [ELF_SUFFIX_TLS_GD] BFD_RELOC_UNUSED, - [ELF_SUFFIX_TLS_GOTIE] BFD_RELOC_UNUSED, - [ELF_SUFFIX_TLS_IE] BFD_RELOC_UNUSED, - [ELF_SUFFIX_TLS_LDM] BFD_RELOC_UNUSED, - [ELF_SUFFIX_TLS_LDO] BFD_RELOC_UNUSED, - [ELF_SUFFIX_TLS_LE] BFD_RELOC_UNUSED, + BFD_RELOC_UNUSED, /* ELF_SUFFIX_NONE */ + BFD_RELOC_390_GOT16, /* ELF_SUFFIX_GOT */ + BFD_RELOC_UNUSED, /* ELF_SUFFIX_PLT */ + BFD_RELOC_UNUSED, /* ELF_SUFFIX_GOTENT */ + BFD_RELOC_16_GOTOFF, /* ELF_SUFFIX_GOTOFF */ + BFD_RELOC_UNUSED, /* ELF_SUFFIX_GOTPLT */ + BFD_RELOC_390_PLTOFF16, /* ELF_SUFFIX_PLTOFF */ + BFD_RELOC_UNUSED, /* ELF_SUFFIX_TLS_GD */ + BFD_RELOC_UNUSED, /* ELF_SUFFIX_TLS_GOTIE */ + BFD_RELOC_UNUSED, /* ELF_SUFFIX_TLS_IE */ + BFD_RELOC_UNUSED, /* ELF_SUFFIX_TLS_LDM */ + BFD_RELOC_UNUSED, /* ELF_SUFFIX_TLS_LDO */ + BFD_RELOC_UNUSED /* ELF_SUFFIX_TLS_LE */ }; reloc = tab2[suffix]; } @@ -1053,19 +1053,19 @@ s390_elf_cons (nbytes) { static bfd_reloc_code_real_type tab4[] = { - [ELF_SUFFIX_NONE] BFD_RELOC_UNUSED , - [ELF_SUFFIX_GOT] BFD_RELOC_32_GOT_PCREL, - [ELF_SUFFIX_PLT] BFD_RELOC_390_PLT32, - [ELF_SUFFIX_GOTENT] BFD_RELOC_UNUSED, - [ELF_SUFFIX_GOTOFF] BFD_RELOC_32_GOTOFF, - [ELF_SUFFIX_GOTPLT] BFD_RELOC_390_GOTPLT32, - [ELF_SUFFIX_PLTOFF] BFD_RELOC_390_PLTOFF32, - [ELF_SUFFIX_TLS_GD] BFD_RELOC_390_TLS_GD32, - [ELF_SUFFIX_TLS_GOTIE] BFD_RELOC_390_TLS_GOTIE32, - [ELF_SUFFIX_TLS_IE] BFD_RELOC_390_TLS_IE32, - [ELF_SUFFIX_TLS_LDM] BFD_RELOC_390_TLS_LDM32, - [ELF_SUFFIX_TLS_LDO] BFD_RELOC_390_TLS_LDO32, - [ELF_SUFFIX_TLS_LE] BFD_RELOC_390_TLS_LE32, + BFD_RELOC_UNUSED, /* ELF_SUFFIX_NONE */ + BFD_RELOC_32_GOT_PCREL, /* ELF_SUFFIX_GOT */ + BFD_RELOC_390_PLT32, /* ELF_SUFFIX_PLT */ + BFD_RELOC_UNUSED, /* ELF_SUFFIX_GOTENT */ + BFD_RELOC_32_GOTOFF, /* ELF_SUFFIX_GOTOFF */ + BFD_RELOC_390_GOTPLT32, /* ELF_SUFFIX_GOTPLT */ + BFD_RELOC_390_PLTOFF32, /* ELF_SUFFIX_PLTOFF */ + BFD_RELOC_390_TLS_GD32, /* ELF_SUFFIX_TLS_GD */ + BFD_RELOC_390_TLS_GOTIE32, /* ELF_SUFFIX_TLS_GOTIE */ + BFD_RELOC_390_TLS_IE32, /* ELF_SUFFIX_TLS_IE */ + BFD_RELOC_390_TLS_LDM32, /* ELF_SUFFIX_TLS_LDM */ + BFD_RELOC_390_TLS_LDO32, /* ELF_SUFFIX_TLS_LDO */ + BFD_RELOC_390_TLS_LE32 /* ELF_SUFFIX_TLS_LE */ }; reloc = tab4[suffix]; } @@ -1073,19 +1073,19 @@ s390_elf_cons (nbytes) { static bfd_reloc_code_real_type tab8[] = { - [ELF_SUFFIX_NONE] BFD_RELOC_UNUSED , - [ELF_SUFFIX_GOT] BFD_RELOC_390_GOT64, - [ELF_SUFFIX_PLT] BFD_RELOC_390_PLT64, - [ELF_SUFFIX_GOTENT] BFD_RELOC_UNUSED, - [ELF_SUFFIX_GOTOFF] BFD_RELOC_390_GOTOFF64, - [ELF_SUFFIX_GOTPLT] BFD_RELOC_390_GOTPLT64, - [ELF_SUFFIX_PLTOFF] BFD_RELOC_390_PLTOFF64, - [ELF_SUFFIX_TLS_GD] BFD_RELOC_390_TLS_GD64, - [ELF_SUFFIX_TLS_GOTIE] BFD_RELOC_390_TLS_GOTIE64, - [ELF_SUFFIX_TLS_IE] BFD_RELOC_390_TLS_IE64, - [ELF_SUFFIX_TLS_LDM] BFD_RELOC_390_TLS_LDM64, - [ELF_SUFFIX_TLS_LDO] BFD_RELOC_390_TLS_LDO64, - [ELF_SUFFIX_TLS_LE] BFD_RELOC_390_TLS_LE64, + BFD_RELOC_UNUSED, /* ELF_SUFFIX_NONE */ + BFD_RELOC_390_GOT64, /* ELF_SUFFIX_GOT */ + BFD_RELOC_390_PLT64, /* ELF_SUFFIX_PLT */ + BFD_RELOC_UNUSED, /* ELF_SUFFIX_GOTENT */ + BFD_RELOC_390_GOTOFF64, /* ELF_SUFFIX_GOTOFF */ + BFD_RELOC_390_GOTPLT64, /* ELF_SUFFIX_GOTPLT */ + BFD_RELOC_390_PLTOFF64, /* ELF_SUFFIX_PLTOFF */ + BFD_RELOC_390_TLS_GD64, /* ELF_SUFFIX_TLS_GD */ + BFD_RELOC_390_TLS_GOTIE64, /* ELF_SUFFIX_TLS_GOTIE */ + BFD_RELOC_390_TLS_IE64, /* ELF_SUFFIX_TLS_IE */ + BFD_RELOC_390_TLS_LDM64, /* ELF_SUFFIX_TLS_LDM */ + BFD_RELOC_390_TLS_LDO64, /* ELF_SUFFIX_TLS_LDO */ + BFD_RELOC_390_TLS_LE64 /* ELF_SUFFIX_TLS_LE */ }; reloc = tab8[suffix]; }