Fix tools compilation. GccFindHit works.

This commit is contained in:
Krystian Bacławski
2012-08-03 14:35:51 +02:00
parent 12ec2faba0
commit c5ef898896
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
CC = gcc
CC = gcc -m32
CFLAGS = -O2 -Wall -I../target/include
BINS = GccFindHit hunk2aout
+5 -5
View File
@@ -7,15 +7,15 @@
#ifndef _DEFS_H_
#define _DEFS_H_
#include <endian.h>
#include <arpa/inet.h>
#include <dos/doshunks.h>
#include "a.out.h"
#define GETWORD(x) be16toh(x)
#define GETLONG(x) be32toh(x)
#define PUTWORD(x) htobe16(x)
#define PUTLONG(x) htobe32(x)
#define GETWORD(x) ntohs(x)
#define GETLONG(x) ntohl(x)
#define PUTWORD(x) htons(x)
#define PUTLONG(x) htonl(x)
/* Converts an SLINE value to an offset in the text section.
This definition is OK for ld 1.8, currently used on the Amiga AFAIK,