lkml.org 
[lkml]   [1998]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectarch/alpha/Makefile, ld -N, bootp
It looks like there was a code cleanup of much arch/alpha stuff for
patch 2.1.116. One of these changes added "-N" to the LINKFLAGS used
for putting vmlinux together. With this option, the linker does not
page-align the segments in the file. The old way, without the "-N"
flag, sticks a bunch of zeroes in vmlinux whenever the loader map
specifies an alignment (like the 8k around the init sections).

Creating a "bootpfile" and using bootp to ship that across I find the
initial jump into start_kernel (init/main.c) from __start (arch/alpha/
kernel/head.S) misses since the GOT tables are not where they should be
in memory.

Having removed the "-N", though, my kernels grow in size about 80kB
(on 2.5MB). Hopefully everybody will be willing to suffer this to allow
bootp to work? I apply the following patch now to a stock 2.1.119.

-- Pete

su2sn% diff -ru linux/arch/alpha/Makefile{.orig,}
--- linux/arch/alpha/Makefile.orig Sun Aug 9 12:09:05 1998
+++ linux/arch/alpha/Makefile Fri Sep 4 17:07:14 1998
@@ -10,7 +10,8 @@

NM := nm -B

-LINKFLAGS = -static -T arch/alpha/vmlinux.lds -N
+# removed -N else sections aren't aligned in file, and bootp fails --pw
+LINKFLAGS = -static -T arch/alpha/vmlinux.lds
CFLAGS := $(CFLAGS) -pipe -mno-fp-regs -ffixed-8

# Determine if we can use the BWX instructions with GAS.
---------------------------------------------
Pete Wyckoff | wyckoff@ca.sandia.gov
Sandia National Labs | 925 294 3503 (voice)
MS 9011, P.O. Box 969 | 925 294 1225 (fax)
Livermore, CA 94551 |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html

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