mirror of
https://frontier.innolan.net/github/amigaos-cross-toolchain6.git
synced 2024-10-19 10:29:55 +00:00
Fix tools compilation. GccFindHit works.
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
CC = gcc
|
CC = gcc -m32
|
||||||
CFLAGS = -O2 -Wall -I../target/include
|
CFLAGS = -O2 -Wall -I../target/include
|
||||||
|
|
||||||
BINS = GccFindHit hunk2aout
|
BINS = GccFindHit hunk2aout
|
||||||
|
|||||||
+5
-5
@@ -7,15 +7,15 @@
|
|||||||
#ifndef _DEFS_H_
|
#ifndef _DEFS_H_
|
||||||
#define _DEFS_H_
|
#define _DEFS_H_
|
||||||
|
|
||||||
#include <endian.h>
|
#include <arpa/inet.h>
|
||||||
#include <dos/doshunks.h>
|
#include <dos/doshunks.h>
|
||||||
|
|
||||||
#include "a.out.h"
|
#include "a.out.h"
|
||||||
|
|
||||||
#define GETWORD(x) be16toh(x)
|
#define GETWORD(x) ntohs(x)
|
||||||
#define GETLONG(x) be32toh(x)
|
#define GETLONG(x) ntohl(x)
|
||||||
#define PUTWORD(x) htobe16(x)
|
#define PUTWORD(x) htons(x)
|
||||||
#define PUTLONG(x) htobe32(x)
|
#define PUTLONG(x) htonl(x)
|
||||||
|
|
||||||
/* Converts an SLINE value to an offset in the text section.
|
/* 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,
|
This definition is OK for ld 1.8, currently used on the Amiga AFAIK,
|
||||||
|
|||||||
Reference in New Issue
Block a user