Alpha Kernel ldscript problem

From: Jun Su <junsu_at_m-net.arbornet.org>
Date: Tue, 2 Mar 2004 06:08:59 -0500 (EST)
Hi All,

I got a chance to test my kern gcov path in an alpha machine.
I found a problem in ldscript.alpha. It only generates one section
with RWE flag. I tried to use the script to ld kmod. It is failed to
load for the error "too few section".

Any reason for this behavir? Or this is a bug?

Thanks,

Jun Su

Obtian from 
'readelf -a kernel'

Alpha Kernel:
===============
Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  PHDR           0x0000000000000040 0xfffffc0000300040 0xfffffc0000300040
                 0x00000000000000e0 0x00000000000000e0  R E    8
  INTERP         0x0000000000000158 0xfffffc0000300158 0xfffffc0000300158
                 0x000000000000000d 0x000000000000000d  R      1
      [Requesting program interpreter: /red/herring]
  LOAD           0x0000000000000000 0xfffffc0000300000 0xfffffc0000300000
                 0x00000000002d2970 0x000000000033f480  RWE    10000
  DYNAMIC        0x00000000002d2000 0xfffffc00005d2000 0xfffffc00005d2000
                 0x0000000000000100 0x0000000000000100  RW     8

i386 Kernel
==============
Program Headers:                                                             
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align    
  PHDR           0x000034 0xc0400034 0xc0400034 0x000a0 0x000a0 R E 0x4      
  INTERP         0x0000d4 0xc04000d4 0xc04000d4 0x0000d 0x0000d R   0x1      
      [Requesting program interpreter: /red/herring]                         
  LOAD           0x000000 0xc0400000 0xc0400000 0x1cf4ec 0x1cf4ec R E 0x1000 
  LOAD           0x1cf500 0xc05d0500 0xc05d0500 0x2266c 0x6c99c RW  0x1000   
  DYNAMIC        0x1f1b04 0xc05f2b04 0xc05f2b04 0x00068 0x00068 RW  0x4      
Received on Tue Mar 02 2004 - 02:06:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:45 UTC