diff options
author | Nick Clifton <nickc@redhat.com> | 2020-08-13 11:50:13 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-08-13 11:50:13 +0100 |
commit | 8118fd4346e353323cda683c5158f90efedf1002 (patch) | |
tree | 22a642315a20869f00dc3c1bd1fbc4330705a9cd /gas | |
parent | 73d0dc162e04036ef4752f2cdc09cbfff8437c22 (diff) | |
download | gdb-8118fd4346e353323cda683c5158f90efedf1002.zip gdb-8118fd4346e353323cda683c5158f90efedf1002.tar.gz gdb-8118fd4346e353323cda683c5158f90efedf1002.tar.bz2 |
Fix an internal compiler error when attempting to create a second $GDB_DEBUG$ section.
PR 26359
* config/obj-som.c (obj_som_init_stab_section): Do nothing if the
$GDB_DEBUG$ section has already been created.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/obj-som.c | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index baa788f..d9b57f8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2020-08-13 Nick Clifton <nickc@redhat.com> + + PR 26359 + * config/obj-som.c (obj_som_init_stab_section): Do nothing if the + $GDB_DEBUG$ section has already been created. + 2020-08-12 Joe Ramsay <joe.ramsay@.arm.com> * config/tc-arm.c (do_neon_cvt_1): Parse vcvtne as vcvt-ne for diff --git a/gas/config/obj-som.c b/gas/config/obj-som.c index 82b0af4..b403cbd 100644 --- a/gas/config/obj-som.c +++ b/gas/config/obj-som.c @@ -211,9 +211,13 @@ obj_som_init_stab_section (segT seg) segT space; subsegT saved_subseg = now_subseg; char *p; - const char * file; + const char * file; unsigned int stroff; + /* Nothing to do if the section has already been created. */ + if (bfd_get_section_by_name (stdoutput, "$GDB_DEBUG$")) + return; + /* Make the space which will contain the debug subspaces. */ space = bfd_make_section_old_way (stdoutput, "$GDB_DEBUG$"); |