20 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-error.s -o %tabs3// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t4 5// We have some code in error reporting to check that6// section belongs to the output section. Without that7// check, the linker would crash, so it is useful to test it.8// And the easy way to do that is to trigger GC. That way .text.dumb9// be collected and mentioned check will execute.10 11// RUN: not ld.lld -gc-sections -shared %tabs %t -o /dev/null12 13.section .text.dumb,"ax"14 nop15 16.section .text,"ax"17.globl _start18_start:19 movl $big, %edx20