mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Import of devel/elftoaout 2.0
A program that is used to convert static elf images to a.out format. The SUN OpenBoot PROM can only boot a.out images. PR: ports/7150 Submitted by: Kapil Chowksey <kchowksey@hss.hns.com>
This commit is contained in:
parent
d6fb7b96d4
commit
563ff0bda2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=17799
19
devel/elftoaout/Makefile
Normal file
19
devel/elftoaout/Makefile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# New ports collection makefile for: elftoaout
|
||||||
|
# Version required: 2.0
|
||||||
|
# Date created: 3 Jul 1998
|
||||||
|
# Whom: kchowksey@hss.hns.com
|
||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
DISTNAME= elftoaout-2.0
|
||||||
|
CATEGORIES= devel
|
||||||
|
MASTER_SITES= ftp://sunsite.mff.cuni.cz/OS/Linux/Sparc/local/ultra/
|
||||||
|
EXTRACT_SUFX= .tgz
|
||||||
|
|
||||||
|
MAINTAINER= kchowksey@hss.hns.com
|
||||||
|
|
||||||
|
do-install:
|
||||||
|
${INSTALL_PROGRAM} ${WRKSRC}/elftoaout ${PREFIX}/bin
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
1
devel/elftoaout/distinfo
Normal file
1
devel/elftoaout/distinfo
Normal file
@ -0,0 +1 @@
|
|||||||
|
MD5 (elftoaout-2.0.tgz) = a966fdec49c028005a43b6e891e88e41
|
19
devel/elftoaout/files/patch-aa
Normal file
19
devel/elftoaout/files/patch-aa
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
--- elftoaout.c~ Thu Jul 10 16:48:06 1997
|
||||||
|
+++ elftoaout.c Fri Jul 3 09:36:09 1998
|
||||||
|
@@ -9,7 +9,15 @@
|
||||||
|
#include <linux/elf.h>
|
||||||
|
#define ELFDATA2MSB 2
|
||||||
|
#else
|
||||||
|
-#include <sys/elf.h>
|
||||||
|
+#include <elf.h>
|
||||||
|
+#include <sys/elf64.h>
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+#ifndef PT_LOPROC
|
||||||
|
+#define PT_LOPROC 0x70000000
|
||||||
|
+#endif
|
||||||
|
+#ifndef PT_HIPROC
|
||||||
|
+#define PT_HIPROC 0x7fffffff
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define swab16(x) (((x)<<8&0xFF00)|((x)>>8&0x00FF))
|
1
devel/elftoaout/pkg-comment
Normal file
1
devel/elftoaout/pkg-comment
Normal file
@ -0,0 +1 @@
|
|||||||
|
ELF to a.out conversion tool by Jakub Jelinek and Pete Zaitcev.
|
2
devel/elftoaout/pkg-descr
Normal file
2
devel/elftoaout/pkg-descr
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
A program that is used to convert static elf images to a.out format.
|
||||||
|
The SUN OpenBoot PROM can only boot a.out images.
|
1
devel/elftoaout/pkg-plist
Normal file
1
devel/elftoaout/pkg-plist
Normal file
@ -0,0 +1 @@
|
|||||||
|
bin/elftoaout
|
Loading…
Reference in New Issue
Block a user