Deleted Added
full compact
brandelf.c (59342) brandelf.c (62313)
1/*-
2 * Copyright (c) 1996 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1996 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/usr.bin/brandelf/brandelf.c 59342 2000-04-18 02:39:26Z obrien $
28 * $FreeBSD: head/usr.bin/brandelf/brandelf.c 62313 2000-07-01 05:48:33Z green $
29 */
30
31#include <elf.h>
32#include <fcntl.h>
33#include <stdio.h>
34#include <stdlib.h>
35#include <string.h>
36#include <unistd.h>

--- 7 unchanged lines hidden (view full) ---

44
45struct ELFtypes {
46 const char *str;
47 int value;
48};
49/* XXX - any more types? */
50static struct ELFtypes elftypes[] = {
51 { "FreeBSD", ELFOSABI_FREEBSD },
29 */
30
31#include <elf.h>
32#include <fcntl.h>
33#include <stdio.h>
34#include <stdlib.h>
35#include <string.h>
36#include <unistd.h>

--- 7 unchanged lines hidden (view full) ---

44
45struct ELFtypes {
46 const char *str;
47 int value;
48};
49/* XXX - any more types? */
50static struct ELFtypes elftypes[] = {
51 { "FreeBSD", ELFOSABI_FREEBSD },
52 { "SVR4", ELFOSABI_SYSV },
53 { "Linux", ELFOSABI_LINUX }
52 { "Linux", ELFOSABI_LINUX },
53 { "Solaris", ELFOSABI_SOLARIS },
54 { "SVR4", ELFOSABI_SYSV }
54};
55
56int
57main(int argc, char **argv)
58{
59
60 const char *strtype = "FreeBSD";
61 int type = ELFOSABI_FREEBSD;

--- 143 unchanged lines hidden ---
55};
56
57int
58main(int argc, char **argv)
59{
60
61 const char *strtype = "FreeBSD";
62 int type = ELFOSABI_FREEBSD;

--- 143 unchanged lines hidden ---