bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/6407] linux kernel linked with gold fails to boot


From: kris dot van dot hees at oracle dot com
Subject: [Bug gold/6407] linux kernel linked with gold fails to boot
Date: 29 May 2008 20:54:45 -0000

------- Additional Comments From kris dot van dot hees at oracle dot com  
2008-05-29 20:54 -------
Patch posted to the mailing list:
http://sourceware.org/ml/binutils/2008-05/msg00248.html

2008-05-29  Kris Van Hees  <address@hidden>

        * target-reloc.h (relocate_for_relocatable): Fix new_offset calculation.

--- binutils-head/gold/target-reloc.h-old       2008-05-29 16:20:54.000000000 
-0400
+++ binutils-head/gold/target-reloc.h   2008-05-29 16:09:48.000000000 -0400
@@ -542,7 +542,11 @@
       // In an executable or dynamic object, generated by
       // --emit-relocs, r_offset is an absolute address.
       if (!parameters->options().relocatable())
-       new_offset += view_address;
+       {
+         new_offset += view_address;
+         if (offset_in_output_section != -1)
+           new_offset -= offset_in_output_section;
+       }
 
       reloc_write.put_r_offset(new_offset);
       reloc_write.put_r_info(elfcpp::elf_r_info<size>(new_symndx, r_type));

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6407

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]