aboutsummaryrefslogtreecommitdiff
path: root/bfd/libelf.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-07-17 02:15:24 +0000
committerIan Lance Taylor <ian@airs.com>1994-07-17 02:15:24 +0000
commitbf73e4f3fe7e4a4da67fae7444084343209ee6e6 (patch)
treef660760ac29a303f847c9c3e7b87ef6b6f225e87 /bfd/libelf.h
parentea61717495bad0a5fe182954bbb1c8a80890a98a (diff)
downloadgdb-bf73e4f3fe7e4a4da67fae7444084343209ee6e6.zip
gdb-bf73e4f3fe7e4a4da67fae7444084343209ee6e6.tar.gz
gdb-bf73e4f3fe7e4a4da67fae7444084343209ee6e6.tar.bz2
* libelf.h (ELF_LINK_HASH_DEFINED_WEAK): Define.
* elfcode.h (elf_link_add_object_symbols): If symbol is defined as weak, set ELF_LINK_HASH_DEFINED_WEAK. (elf_link_output_extsym): If symbol is defined as weak, mark it STB_WEAK.
Diffstat (limited to 'bfd/libelf.h')
-rw-r--r--bfd/libelf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/libelf.h b/bfd/libelf.h
index 84f79bb..cc6d8b8 100644
--- a/bfd/libelf.h
+++ b/bfd/libelf.h
@@ -111,6 +111,8 @@ struct elf_link_hash_entry
#define ELF_LINK_HASH_DEF_DYNAMIC_MULTIPLE 040
/* Dynamic symbol has been adjustd. */
#define ELF_LINK_HASH_DYNAMIC_ADJUSTED 0100
+ /* Symbol is defined as weak. */
+#define ELF_LINK_HASH_DEFINED_WEAK 0200
};
/* ELF linker hash table. */