mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
2013-07-02 Tristan Gingold <gingold@adacore.com>
* coff-rs6000.c (xcoff_create_csect_from_smclas): Handle more smclas.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2013-07-02 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
|
* coff-rs6000.c (xcoff_create_csect_from_smclas): Handle more smclas.
|
||||||
|
|
||||||
2013-07-02 Tristan Gingold <gingold@adacore.com>
|
2013-07-02 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* coff-rs6000.c (xcoff_find_nearest_line_discriminator): New function.
|
* coff-rs6000.c (xcoff_find_nearest_line_discriminator): New function.
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
MA 02110-1301, USA. */
|
MA 02110-1301, USA. */
|
||||||
|
|
||||||
#include "sysdep.h"
|
#include "sysdep.h"
|
||||||
|
#include "libiberty.h"
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "bfdlink.h"
|
#include "bfdlink.h"
|
||||||
#include "libbfd.h"
|
#include "libbfd.h"
|
||||||
@ -3555,14 +3556,14 @@ xcoff_create_csect_from_smclas (bfd *abfd,
|
|||||||
|
|
||||||
/* .sv64 = x_smclas == 17
|
/* .sv64 = x_smclas == 17
|
||||||
This is an invalid csect for 32 bit apps. */
|
This is an invalid csect for 32 bit apps. */
|
||||||
static const char *names[19] =
|
static const char * const names[] =
|
||||||
{
|
{
|
||||||
".pr", ".ro", ".db", ".tc", ".ua", ".rw", ".gl", ".xo",
|
".pr", ".ro", ".db", ".tc", ".ua", ".rw", ".gl", ".xo", /* 0 - 7 */
|
||||||
".sv", ".bs", ".ds", ".uc", ".ti", ".tb", NULL, ".tc0",
|
".sv", ".bs", ".ds", ".uc", ".ti", ".tb", NULL, ".tc0", /* 8 - 15 */
|
||||||
".td", NULL, ".sv3264"
|
".td", NULL, ".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]))
|
&& (NULL != names[aux->x_csect.x_smclas]))
|
||||||
{
|
{
|
||||||
return_value = bfd_make_section_anyway
|
return_value = bfd_make_section_anyway
|
||||||
|
Reference in New Issue
Block a user