Re: Dynamic linking is go (again)

Izumi Tsutsui <[email protected]>
Newsgroups gmane.os.netbsd.ports.sh3,gmane.os.netbsd.ports.dreamcast
Message-ID <[email protected]>
In article <[email protected]>
I wrote:

> We should check LINK_SPEC or something in gcc-3.3?

I notice that ld/emulparams/shelf_nbsd.sh in binutils-2.13.2.1
sets wrong default ENTRY point and it causes the problem.
The attached patch fixes it, but I wonder if it causes
compatibility issue or not... (only PIC binaries are affected?)
---
Izumi Tsutsui
[email protected]

--- ld/emulparams/shelf_nbsd.sh.orig	2003-07-05 19:50:29.000000000 +0900
+++ ld/emulparams/shelf_nbsd.sh	2003-07-05 19:22:32.000000000 +0900
@@ -9,7 +9,7 @@
 
 DATA_START_SYMBOLS='__data_start = . ;';
 
-ENTRY=_start
+ENTRY=__start
 
 unset EMBEDDED
 unset OTHER_SECTIONS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.