aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1993-10-31 07:38:33 +0000
committerJeff Law <law@redhat.com>1993-10-31 07:38:33 +0000
commitd191a03cf56cf612a8f2a41baee173757ad661c3 (patch)
tree25eafa592b030e903c95313e26f7b7a428369b8e /gas/read.c
parent65a7f8a6045462aa9ad1672801eba70dd4ef5892 (diff)
downloadgdb-d191a03cf56cf612a8f2a41baee173757ad661c3.zip
gdb-d191a03cf56cf612a8f2a41baee173757ad661c3.tar.gz
gdb-d191a03cf56cf612a8f2a41baee173757ad661c3.tar.bz2
* read.c (get_stab_string_offset): Set SEC_DEBUGGING for any
stab section we make. (s_stab_generic): Likewise.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/read.c b/gas/read.c
index b198b50..f3a67df 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -2675,7 +2675,7 @@ get_stab_string_offset (string, stabstr_secname)
*p = 0;
retval = seg_info (seg)->stabu.stab_string_size = 1;
#ifdef BFD_ASSEMBLER
- bfd_set_section_flags (stdoutput, seg, SEC_READONLY);
+ bfd_set_section_flags (stdoutput, seg, SEC_READONLY | SEC_DEBUGGING);
#else
free (newsecname);
#endif
@@ -2787,7 +2787,8 @@ s_stab_generic (what, stab_secname, stabstr_secname)
if (! seg_info (seg)->hadone)
{
#ifdef BFD_ASSEMBLER
- bfd_set_section_flags (stdoutput, seg, SEC_READONLY | SEC_RELOC);
+ bfd_set_section_flags (stdoutput, seg,
+ SEC_READONLY | SEC_RELOC | SEC_DEBUGGING);
#endif
#ifdef INIT_STAB_SECTION
INIT_STAB_SECTION (seg);