lkml.org 
[lkml]   [2007]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: WARNING: Absolute relocations present
On Fri, Dec 22, 2006 at 03:33:12PM +0100, Thomas Meyer wrote:
> More warnings on current git head:
>
> OBJCOPY arch/i386/boot/compressed/vmlinux.bin
> RELOCS arch/i386/boot/compressed/vmlinux.relocs
> WARNING: Absolute relocations present
> Offset Info Type Sym.Value Sym.Name
> c0107bd7 00636601 R_386_32 c034f000 __smp_alt_instructions
> c0107bff 00622301 R_386_32 c034f000 __smp_alt_instructions_end
> c0107c68 00622301 R_386_32 c034f000 __smp_alt_instructions_end
> c0107c6d 00636601 R_386_32 c034f000 __smp_alt_instructions
> c01365aa 004aba01 R_386_32 c030ef3c __stop___ksymtab_gpl_future
> c01365af 0053a101 R_386_32 c030ef3c __start___ksymtab_gpl_future
> c01365e6 0053a101 R_386_32 c030ef3c __start___ksymtab_gpl_future
> c01365ed 004aad01 R_386_32 c0311d38 __start___kcrctab_gpl_future
> c01365f4 00486d01 R_386_32 c030ef3c __stop___ksymtab_unused
> c01365f9 004b6601 R_386_32 c030ef3c __start___ksymtab_unused
> c0136614 004b6601 R_386_32 c030ef3c __start___ksymtab_unused
> c013661b 004c4d01 R_386_32 c0311d38 __start___kcrctab_unused
> and so on...
>
> Should i ignore these warnings, too?
>

Hi Thomas,

What's your ld version. I don't remember but some particular versions
of ld will have this problem. These ld versions do some optimizations
and if a section size is zero then linker gets rid of that section and
any symbol defined w.r.t removed section, ld makes that symbol absolute
instead of section relative. That's why you see above warnings.

I had raised this issue on binutils mailing list and they fixed it.

http://sourceware.org/ml/binutils/2006-09/msg00305.html

I am using following ld version and it works fine for me.

GNU ld version 2.17.50.0.6-2.el5 20061020

So you will have to move to the latest ld version and problem should be
resolved.

> I have to ignore a lot of warnings on the current linux tree...
>

These warnings will not impact booting of your kernel as long as you
are running the kernel from its compiled address. It will run into
issues only if this kernel is loaded and run from an arbitrary address.

I think as of today, only kexec bootloader has been modified to load
the bzImage at some other arbitratary address. Grub and lilo will still
load it at 1MB so it should work fine.

Thanks
Vivek
-
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/

\
 
 \ /
  Last update: 2007-01-03 06:55    [W:0.060 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site