aboutsummaryrefslogtreecommitdiff
path: root/ld/ldsym.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1993-06-01 22:44:42 +0000
committerPer Bothner <per@bothner.com>1993-06-01 22:44:42 +0000
commit1cf91c69b09ffb537aa36c3fc663459058db08b8 (patch)
treef5d22a30b52b0e1ccdd26eba02a09ff165320a99 /ld/ldsym.c
parent3ef08dc3e319cbe79ccf92712b52091dec73f33c (diff)
downloadgdb-1cf91c69b09ffb537aa36c3fc663459058db08b8.zip
gdb-1cf91c69b09ffb537aa36c3fc663459058db08b8.tar.gz
gdb-1cf91c69b09ffb537aa36c3fc663459058db08b8.tar.bz2
* ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
symbols, unless stripping.
Diffstat (limited to 'ld/ldsym.c')
-rw-r--r--ld/ldsym.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ld/ldsym.c b/ld/ldsym.c
index 8b93a2e..ea373d1 100644
--- a/ld/ldsym.c
+++ b/ld/ldsym.c
@@ -528,9 +528,12 @@ write_file_locals (output_buffer)
*output_buffer++ = p;
}
}
- else if (p->flags & BSF_CTOR)
+ else if (p->flags & BSF_CONSTRUCTOR)
{
- /* Throw it away */
+ if (strip_symbols != STRIP_ALL)
+ {
+ *output_buffer++ = p;
+ }
}
else
{