summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/ld/emultempl
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-04-19 08:31:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-04-19 08:31:08 +0000
commit41d17e79c339aa7b59c1b00e6d2603868d348f2e (patch)
treee4c223cde034e2bbbd6afe264d36f55882fbf171 /gnu/usr.bin/binutils/ld/emultempl
parent8624813fc0c18d764d06d8f2143a1ffff1f7338d (diff)
undo change which breaks the alpha. I did not see this change and approve it during tree lock. Grrr
Diffstat (limited to 'gnu/usr.bin/binutils/ld/emultempl')
-rw-r--r--gnu/usr.bin/binutils/ld/emultempl/elf32.em41
1 files changed, 0 insertions, 41 deletions
diff --git a/gnu/usr.bin/binutils/ld/emultempl/elf32.em b/gnu/usr.bin/binutils/ld/emultempl/elf32.em
index 3698885e23d..d629d9a245b 100644
--- a/gnu/usr.bin/binutils/ld/emultempl/elf32.em
+++ b/gnu/usr.bin/binutils/ld/emultempl/elf32.em
@@ -325,14 +325,6 @@ EOF
if [ "x${host}" = "x${target}" ] ; then
case " ${EMULATION_LIBPATH} " in
*" ${EMULATION_NAME} "*)
- case ${target} in
- *-*-openbsd*)
-cat >>e${EMULATION_NAME}.c <<EOF
-#include <fcntl.h>
-#include <link.h>
-EOF
- ;;
- esac
cat >>e${EMULATION_NAME}.c <<EOF
/* For a native linker, check the file /etc/ld.so.conf for directories
@@ -353,41 +345,8 @@ gld${EMULATION_NAME}_check_ld_so_conf (name, force)
if (! initialized)
{
FILE *f;
-EOF
- case ${target} in
- *-*-openbsd*)
- cat >>e${EMULATION_NAME}.c <<EOF
- struct hints_header hdr;
- off_t diroff;
- int fd;
- char *buf;
-
- f = fopen(_PATH_LD_HINTS, FOPEN_RT);
- if (f != NULL)
- {
- if ( fread (&hdr, sizeof (struct hints_header), 1, f) == 1) {
- if (!HH_BADMAG(hdr)) {
- diroff = (hdr.hh_strtab + hdr.hh_dirlist);
- fseek(f, diroff, SEEK_SET);
- } else {
- fclose(f);
- f = NULL;
- }
- } else {
- fclose(f);
- f = NULL;
- }
- }
-EOF
- ;;
- *)
-cat >>e${EMULATION_NAME}.c <<EOF
f = fopen ("/etc/ld.so.conf", FOPEN_RT);
-EOF
- ;;
- esac
-cat >>e${EMULATION_NAME}.c <<EOF
if (f != NULL)
{
char *b;