solenv/bin/addsym-macosx.sh |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

New commits:
commit 4965c3cc4b48170ce1c3bc27d033ae9132ae1e4a
Author: Tor Lillqvist <t...@iki.fi>
Date:   Mon May 14 20:08:30 2012 +0300

    Add some more information
    
    Change-Id: Iafa671028ce73c2ec3a2706dda60f58aaeda7fda

diff --git a/solenv/bin/addsym-macosx.sh b/solenv/bin/addsym-macosx.sh
index b69f59f..89d8912 100755
--- a/solenv/bin/addsym-macosx.sh
+++ b/solenv/bin/addsym-macosx.sh
@@ -22,8 +22,30 @@ s#^#^#
 s#$#$#' | tr '\n' '|' | sed "s#|\$##" >$2
 
 # Please note that the awk expression expects to get the output of 'nm -gx'!
+
+# The fields in the nm -gx output are apparently (see
+# /usr/include/mach-o/nlist.h>):
+
+# xxxxxxxx xx xx xxxx xxxxxxxx symbol
+# !        !  !  !    n_value
+# !        !  !  n_desc
+# !        !  n_sect
+# !        n_type
+# n_strx
+
+# Original comment:
 # On Panther we have to filter out symbols with a value "1f" otherwise external
 # symbols will erroneously be added to the generated export symbols list file.
+#
+# Of course it isn't actually the "value" (n_value) of the symbol that
+# is meant, but (as is seen from the use of $2) the n_type .
+#
+# Now, what does a n_type of 1f actually mean? The N_PEXT bit (0x10)
+# is on and the N_EXT (0x01) bit is on. It is what in Mach-O
+# documentation is called "private external". This includes symbols
+# produced by using -fvisibility=hidden. Whether that is a problem I
+# don't know.
+#
 awk -v SYMBOLSREGEXP="`cat $2`" '
 match ($6,SYMBOLSREGEXP) > 0 &&  $6 !~ /_GLOBAL_/ { if (($2 != 1) && ( $2 != 
"1f" ) ) print $6 }'
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to