Bug 13935 - Improper relocation of segments from ld-script
Summary: Improper relocation of segments from ld-script
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: modutils   
(Show other bugs)
Version: 5.2
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Michael K. Johnson
QA Contact:
Depends On:
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:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-07-14 13:33:03 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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.