Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/config + copy symtab



details:   https://anonhg.NetBSD.org/src/rev/66e18ebbd3c6
branches:  trunk
changeset: 340207:66e18ebbd3c6
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Thu Aug 27 10:22:12 2015 +0000

description:
+ copy symtab

diffstat:

 usr.bin/config/TODO |  15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diffs (25 lines):

diff -r b2cfa28b39ac -r 66e18ebbd3c6 usr.bin/config/TODO
--- a/usr.bin/config/TODO       Thu Aug 27 09:59:06 2015 +0000
+++ b/usr.bin/config/TODO       Thu Aug 27 10:22:12 2015 +0000
@@ -275,6 +275,21 @@
   of debug information.  In the future .symtab will be copied using linker
   during this stage.
 
+o Fix db_symtab copying (COPY_SYMTAB)
+
+  o Collect all objects and create a relocatable (netbsd.ro).  At this point,
+    the number of symbols is known.
+
+  o Relink and allocate .rodata.symtab with the calculated size of .symtab.
+    Linker recalculates symbol addresses.
+
+  o Embed the .symtab into .rodata.symtab.
+
+  o Link the final netbsd ELF.
+
+  The make(1) rule (dependency graph) should be identical with/without
+  COPY_SYMTAB.  Kill .ifdef COPY_SYMTAB from $S/conf/Makefile.kern.inc.
+
 o Preprocess and generate linker scripts dynamically.
 
   Include opt_xxx.h and replace some constant values (e.g. COHERENCY_UNIT,



Home | Main Index | Thread Index | Old Index