[lld] r319385 - Fix reloc section alignment in test.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 15:39:13 PST 2017


Author: rafael
Date: Wed Nov 29 15:39:12 2017
New Revision: 319385

URL: http://llvm.org/viewvc/llvm-project?rev=319385&view=rev
Log:
Fix reloc section alignment in test.

This should fix the ubsan bot.

We still have to fix lld to produce a clean error on unaligned reloc
sections.

Modified:
    lld/trunk/test/ELF/undef-broken-debug.test

Modified: lld/trunk/test/ELF/undef-broken-debug.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/undef-broken-debug.test?rev=319385&r1=319384&r2=319385&view=diff
==============================================================================
--- lld/trunk/test/ELF/undef-broken-debug.test (original)
+++ lld/trunk/test/ELF/undef-broken-debug.test Wed Nov 29 15:39:12 2017
@@ -20,6 +20,7 @@ Sections:
     Content:         '0000000000000000'
   - Name:            .rela.text
     Type:            SHT_RELA
+    AddressAlign:    8
     Link:            .symtab
     Info:            .text
     Relocations:
@@ -30,6 +31,7 @@ Sections:
     Type:            SHT_PROGBITS
     Content:         3300000002001C0000000101FB0E0D000101010100000001000001006162632E7300000000000009020000000000000000140208000101
   - Name:            .rela.debug_line
+    AddressAlign:    8
     Type:            SHT_RELA
     Link:            .symtab
     Info:            .debug_line




More information about the llvm-commits mailing list