diff options
| author | mrg <mrg@NetBSD.org> | 2008-10-13 22:36:55 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2008-10-13 22:36:55 +0000 |
| commit | 6fa3737bb8e61dcc032d030977c29cadd6eb7570 (patch) | |
| tree | 2fd09641dc52b6ed7d502c01351de270f2fdfd93 /gnu/usr.bin/binutils/ld/xldscripts | |
| parent | 5ca4322ceae246f06a82be75d1a44d7e59bb0e09 (diff) | |
since the Makefile creates stuff in (objdir) ./ldscripts/ and then
later deletes it, move the kmodule ldscript into 'xldscripts' and
deal with it from there.
fixes build issues where src/gnu/usr.bin/binutils/ld/ldscripts went
missing as reported by at least 2 people so far.
Diffstat (limited to 'gnu/usr.bin/binutils/ld/xldscripts')
| -rw-r--r-- | gnu/usr.bin/binutils/ld/xldscripts/Makefile | 12 | ||||
| -rw-r--r-- | gnu/usr.bin/binutils/ld/xldscripts/kmodule | 19 |
2 files changed, 31 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/ld/xldscripts/Makefile b/gnu/usr.bin/binutils/ld/xldscripts/Makefile new file mode 100644 index 00000000000..2e3361b6015 --- /dev/null +++ b/gnu/usr.bin/binutils/ld/xldscripts/Makefile @@ -0,0 +1,12 @@ +# $NetBSD: Makefile,v 1.1 2008/10/13 22:36:55 mrg Exp $ + +NOOBJ= # defined + +.include <bsd.own.mk> + +.if ${MKSHARE} != "no" +FILES= kmodule +FILESDIR=/usr/libdata/ldscripts +.endif + +.include <bsd.prog.mk> diff --git a/gnu/usr.bin/binutils/ld/xldscripts/kmodule b/gnu/usr.bin/binutils/ld/xldscripts/kmodule new file mode 100644 index 00000000000..464cc1daa81 --- /dev/null +++ b/gnu/usr.bin/binutils/ld/xldscripts/kmodule @@ -0,0 +1,19 @@ +/* $NetBSD: kmodule,v 1.1 2008/10/13 22:36:55 mrg Exp $ */ + +SECTIONS +{ + /* Pre-loaded modules must have merged BSS and data. */ + .data 0 : + { + *(.data) + *(.data.*) + *(.bss) + *(.bss.*) + *(COMMON) + } + /* Pre-loaded modules do not need the following. */ + /DISCARD/ : + { + *(.comment) + } +} |
