• R/O
  • HTTP
  • SSH
  • HTTPS

mingw-org-wsl: 提交

The MinGW.org Windows System Libraries


Commit MetaInfo

修訂11a950233df00c48165da4be1b928d9eff65a089 (tree)
時間2020-01-19 00:27:36
作者Keith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Correct DLSYM attribute handling in msvcrt-xref.pdf

Change Summary

差異

--- a/mingwrt/msvcrt-xref/ChangeLog
+++ b/mingwrt/msvcrt-xref/ChangeLog
@@ -1,3 +1,10 @@
1+2020-01-18 Keith Marshall <keith@users.osdn.me>
2+
3+ Correct DLSYM attribute handling in msvcrt-xref.pdf
4+
5+ * Makefile.in (SYMBOL_AGGREGATOR): New macro; define, and...
6+ (msvcrt.def.tbl): ...use it.
7+
18 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
29
310 Adapt for use in MSVCRT.DLL import library generation.
--- a/mingwrt/msvcrt-xref/Makefile.in
+++ b/mingwrt/msvcrt-xref/Makefile.in
@@ -6,7 +6,7 @@
66 # exported by various versions of MSVCRT.DLL and MSVCRxx.DLL
77 #
88 # Written by Keith Marshall <keithmarshall@users.sourceforge.net>
9-# Copyright (C) 2014, 2015, 2016, MinGW.org Project.
9+# Copyright (C) 2014, 2015, 2016, 2020, MinGW.org Project.
1010 #
1111 #
1212 # This is free software. Permission is granted to copy, modify and
@@ -90,10 +90,16 @@ msvcrt-xref.$(OUTPUT_FORMAT): $(foreach p,$(platform_dlls),msvcrt-xref.$p.tbl)
9090 # The first step, in generation of the cross-reference document, is to
9191 # extract an unqualified list of all the symbols, regardless of whichever
9292 # DLL versions provide them; this list is derived from a single composite
93-# template file, (filtered without regard to library version).
93+# template file, (filtered without regard to library version, and noting
94+# the special handling required for those symbols which are qualified
95+# by assignment of the __MINGW_DLSYM attribute).
9496 #
97+SYMBOLS_AGGREGATOR := sed -n \
98+ -e '1,/^EXPORTS/d' -e 's/^__MINGW_DLSYM(\([^)]*\)).*/\1/' \
99+ -e '/^[A-Z_a-z]/p'
100+
95101 msvcrt.def.tbl: %.tbl: %.in
96- sed -n -e '1,/^EXPORTS/d' -e '/^[A-Z_a-z]/p' $< > $@
102+ $(SYMBOLS_AGGREGATOR) $< > $@
97103
98104 # The full gamut of supported DLL versions is the aggregate of the platform
99105 # specific MSVCRT.DLLs, and the non-free MSVCRxx.DLLs.
Show on old repository browser