gas:
authorIain Sandoe <iain@codesourcery.com>
Sun, 12 Feb 2012 15:47:17 +0000 (15:47 +0000)
committerIain Sandoe <iain@codesourcery.com>
Sun, 12 Feb 2012 15:47:17 +0000 (15:47 +0000)
* config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
any local symbol used as an indirect.

gas/ChangeLog
gas/config/obj-macho.c

index 757db70e7691752e2f61db64585042c6aa90db1b..d8a95ee9ce30ade035c20f3fb777ee48f3ba89c7 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-12  Iain Sandoe  <idsandoe@googlemail.com>
+
+       * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
+       any local symbol used as an indirect.
+
 2012-02-10  Iain Sandoe  <idsandoe@googlemail.com>
 
        * config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
index c32398ffddd6e5501bd4f014148768b09af81184..2a2e47d442c33ae9a48a3ba3ce4897002342e5c2 100644 (file)
@@ -1187,6 +1187,11 @@ obj_mach_o_indirect_symbol (int arg ATTRIBUTE_UNUSED)
          }
          *input_line_pointer = c;
 
+         /* The indirect symbols are validated after the symbol table is 
+            frozen, we must make sure that if a local symbol is used as an 
+            indirect, it is promoted to a 'real' one.  Fetching the bfd sym
+            achieves this.  */
+         symbol_get_bfdsym (sym);
          isym = (obj_mach_o_indirect_sym *)
                        xmalloc (sizeof (obj_mach_o_indirect_sym));
 
This page took 0.024893 seconds and 4 git commands to generate.