[PATCH] D29273: [ELF] - Added partial support for --emit-relocs (no --gc-section case)

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 30 11:15:21 PST 2017


> Index: test/ELF/emit-relocs-gc.s
> ===================================================================
> --- test/ELF/emit-relocs-gc.s
> +++ test/ELF/emit-relocs-gc.s
> @@ -0,0 +1,5 @@
> +# REQUIRES: x86
> +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
> +# RUN: not ld.lld --gc-sections --emit-relocs %t1.o -o %t 2>&1 \
> +# RUN:    | FileCheck -check-prefix=ERR %s
> +# ERR: --emit-relocs and --gc-sections may not be used together

This is for the next patch, no?



More information about the llvm-commits mailing list