From owner-doc-jp@jp.freebsd.org  Mon Mar  1 03:25:27 1999
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.9.2+3.1W/8.7.3) id DAA05226;
	Mon, 1 Mar 1999 03:25:27 +0900 (JST)
	(envelope-from owner-doc-jp@jp.FreeBSD.org)
Received: from smtp.teleway.ne.jp (smtp.teleway.ne.jp [203.140.129.13])
	by jaz.jp.freebsd.org (8.9.2+3.1W/8.7.3) with ESMTP id DAA05220
	for <doc-jp@jp.freebsd.org>; Mon, 1 Mar 1999 03:25:25 +0900 (JST)
	(envelope-from yasuf@big.or.jp)
Received: from post1a.po.teleway.ne.jp (post1a.teleway.ne.jp [203.140.129.22])
	by smtp.teleway.ne.jp (8.8.8/3.7W) with ESMTP id DAA24147
	for <doc-jp@jp.freebsd.org>; Mon, 1 Mar 1999 03:25:27 +0900 (JST)
	(envelope-from yasuf@big.or.jp)
Received: from localhost ([210.234.51.22]) by post1a.po.teleway.ne.jp
          (Post.Office MTA v3.0 release "turbo_2"
          ID# 110-55583U50000L50000S0V35) with ESMTP id AAA18048
          for <doc-jp@jp.freebsd.org>; Mon, 1 Mar 1999 03:25:25 +0900
To: doc-jp@jp.freebsd.org
X-Mailer: Mew version 1.93 on XEmacs 20.4 (Emerald)
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
	boundary="--Next_Part(Mon_Mar__1_03:24:45_1999_597)--"
Content-Transfer-Encoding: 7bit
Message-Id: <19990301032525Y.yasuf@big.or.jp>
Date: Mon, 01 Mar 1999 03:25:25 +0900
From: Yasuhiro Fukuma <yasuf@big.or.jp>
X-Dispatcher: imput version 980905(IM100)
Lines: 98
Reply-To: doc-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+981115
X-Sequence: doc-jp 6067
Subject: [doc-jp 6067] <FAQ> hackers.sgml 1.11 -> 1.12
Errors-To: owner-doc-jp@jp.freebsd.org
Sender: owner-doc-jp@jp.freebsd.org
X-Originator: yasuf@big.or.jp

----Next_Part(Mon_Mar__1_03:24:45_1999_597)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit

$BJ!4V(B@$BJ!2,(B $B$G$9!#(B

3$B$D$a$G$9!#$H$j$"$($::#F|$O$3$3$^$G!#(B

---
 Yasuhiro Fukuma ($BJ!4V(B $B9/90(B) as Yasu.F @ Kitakyushu.Fukuoka.Japan
 Web site: http://www8.big.or.jp/~yasuf/
 $B!H7/$N<g?M8x$O7/$@!#!I(B

----Next_Part(Mon_Mar__1_03:24:45_1999_597)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=hackers.sgml.diff

Index: hackers.sgml
===================================================================
RCS file: /home/ncvs/doc/ja/FAQ/hackers.sgml,v
retrieving revision 1.7
diff -u -r1.7 hackers.sgml
--- hackers.sgml	1999/02/02 17:59:13	1.7
+++ hackers.sgml	1999/02/28 18:17:12
@@ -1,6 +1,6 @@
 <!-- $Id: hackers.sgml,v 1.7 1999/02/02 17:59:13 motoyuki Exp $ -->
 <!-- The FreeBSD Japanese Documentation Project -->
-<!-- Original revision: 1.11 --> 
+<!-- Original revision: 1.12 --> 
 
   <sect>
     <heading>$B$^$8$a$J(B FreeBSD $B%O%C%+!<$@$1$NOCBj(B<label id="hackers"></heading>
@@ -486,5 +486,20 @@
       $B%/$r(B $B5/$3$7%/%i%C%7%e%@%s%W$5$;$k$3$H$,$G$-$^$9(B. $B%Q%K%C%/$NESCf(B
       $B$G(B, $B:F$S(B $B%G%P%C%,$KMn$A$k$+$b$7$l$^$;$s$,(B, 'continue' $B$HF~NO$9$l(B
       $B$P(B, $B%/%i%C%7%e%@%s%W$r:G8e$^$G<B9T$5$;$i$l$^$9(B.]</em>
+
+    <sect1>
+      <heading>dlsym() $B$,(B ELF $B<B9T7A<0$G$OF0:n$7$J$/$J$j$^$9(B!</heading>
+
+      <p>ELF $B$N%D!<%kN`$O(B, $B%G%U%)%k%H$G$O<B9T7A<0$NCf$KDj5A$5$l$F$$$k(B
+      $B%7%s%\%k$r%@%$%J%_%C%/%j%s%+$+$i8+$($k$h$&$K$O$7$^$;$s(B.
+      $B$3$N$?$a(B, <tt>dlopen(NULL, flags)</tt> $B$r8F$S=P$7$FF@$i$l$?(B
+      $B%O%s%I%k$KBP$7$F(B <tt>dlsym()</tt> $B$GC5:w$r9T$C$F$b(B, $B$3$&$$$C$?(B
+      $B%7%s%\%k$r8+$D$1$i$l$^$;$s(B.
+
+      <p>$B$b$7(B, $B$"$J$?$,%W%m%;%9$NCf?4$K$"$?$k<B9T7A<0$NCf$K$"$k(B
+      $B%7%s%\%k$rC5:w$7$?$1$l$P(B, 
+      <htmlurl url="http://www.freebsd.org/cgi/man.cgi?ld" 
+      name="ELF $B%j%s%+(B"> $B$K(B <tt>-export-dynamic</tt> $B%*%W%7%g%s$r(B
+      $BIU$1$F<B9T7A<0$r%j%s%/$9$kI,MW$,$"$j$^$9(B.
 
     </sect>

----Next_Part(Mon_Mar__1_03:24:45_1999_597)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: diffs of English version
Content-Disposition: attachment; filename=hackers.sgml-1.11-1.12.diff

Index: FAQ/hackers.sgml
===================================================================
RCS file: /home/ncvs/doc/FAQ/hackers.sgml,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- hackers.sgml	1999/01/21 01:49:12	1.11
+++ hackers.sgml	1999/02/17 03:08:21	1.12
@@ -1,4 +1,4 @@
-<!-- $Id: hackers.sgml,v 1.11 1999/01/21 01:49:12 jkh Exp $ -->
+<!-- $Id: hackers.sgml,v 1.12 1999/02/17 03:08:21 jkoshy Exp $ -->
 <!-- The FreeBSD Documentation Project -->
 
   <sect>
@@ -486,5 +486,20 @@
       ddb prompt. It may stop in the debugger again during the panic
       phase. If it does, type 'continue' and it will finish the crash
       dump." -ed]</em>
+
+    <sect1>
+      <heading>dlsym() stopped working for ELF executables!</heading>
+
+      <p>The ELF toolchain does not, by default, make the symbols 
+      defined in an executable visible to the dynamic linker.  
+      Consequently <tt>dlsym()</tt> searches on handles obtained 
+      from calls to <tt>dlopen(NULL, flags)</tt> will fail to find
+      such symbols.
+
+      <p>If you want to search, using <tt>dlsym()</tt>, for symbols 
+      present in the main executable of a process, you need to link 
+      the executable using the <tt>-export-dynamic</tt> option to the
+      <htmlurl url="http://www.freebsd.org/cgi/man.cgi?ld" 
+      name="ELF linker">.
 
   </sect>

----Next_Part(Mon_Mar__1_03:24:45_1999_597)----
