Date: Tue, 9 Feb 1999 14:45:32 -0800 (PST) From: kushn@mail.kar.net To: freebsd-gnats-submit@FreeBSD.ORG Subject: gnu/9987: wrong (for FreeBSD) ELF_DYNAMIC_INTERPRETER in binutils Message-ID: <199902092245.OAA18857@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 9987
>Category: gnu
>Synopsis: wrong (for FreeBSD) ELF_DYNAMIC_INTERPRETER in binutils
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Feb 9 14:50:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Vladimir Kushnir
>Release: FreeBSD 4.0-CURRENT
>Organization:
Institute for Theoretical Physics, Kiev
>Environment:
FreeBSD kushnir.kiev.ua 4.0-CURRENT FreeBSD 4.0-CURRENT #0:
Sun Feb 7 03:39:58 EET 1999 volodya@kushnir.kiev.ua:/usr/src/sys/compile/KUSHNIR i386
>Description:
In binutils (/usr/src/contrib/binutils/bfd/elf32-i386.c and
/usr/src/contrib/binutils/bfd/elf64-alpha.c) defined wrong
(for FreeBSD) ELF_DYNAMIC_INTERPRETER: /usr/lib/libc.so.1 for i386
and /usr/lib/ld.so for alpha. This puts wrong wrong ELF interpreter
into partially static (with some of libs shared) binaries and renders
them unusable
>How-To-Repeat:
/* hello.c */
#include <stdio.h>
void main() { printf("Hello, world!\n"); }
cc -static -o hello hello.c /usr/lib/libc.so (stupid in this case, of course)
./hello with output: ELF interpreter /usr/lib/libc.so.1 not found and "strings hello" shows /usr/lib/libc.so.1
>Fix:
Redefine ELF_DYNAMIC_INTERPRETER in both files
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902092245.OAA18857>
