Messages in this thread Patch in this message |  | | Date | Thu, 25 Jul 1996 11:44:05 +0100 (BST) | From | Alex Kiernan <> | Subject | Linux 2.0.8 build w/o encaps |
| |
I noticed 2.0.8 added support for building without modified binutils/encaps (a major boon for me, the box I build kernel's on main job in life is cross-compiling for H8/300H & SH-1 - saves me having to be ultra careful when playing with binutils stuff), it nearly works, but leaves the .stab sections in (which I guess the loader then tries to execute); this patch fixed it for me:
diff --recursive --unified linux-2.0.8/arch/i386/Makefile linux/arch/i386/Makefile --- linux-2.0.8/arch/i386/Makefile Mon Jul 22 09:34:45 1996 +++ linux/arch/i386/Makefile Thu Jul 25 10:07:57 1996 @@ -40,7 +40,7 @@ OBJDUMP=$(CROSS_COMPILE)objdump OBJDUMP_FLAGS=-k -q ENCAPS=$(CROSS_COMPILE)encaps -OBJCOPY=$(CROSS_COMPILE)objcopy -O binary -R .note -R .comment +OBJCOPY=$(CROSS_COMPILE)objcopy -O binary -R .note -R .comment -R .stab -R .stabstr ZLDFLAGS=-e startup_32 LDFLAGS=-e stext ZIMAGE_OFFSET=0x1000 -- Alex Kiernan - alex@hisoft.co.uk HiSoft Systems, The Old School, Greenfield, Bedford, MK45 5DE, UK http://www.hisoft.co.uk Tel: +44 1525 718181 Fax: +44 1525 713716
|  |