aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-10-29 19:02:26 +0000
committerIan Lance Taylor <ian@airs.com>1993-10-29 19:02:26 +0000
commitc3b34cfd3b1745f096997203661d67b607dbf5e1 (patch)
treedd4b10c613b56df0f3d3713706a3972ecdd9eb86 /ld
parentbf5c0d644899aa224fcac5eb0b5dff2002d6448c (diff)
downloadgdb-c3b34cfd3b1745f096997203661d67b607dbf5e1.zip
gdb-c3b34cfd3b1745f096997203661d67b607dbf5e1.tar.gz
gdb-c3b34cfd3b1745f096997203661d67b607dbf5e1.tar.bz2
* ld.h (flag_is_*): Removed macros.
* ldmain.c (enter_global_ref), ldsym.c (write_file_locals): Consistently check the BFD symbol flags directly, rather than using file_is_* macros.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/ldsym.c10
2 files changed, 12 insertions, 5 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 8173dc2..80d3d44 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
+
+ * ld.h (flag_is_*): Removed macros.
+ * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
+ Consistently check the BFD symbol flags directly, rather than
+ using file_is_* macros.
+
Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
* configure.in (sparc*-*-lynxos*): New target.
diff --git a/ld/ldsym.c b/ld/ldsym.c
index 6b2a3a7..a948e9e 100644
--- a/ld/ldsym.c
+++ b/ld/ldsym.c
@@ -474,14 +474,14 @@ write_file_locals (output_buffer)
if (p->section == 0)
p->section = &bfd_abs_section;
- if (flag_is_global (p->flags)
- || flag_is_weak (p->flags))
+ if ((p->flags & BSF_GLOBAL)
+ || (p->flags & BSF_WEAK))
{
/* If this symbol is marked as occurring now, rather than
at the end, output it now. This is used for COFF C_EXT
FCN symbols. FIXME: There must be a better way. */
if (bfd_asymbol_bfd (p) == entry->the_bfd
- && flag_is_not_at_end (p->flags))
+ && (p->flags & BSF_NOT_AT_END))
{
*(output_buffer++) = p;
p->flags |= BSF_KEEP;
@@ -493,7 +493,7 @@ write_file_locals (output_buffer)
{
/* Dont think about indirect symbols */
}
- else if (flag_is_debugger (p->flags))
+ else if (p->flags & BSF_DEBUGGING)
{
/* Only keep the debugger symbols if no stripping required */
if (strip_symbols == STRIP_NONE)
@@ -506,7 +506,7 @@ write_file_locals (output_buffer)
{
/* These must be global. */
}
- else if (flag_is_ordinary_local (p->flags))
+ else if (p->flags & BSF_LOCAL)
{
if (discard_locals == DISCARD_ALL)
{