From 0489a260da4e128eddedf38a2eec78ef5da80140 Mon Sep 17 00:00:00 2001 From: "Devon H. O'Dell" Date: Tue, 17 Nov 2009 08:20:58 -0800 Subject: FreeBSD-specific porting work. cgo/libmach remain unimplemented. However, compilers, runtime, and packages are 100%. I still need to go through and implement missing syscalls (at least make sure they're all listed), but for all shipped functionality, this is done. Ship! ;) R=rsc, VenkateshSrinivas https://golang.org/cl/152142 --- src/cmd/6l/obj.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cmd/6l/obj.c') diff --git a/src/cmd/6l/obj.c b/src/cmd/6l/obj.c index ffe93fce4d..63e2f95269 100644 --- a/src/cmd/6l/obj.c +++ b/src/cmd/6l/obj.c @@ -46,6 +46,7 @@ char* paramspace = "FP"; * -H5 -T0x80110000 -R4096 is ELF32 * -H6 -Tx -Rx is apple MH-exec * -H7 -Tx -Rx is linux elf-exec + * -H9 -Tx -Rx is FreeBSD elf-exec * * options used: 189BLQSWabcjlnpsvz */ @@ -149,6 +150,10 @@ main(int argc, char *argv[]) if(strcmp(goos, "darwin") == 0) HEADTYPE = 6; else + if(strcmp(goos, "freebsd") == 0) { + debug['d'] = 1; /* no dynamic syms for now */ + HEADTYPE = 9; + } else print("goos is not known: %s\n", goos); } @@ -194,6 +199,7 @@ main(int argc, char *argv[]) INITDAT = 0; break; case 7: /* elf64 executable */ + case 9: /* freebsd */ elfinit(); HEADR = ELFRESERVE; if(INITTEXT == -1) -- cgit v1.3-5-g9baa