MC/Mach-O: Fix some differences in symbol flag handling.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 17 May 2010 20:12:31 +0000 (20:12 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 17 May 2010 20:12:31 +0000 (20:12 +0000)
commitb18d2dd115d8ff3fd75bbaa90849473266236dc3
tree39bf1c3197f91f77ac4bf8b0dc928c1ee98dbf31
parentb843d9f833aa474ae700363a445b7409665c4a6e
MC/Mach-O: Fix some differences in symbol flag handling.
 - Don't clear weak reference flag, 'as' was only "trying" to do this, it wasn't
   actually succeeding.
 - Clear the "lazy bound" bit when we mark something external. This corresponds
   roughly to the lazy clearing of the bit that 'as' implements in
   symbol_table_lookup.
 - The exact meaning of these flags appears pretty loose, since 'as' isn't very
   consistent. For now we just try to match 'as', we will clean this up one day
   hopefully.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103964 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCMachOStreamer.cpp
test/MC/MachO/symbol-flags.s