--- gcc/config/i386/sol2.h 2018/04/24 18:16:41 1.1.1.2 +++ gcc/config/i386/sol2.h 2018/04/24 18:30:38 1.1.1.4 @@ -1,5 +1,5 @@ /* Target definitions for GNU compiler for Intel 80386 running Solaris 2 - Copyright (C) 1993 Free Software Foundation, Inc. + Copyright (C) 1993, 1995 Free Software Foundation, Inc. Written by Fred Fish (fnf@cygnus.com). @@ -17,7 +17,8 @@ GNU General Public License for more deta You should have received a copy of the GNU General Public License along with GNU CC; see the file COPYING. If not, write to -the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ #include "i386/sysv4.h" @@ -31,6 +32,13 @@ the Free Software Foundation, 675 Mass A it knows what it is doing. */ #define FORCE_INIT_SECTION_ALIGN do { asm (ALIGN_ASM_OP ## " 16"); } while (0) +#define FORCE_FINI_SECTION_ALIGN FORCE_INIT_SECTION_ALIGN + +/* Add "sun" to the list of symbols defined for SVR4. */ +#undef CPP_PREDEFINES +#define CPP_PREDEFINES \ + "-Di386 -Dunix -D__svr4__ -D__SVR4 -Dsun \ + -Asystem(unix) -Asystem(svr4) -Acpu(i386) -Amachine(i386)" #undef CPP_SPEC #define CPP_SPEC "\ @@ -38,10 +46,10 @@ the Free Software Foundation, 675 Mass A #undef LIB_SPEC #define LIB_SPEC \ - "%{compat-bsd:-lucb -lsocket -lnsl -lelf -laio} \ - %{!shared:%{!symbolic:-lc}} \ - crtend.o%s \ - %{!shared:%{!symbolic:%{pg:crtn.o%s}%{!pg:crtn.o%s}}}" + "%{compat-bsd:-lucb -lsocket -lnsl -lelf -laio} %{!shared:%{!symbolic:-lc}}" + +#undef ENDFILE_SPEC +#define ENDFILE_SPEC "crtend.o%s %{pg:crtn.o%s}%{!pg:crtn.o%s}" /* This should be the same as in svr4.h, except with -R added. */ #undef LINK_SPEC @@ -49,8 +57,8 @@ the Free Software Foundation, 675 Mass A "%{h*} %{V} %{v:%{!V:-V}} \ %{b} %{Wl,*:%*} \ %{static:-dn -Bstatic} \ - %{shared:-G -dy} \ - %{symbolic:-Bsymbolic -G -dy} \ + %{shared:-G -dy -z text} \ + %{symbolic:-Bsymbolic -G -dy -z text} \ %{G:-G} \ %{YP,*} \ %{R*} \