diff options
author | Clément Chigot <clement.chigot@atos.net> | 2021-03-11 11:08:18 +0100 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-12 13:00:11 +1030 |
commit | 8aa2d0236a5cf981aff44cf679515c6031a152bd (patch) | |
tree | 349d9a41208c601af35ea7314741d597831436b2 /bfd/coff64-rs6000.c | |
parent | 78c84bf926fc263a588c96c7cd313fb9a9988b4b (diff) | |
download | gdb-8aa2d0236a5cf981aff44cf679515c6031a152bd.zip gdb-8aa2d0236a5cf981aff44cf679515c6031a152bd.tar.gz gdb-8aa2d0236a5cf981aff44cf679515c6031a152bd.tar.bz2 |
bfd: add missing smclass when creating csect for xcoff64
* coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add
missing smclass.
Diffstat (limited to 'bfd/coff64-rs6000.c')
-rw-r--r-- | bfd/coff64-rs6000.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c index 98b0066..21287c7 100644 --- a/bfd/coff64-rs6000.c +++ b/bfd/coff64-rs6000.c @@ -2127,14 +2127,14 @@ xcoff64_create_csect_from_smclas (bfd *abfd, union internal_auxent *aux, /* Changes from 32 : .sv == 8, is only for 32 bit programs .ti == 12 and .tb == 13 are now reserved. */ - static const char *names[19] = + static const char * const names[] = { ".pr", ".ro", ".db", ".tc", ".ua", ".rw", ".gl", ".xo", NULL, ".bs", ".ds", ".uc", NULL, NULL, NULL, ".tc0", - ".td", ".sv64", ".sv3264" + ".td", ".sv64", ".sv3264", NULL, ".tl", ".ul", ".te" }; - if ((19 >= aux->x_csect.x_smclas) + if ((aux->x_csect.x_smclas < ARRAY_SIZE (names)) && (NULL != names[aux->x_csect.x_smclas])) { |