* symbols.c (symbol_create, symbol_clone): Don't set udata.p.
authorAlan Modra <amodra@gmail.com>
Wed, 8 Nov 2006 06:31:39 +0000 (06:31 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 8 Nov 2006 06:31:39 +0000 (06:31 +0000)
gas/ChangeLog
gas/symbols.c

index dd41b91524ac6c39831f71d4b67a7c6168fe57f8..cfdef0528c8eaa7bfd41fe83c17c2321276b7099 100644 (file)
@@ -1,3 +1,7 @@
+2006-11-08  Alan Modra  <amodra@bigpond.net.au>
+
+       * symbols.c (symbol_create, symbol_clone): Don't set udata.p.
+
 2006-11-06  David Daney  <ddaney@avtrex.com>
 
        * config/tc-mips.c (pic_need_relax): Return true for section symbols.
index bd4745083efd881ac392aea074a55cd535e31fe4..dccc46af9239df127ff8edfd742800d296c527c7 100644 (file)
@@ -145,7 +145,6 @@ symbol_create (const char *name, /* It is copied, the caller can destroy/modify.
   symbolP->bsym = bfd_make_empty_symbol (stdoutput);
   if (symbolP->bsym == NULL)
     as_fatal ("bfd_make_empty_symbol: %s", bfd_errmsg (bfd_get_error ()));
-  symbolP->bsym->udata.p = (PTR) symbolP;
   S_SET_NAME (symbolP, preserved_copy_of_name);
 
   S_SET_SEGMENT (symbolP, segment);
@@ -575,7 +574,6 @@ symbol_clone (symbolS *orgsymP, int replace)
   bsymnew->name = bsymorg->name;
   bsymnew->flags =  bsymorg->flags;
   bsymnew->section =  bsymorg->section;
-  bsymnew->udata.p = (PTR) newsymP;
   bfd_copy_private_symbol_data (bfd_asymbol_bfd (bsymorg), bsymorg,
                                bfd_asymbol_bfd (bsymnew), bsymnew);