[PATCH][2.6-mm] 4/4 linker error (overlapping sections)
From: Zwane Mwaikambo (zwane_at_linuxpower.ca)
Date: 08/31/03
- Previous message: Dan Kegel: "LMbench as gcc performance regression test?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 31 Aug 2003 03:21:04 -0400 (EDT) To: Linux Kernel <linux-kernel@vger.kernel.org>
I got this on a NUMAQ 32way/32G kernel build with an external patch, i
had to bump the PAGE_SIZE multiple (which is currently 2) to fix it, but
how does this patch look instead?
ld: section __ex_table [022cd000 -> 022cd207] overlaps section .entry.text [022cb000 -> 022cdfdf]
ld: section .rodata [022cd220 -> 02314f61] overlaps section .entry.text [022cb000 -> 022cdfdf]
The resultant image is the same (checked with objdump -t before and
after) and compiles with my patch too.
02562000 g *ABS* 00000000 __entry_tramp_start
0256373c g *ABS* 00000000 __entry_tramp_end
02564000 g *ABS* 00000000 _etext
02564000 l d __ex_table 00000000
02564178 g *ABS* 00000000 __stop___ex_table
02564000 g *ABS* 00000000 __start___ex_table
Index: linux-2.6.0-test4-mm4/arch/i386/kernel/vmlinux.lds.S
===================================================================
RCS file: /build/cvsroot/linux-2.6.0-test4-mm4/arch/i386/kernel/vmlinux.lds.S,v
retrieving revision 1.2
diff -u -p -B -r1.2 vmlinux.lds.S
--- linux-2.6.0-test4-mm4/arch/i386/kernel/vmlinux.lds.S 31 Aug 2003 03:29:45 -0000 1.2
+++ linux-2.6.0-test4-mm4/arch/i386/kernel/vmlinux.lds.S 31 Aug 2003 06:06:03 -0000
@@ -29,7 +29,8 @@ SECTIONS
__start___entry_text = .;
.entry.text : AT (__entry_tramp_start) { *(.entry.text) }
__entry_tramp_end = __entry_tramp_start + SIZEOF(.entry.text);
- . = __entry_tramp_start + 2*PAGE_SIZE_asm;
+ . = __entry_tramp_end;
+ . = ALIGN(PAGE_SIZE_asm);
#else
.entry.text : { *(.entry.text) }
#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Dan Kegel: "LMbench as gcc performance regression test?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: BIOS overwritten during resume (was: Re: Asus L5D resume on battery power)
... >> and you probably need to fix those, ... I think I'll just port the
Nigel's patch to x86-64. ... People were complaining that M$ turns users into beta-testers...
... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: [PATCH] fix readahead breakage for sequential after random reads
... > yes I will run all my standard testsuites before we take this patch. ...
I have also enclosed a patch that partially backs off Miklos's fix. ... ra->average
value to max/2 when we move from readahead-off mode to ... send the line "unsubscribe
linux-kernel" in ... (Linux-Kernel) - Re: IA32 - 27 New warnings
... > | needed to confirm the patch and preferably some brave soul with Promise ...
> Bart has already posted patches for this. ... I'm off looking for more resonably simple
stuff to fix. ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - 2.6.0-test7 byteorder.h ( as you go AGAIN! )
... seen many patches to attempt to fix this issue. ... Attached is my proposed
patch to correct this error. ... all Linux CD-ROM application programs will use this
... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: ALPS psmouse_reset on reconnect confusing Tecra M2
... > It's hard to believe your patch ... > can fix it, because the
ALPS_DUALPOINT constant doesn't affect the ... > initalization behavior at all, only
the way how TouchPoint data are ... send the line "unsubscribe linux-kernel" in ...
(Linux-Kernel)