Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 2004 06:08:59 -0500 (EST)
From:      Jun Su <junsu@m-net.arbornet.org>
To:        current@freebsd.org, alpha@freebsd.org
Cc:        junsu@delphij.net
Subject:   Alpha Kernel ldscript problem
Message-ID:  <200403021108.i22B8xn3059787@m-net.arbornet.org>

next in thread | raw e-mail | index | archive | help
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      



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403021108.i22B8xn3059787>