Bug 13935

Summary: Improper relocation of segments from ld-script
Product: [Retired] Red Hat Linux Reporter: Norm Dresner <ndrez>
Component: modutilsAssignee: Michael K. Johnson <johnsonm>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-07-14 13:33:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.