On Tue, 15 Dec 2009, [email protected] wrote:

hi,

 >   * harbour/include/hbinit.h
 >     + added new alternative form for initialization code activated
 >       by HB_INITSEG_STARTUP macro. This method uses asm() directive
 >       to store call to startup function in .init segment.

you are The Man. big thanks!

for me to work, i needed to mod it like this:

-      __asm__ ( ".section .init\n\tcall " HB_MACRO2STRING( func ) "\n\t" );
+      asm ( ".section .init\n\tcall " HB_MACRO2STRING( func ) "\n\t.section 
.text\n\t" );

ie. a ".section .text" appended to the end (__asm__ vs asm is probably 
compiler-specific, i'll just if this to the compiler), in both 
occurances.

shall i do this to section text too, or can it be added to your 
version without causing any ill effect on other platforms?

-- 
[-]

mkdir /nonexistent
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to