Subject: Re: Dynamic linking is go (again)
To: None <marcus@mc.pp.se>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-sh3
Date: 07/05/2003 19:58:47
In article <030705122230.M0127162@mirage.ceres.dti.ne.jp>
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
tsutsui@ceres.dti.ne.jp
--- 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