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

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-20 15:52:07 
UTC ---
Something like this

---
diff --git a/ld/plugin.c b/ld/plugin.c
index 79b39e8..78815da 100644
--- a/ld/plugin.c
+++ b/ld/plugin.c
@@ -292,6 +292,9 @@ asymbol_from_plugin_symbol (bfd *abfd, asymbol *asym,
       flags = BSF_GLOBAL;
       section = bfd_com_section_ptr;
       asym->value = ldsym->size;
+      /* For ELF targets, set alignment of common symbol to 1.  */
+      if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
+    ((elf_symbol_type *) symbol)->internal_elf_sym.st_value = 1;
       break;

     default:
----

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to