[Bug gold/13857] WARNING: Absolute relocations present compiling Linux kernel using -Wl,--icf=safe

2012-03-16 Thread doctorwhoguy at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13857

--- Comment #1 from Patrick McMunn doctorwhoguy at gmail dot com 2012-03-16 
14:48:06 UTC ---
Correction: I thought -Wl,--icf=safe was the cause of the trouble, but I was
wrong. I falsely thought so because I failed to make clean before recompiling
the kernel. After a make clean I removed all custom linker flags from the
Makefile and recompiled with Gold and still got the error. I then ran another
make clean and changed my default linker to ld.bfd and recompiled and the error
disappeared.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/13857] New: WARNING: Absolute relocations present compiling Linux kernel using -Wl,--icf=safe

2012-03-15 Thread doctorwhoguy at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13857

 Bug #: 13857
   Summary: WARNING: Absolute relocations present compiling
Linux kernel using -Wl,--icf=safe
   Product: binutils
   Version: 2.22
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
AssignedTo: i...@airs.com
ReportedBy: doctorwho...@gmail.com
CC: ccout...@google.com
Classification: Unclassified


I compiled Linux kernel 3.2.9 with Gentoo and CK patches and used the Gold
linker 1.11 from binutils 2.22. I added additional linker flags to the Makefile
including -Wl,--icf=safe. After compiling, I saw the error message:

WARNING: Absolute relocations present
Offset Info Type Sym.Value Sym.Name
c1029fa2 00950401   R_386_32 c15fe000  __init_end
c1029fa7 00950501   R_386_32 c159  __init_begin
c102a16b 00950401   R_386_32 c15fe000  __init_end
c1595bcd 00916701   R_386_32 c15fe000  __smp_locks_end
c1595bd2 00916801   R_386_32 c15fe000  __smp_locks
c15a098a 00950401   R_386_32 c15fe000  __init_end
c15a0990 00950501   R_386_32 c159  __init_begin
c15a0a5f 00950401   R_386_32 c15fe000  __init_end
c15a0a67 00950501   R_386_32 c159  __init_begin
c142fd48 009d0001   R_386_32 c15314b0  __start___ksymtab_gpl_future
c142fd4c 009d0101   R_386_32 c15314b0  __stop___ksymtab_gpl_future
c142fd50 009d0201   R_386_32 c1536640  __start___kcrctab_gpl_future

I removed -Wl,--icf=safe and recompiled and did not receive the error again.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils