------- 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 <[EMAIL PROTECTED]>
* 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.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils