🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42359

linker error with -shared option

#42359
From: Mateja Kavcic
Date: Thu, 14 Dec 1995 00:00
24 lines
1656 bytes
Hello!


When I wish to link with -shared option the result is:
( gcc 2.7.2 , Solaris 2.4)
> 
> Do you have any idea, why linker doesn't work:
> 
> ld: Software Generation Utilities (SGU) SunOS/ELF (LK-1.4 (S/I))
> Text relocation remains                       referenced
>     against symbol                  offset      in file
> <unknown>                           0x5c        /var/tmp/cca000Uu1.o
> <unknown>                           0x60        /var/tmp/cca000Uu1.o
> printf                              0x64        /var/tmp/cca000Uu1.o
> <unknown>                           0x84        /var/tmp/cca000Uu1.o
> <unknown>                           0x88        /var/tmp/cca000Uu1.o
> <unknown>             mexErrMsgTxt                        0x1cdc        /var/tmp/cca000Uu1.o
> <unknown>                           0x4         /usr/lib/libm.a(s_floor.o)
> <unknown>                           0xc         /usr/lib/libm.a(s_floor.o)
> <unknown>                           0x188       /usr/lib/libm.a(s_floor.o)
> ld: fatal: relocations remain against allocatable but non-writable sections
> 
> Thanks for any advice &pointers
>                                         Mateja
Technical Details
Message-ID: <1995Dec14.085847.303@cathy.ijs.si>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,686de1930776cd6c,start
X-Google-Attributes: gid11318c,public
From: Mateja Kavcic <Mateja.Kavcic@ijs.si>
Subject: linker error with -shared option
Date: 1995/12/14
Message-ID: <1995Dec14.085847.303@cathy.ijs.si>
X-Deja-AN: 121854806
content-type: text/plain; charset=us-ascii
organization: IJS
mime-version: 1.0
newsgroups: gnu.gcc.help
x-mailer: Mozilla 1.22 (Windows; I; 32bit)