NetBSD Problem Report #7301
Received: (qmail 2255 invoked from network); 2 Apr 1999 08:58:46 -0000
Message-Id: <199904020858.RAA02606@mirage.ceres.dti.ne.jp>
Date: Fri, 2 Apr 1999 17:58:31 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@gnats.netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: ELF csu files were compiled without `-fPIC' options
X-Send-Pr-Version: 3.95
>Number: 7301
>Category: lib
>Synopsis: ELF csu files were compiled without `-fPIC' options
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: lib-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 02 01:05:01 +0000 1999
>Closed-Date: Sun Apr 04 07:47:33 +0000 1999
>Last-Modified: Sun Apr 04 07:48:44 +0000 1999
>Originator: Izumi Tsutsui
>Release: NetBSD-current supped on 19990324
>Organization:
Izumi Tsutsui Himeji City, Japan
>Environment:
System: NetBSD/macppc 1.3K, probably all elf systems.
>Description:
On ELF systems, shared libraries are compiled without
-fPIC option, then they cause some problems.
>How-To-Repeat:
Build shared libraries and make some dinamically linked command
on ELF system. On my macppc, ld complained as
"Unsupported relocation type 4 in non-PLT relocations"
on linking commands.
>Fix:
There is a typo in lib/csu/common_elf/Makefile.inc.
--- lib/csu/common_elf/Makefile.inc.orig Sat Mar 20 09:32:40 1999
+++ lib/csu/common_elf/Makefile.inc Wed Mar 24 18:33:06 1999
@@ -7,7 +7,7 @@
CPPFLAGS+= -DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=${ELFSIZE}
CPPFLAGS+= -I${.CURDIR}/../../../libexec/ld.elf_so
CPPFLAGS+= -I${.CURDIR}/../common_elf
-COPT+= -fPIC
+COPTS+= -fPIC
.PATH: ${.CURDIR}/../common_elf
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: tsubai
State-Changed-When: Sat Apr 3 23:47:33 PST 1999
State-Changed-Why:
Patch applied. Thanks.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.