Bug 13935 - Improper relocation of segments from ld-script
Summary: Improper relocation of segments from ld-script
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: modutils
Version: 5.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Michael K. Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-07-14 13:33 UTC by Norm Dresner
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-07-14 13:33:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Norm Dresner 2000-07-14 13:33:02 UTC
I used the gcc-directive __attribute__ to assign an array to a new segment 
and an script with 'ld -r' to specify that this segment is to be located 
(but not loaded) at address 0x000D0000 (on the ISA-bus).  Using objdump I 
verified that the headers and compiled code in both the individual module 
and the "link" were correct in referencing a segment at the address I 
spercified.  When insmod loads this module it does not relocate this 
segment but simply assigns it to the next sequential address.  To verify 
that the compilation and linker-script were correct I created a module of 
stubs to satisfy the external references to kernel-globals and linked it 
without the '-r' option.  Examination of this module shows that references 
to the array were correct.  The exact version of modutils is 2.1.85-9

Comment 1 Bill Nottingham 2002-07-23 20:22:19 UTC
Apologies for the delay. This sort of issue is probably best handled upstream.


Note You need to log in before you can comment on or make changes to this bug.