[lkml]   [1996]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectLinux 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 @@
-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
Alex Kiernan -
HiSoft Systems, The Old School, Greenfield, Bedford, MK45 5DE, UK Tel: +44 1525 718181 Fax: +44 1525 713716

 \ /
  Last update: 2005-03-22 13:37    [W:2.370 / U:0.988 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site