aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
diff options
context:
space:
mode:
authorStephen Casner <casner@acm.org>2020-06-04 18:12:32 -0700
committerStephen Casner <casner@acm.org>2020-06-04 18:12:32 -0700
commita975c88e6549c508ec86658e6816d7b8f16af13c (patch)
treea51af3ae7a7c53dde712f009cc8da7c967ca59bc /bfd/ChangeLog
parent470e738f6d505ef612c480650a9a7be06c376c46 (diff)
downloadfsf-binutils-gdb-a975c88e6549c508ec86658e6816d7b8f16af13c.zip
fsf-binutils-gdb-a975c88e6549c508ec86658e6816d7b8f16af13c.tar.gz
fsf-binutils-gdb-a975c88e6549c508ec86658e6816d7b8f16af13c.tar.bz2
Extend pdp11-aout symbol table format and code for .stab symbols.
* bfd/pdp11.c (pdp11_external_nlist): Repurposed e_unused to e_desc. (N_STAB, is_stab): Needed new function is_stab to disambiguate normal vs. .stab symbol table type values, replacing N_STAB mask. (translate_from_native_sym_flags): Determine correct section for different .stab types. (translate_to_native_sym_flags): Leave .stab types intact. (translate_symbol_table): Error if symbol indicates overlay; store desc field from .stab symbols. (write_syms): Output desc field with symbol. (aout_link_check_ar_symbols): Skip .stab symbols. (aout_link_add_symbols): Correctly distinguish .stab symbols. (aout_link_write_other_symbol): Write 0 for desk and ovly fields. (aout_link_write_symbols): Write 0 for desk and ovly fields; correctly distinguish .stab symbols and select calculate their section and value; and copy desc and ovly fields from input symbol to output symbol.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r--bfd/ChangeLog22
1 files changed, 22 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f88e5e8..e99de6d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,27 @@
2020-06-04 Stephen Casner <casner@acm.org>
+ Extend pdp11-aout symbol table format to accommodate .stab
+ symbols and implement correct handling of them.
+
+ * pdp11.c (pdp11_external_nlist): Repurposed e_unused to e_desc.
+ (N_STAB, is_stab): Needed new function is_stab to disambiguate
+ normal vs. .stab symbol table type values, replacing N_STAB mask.
+ (translate_from_native_sym_flags): Determine correct section for
+ different .stab types.
+ (translate_to_native_sym_flags): Leave .stab types intact.
+ (translate_symbol_table): Error if symbol indicates overlay;
+ store desc field from .stab symbols.
+ (write_syms): Output desc field with symbol.
+ (aout_link_check_ar_symbols): Skip .stab symbols.
+ (aout_link_add_symbols): Correctly distinguish .stab symbols.
+ (aout_link_write_other_symbol): Write 0 for desk and ovly fields.
+ (aout_link_write_symbols): Write 0 for desk and ovly fields;
+ correctly distinguish .stab symbols and select calculate their
+ section and value; and copy desc and ovly fields from input symbol
+ to output symbol.
+
+2020-06-04 Stephen Casner <casner@acm.org>
+
* aoutx.h (translate_symbol_table): Comment had external and
internal swapped.
* pdp11.c (translate_symbol_table): Likewise.