Changeset 460


Ignore:
Timestamp:
Jul 28, 2003, 12:46:38 AM (22 years ago)
Author:
bird
Message:

#564: GCC_OMF hack, Set stack size to 1024kb. Don't mess with LIBGCC2_DEBUG_CFLAGS please. TARGET_LIBGCC2_CFLAGS which shouldn't be here either must include -Zaout now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/gcc/config/i386/t-emx

    • Property cvs2svn:cvs-rev changed from 1.18 to 1.19
    r459 r460  
    3131SHLIB_MULTINAME= $(SHLIB_BASENAME)
    3232SHLIB_DLLNAME  = $(SHLIB_MULTINAME).dll
     33ifdef GCC_OMF
     34SHLIB_BASENAME = gcc$(gccdll_version)o
     35SHLIB_LINK     = export DLLAR_CMDLINE="$$(patsubst %.o,%.obj,@shlib_objs@)" \
     36        && emxomf @shlib_objs@ \
     37        && kRx.exe dllar.cmd -o $$(@D)/$(SHLIB_DLLNAME) \
     38        -ordinal @multilib_flags@ -nocrtdll \
     39        -flags "-g -Zomf -v" \
     40        -ex "___main ___do_global_* __GLOBAL* __exit_dummy_ref ___ctordtor* ___eh* _DLL_InitTerm" \
     41        -d "GNU C runtime shared library version $(gcc_version)" \
     42        -libf "INITINSTANCE TERMGLOBAL" -lc_alias -lc_dll  \
     43        && $$(GCC_OMF)ar rs $$(@D)/$(SHLIB_BASENAME).a libgcc/$$(@D)/__main.o libgcc/$$(@D)/emx-ctordtor.o libgcc/$$(@D)/emx-eh.o \
     44        && emxomf -o $$(@D)/$(SHLIB_BASENAME).lib $$(@D)/$(SHLIB_BASENAME).a \
     45    && touch $$@
     46else
    3347SHLIB_LINK     = export DLLAR_CMDLINE="@shlib_objs@" && \
    3448        kRx.exe dllar.cmd -o $$(@D)/$(SHLIB_DLLNAME) \
     
    3650        -ex "___main ___do_global_* __GLOBAL* __exit_dummy_ref ___ctordtor* ___eh* _DLL_InitTerm" \
    3751        -d "GNU C runtime shared library version $(gcc_version)" \
    38         -libf "INITINSTANCE TERMGLOBAL" -lc_alias -lc_dll \
     52        -libf "INITINSTANCE TERMGLOBAL" -lc_alias -lc_dll  \
    3953        && ar rs $$(@D)/$(SHLIB_BASENAME).a libgcc/$$(@D)/__main.o libgcc/$$(@D)/emx-ctordtor.o libgcc/$$(@D)/emx-eh.o \
    4054    && touch $$@
     55endif   
    4156SHLIB_SUBDIR  = .
    4257SHLIB_INSTALL = $$(INSTALL_DATA) $(SHLIB_SUBDIR)/$(SHLIB_DLLNAME) $$(DESTDIR)$$(slibdir)/ \
     
    5166
    5267# Override linker flags
    53 # bird: the -B specification doesn't work too well here...
     68# bird: The -B specification doesn't work too well here...
     69# bird: This better be removed....
    5470#LDFLAGS = -Zexe -Zcrtdll -B/emx/lib
    5571#LDFLAGS = -Zexe -Zcrtdll -B$(PATH_EMXPGCC)/lib
    56 LDFLAGS = -Zexe -Zcrtdll
     72LDFLAGS = -Zexe -Zcrtdll -Zstack 1024
    5773
    5874# Add the 's' flag to $AR so that we don't need ranlib
    5975AR_FLAGS = rcs
    6076
    61 # We don't want debug information in libgcc
    62 LIBGCC2_DEBUG_CFLAGS = -s
    6377# We also want epilogues for each function in libgcc
    64 TARGET_LIBGCC2_CFLAGS = -O2 -fomit-frame-pointer -Wall -mprobe -mepilogue -DNDEBUG
     78TARGET_LIBGCC2_CFLAGS = -Zaout -O2 -fomit-frame-pointer -Wall -mprobe -mepilogue -DNDEBUG
    6579
    6680# Provide alternative source code for libgcc1
Note: See TracChangeset for help on using the changeset viewer.