155d3e43ff
not page aligned. To do this, use the ld script gnu ld installs on my system. This is imperfect: LDFLAGS_BIN and LD_FLAGS_BIN describe different things. The loader script could be better named and take into account other architectures. And having two different mechanisms to do basically the same thing needs study. However, it's blocking forward progress on lld, so I'll work in parallel to sort these out. Differential Revision: https://reviews.freebsd.org/D7409 Reviewed by: emaste
12 lines
324 B
Plaintext
12 lines
324 B
Plaintext
/* $FreeBSD$ */
|
|
/* Merge text, data and bss together almost no padding */
|
|
OUTPUT_FORMAT("elf32-i386-freebsd")
|
|
OUTPUT_ARCH(i386)
|
|
ENTRY(_start)
|
|
SECTIONS {
|
|
. = 0x08048000 + SIZEOF_HEADERS;
|
|
.text : { *(.text) } =0x90909090 /* Pad with nops, if needed */
|
|
.data : { *(.data) } _edata = .;
|
|
.bss : { *(.bss) } _end = .;
|
|
}
|