[lld] r257906 - Remove out of bounds reloc from reduced file.

Pete Cooper via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 15 09:25:12 PST 2016


Author: pete
Date: Fri Jan 15 11:25:12 2016
New Revision: 257906

URL: http://llvm.org/viewvc/llvm-project?rev=257906&view=rev
Log:
Remove out of bounds reloc from reduced file.

This file was failing to build with asan enabled.  The reason being that
applyFixupFinal was writing 4-bytes worth of fixup in to an atom only
a single byte in length.

The test case didn't actually need this particular reloc so i've removed
it, although i'll follow up with future commits to actually verify that
relocs are to an address with enough space for the fixup to be applied.

Modified:
    lld/trunk/test/mach-o/unwind-info-simple-x86_64.yaml

Modified: lld/trunk/test/mach-o/unwind-info-simple-x86_64.yaml
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/mach-o/unwind-info-simple-x86_64.yaml?rev=257906&r1=257905&r2=257906&view=diff
==============================================================================
--- lld/trunk/test/mach-o/unwind-info-simple-x86_64.yaml (original)
+++ lld/trunk/test/mach-o/unwind-info-simple-x86_64.yaml Fri Jan 15 11:25:12 2016
@@ -117,10 +117,6 @@ defined-atoms:
   - name:            _main
     scope:           global
     content:         [ C3 ]
-    references:
-      - kind:            branch32
-        offset:          9
-        target:          __Z3barv
   - name:            _needsDwarfButNoCompactUnwind
     scope:           global
     content:         [ C3 ]




More information about the llvm-commits mailing list