lkml.org 
[lkml]   [1996]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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 @@
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




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