forked from OSchip/llvm-project
82 lines
2.9 KiB
Plaintext
82 lines
2.9 KiB
Plaintext
# This tests verifies that the value of _end symbol is point to the right value
|
|
RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/nmagic.o \
|
|
RUN: --noinhibit-exec -o %t --nmagic
|
|
RUN: llvm-readobj -symbols %t | FileCheck -check-prefix=NMAGICABSSYMBOLS %s
|
|
RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/nmagic.o \
|
|
RUN: --noinhibit-exec -o %t --omagic
|
|
RUN: llvm-readobj -symbols %t | FileCheck -check-prefix=OMAGICABSSYMBOLS %s
|
|
|
|
NMAGICABSSYMBOLS: Symbol {
|
|
NMAGICABSSYMBOLS: Name: __bss_start ({{[0-9]+}}
|
|
NMAGICABSSYMBOLS: Value: 0x40100C
|
|
NMAGICABSSYMBOLS: Size: 0
|
|
NMAGICABSSYMBOLS: Binding: Global (0x1)
|
|
NMAGICABSSYMBOLS: Type: Object (0x1)
|
|
NMAGICABSSYMBOLS: Other: 0
|
|
NMAGICABSSYMBOLS: Section: Absolute (0xFFF1)
|
|
NMAGICABSSYMBOLS: }
|
|
NMAGICABSSYMBOLS: Symbol {
|
|
NMAGICABSSYMBOLS: Name: __bss_end ({{[0-9]+}}
|
|
NMAGICABSSYMBOLS: Value: 0x40100C
|
|
NMAGICABSSYMBOLS: Size: 0
|
|
NMAGICABSSYMBOLS: Binding: Global (0x1)
|
|
NMAGICABSSYMBOLS: Type: Object (0x1)
|
|
NMAGICABSSYMBOLS: Other: 0
|
|
NMAGICABSSYMBOLS: Section: Absolute (0xFFF1)
|
|
NMAGICABSSYMBOLS: }
|
|
NMAGICABSSYMBOLS: Symbol {
|
|
NMAGICABSSYMBOLS: Name: _end ({{[0-9]+}}
|
|
NMAGICABSSYMBOLS: Value: 0x40100C
|
|
NMAGICABSSYMBOLS: Size: 0
|
|
NMAGICABSSYMBOLS: Binding: Global (0x1)
|
|
NMAGICABSSYMBOLS: Type: Object (0x1)
|
|
NMAGICABSSYMBOLS: Other: 0
|
|
NMAGICABSSYMBOLS: Section: Absolute (0xFFF1)
|
|
NMAGICABSSYMBOLS: }
|
|
NMAGICABSSYMBOLS: Symbol {
|
|
NMAGICABSSYMBOLS: Name: end ({{[0-9]+}}
|
|
NMAGICABSSYMBOLS: Value: 0x40100C
|
|
NMAGICABSSYMBOLS: Size: 0
|
|
NMAGICABSSYMBOLS: Binding: Global (0x1)
|
|
NMAGICABSSYMBOLS: Type: Object (0x1)
|
|
NMAGICABSSYMBOLS: Other: 0
|
|
NMAGICABSSYMBOLS: Section: Absolute (0xFFF1)
|
|
NMAGICABSSYMBOLS: }
|
|
|
|
OMAGICABSSYMBOLS: Symbol {
|
|
OMAGICABSSYMBOLS: Name: __bss_start ({{[0-9]+}})
|
|
OMAGICABSSYMBOLS: Value: 0x400144
|
|
OMAGICABSSYMBOLS: Size: 0
|
|
OMAGICABSSYMBOLS: Binding: Global (0x1)
|
|
OMAGICABSSYMBOLS: Type: Object (0x1)
|
|
OMAGICABSSYMBOLS: Other: 0
|
|
OMAGICABSSYMBOLS: Section: Absolute (0xFFF1)
|
|
OMAGICABSSYMBOLS: }
|
|
OMAGICABSSYMBOLS: Symbol {
|
|
OMAGICABSSYMBOLS: Name: __bss_end ({{[0-9]+}}
|
|
OMAGICABSSYMBOLS: Value: 0x400144
|
|
OMAGICABSSYMBOLS: Size: 0
|
|
OMAGICABSSYMBOLS: Binding: Global (0x1)
|
|
OMAGICABSSYMBOLS: Type: Object (0x1)
|
|
OMAGICABSSYMBOLS: Other: 0
|
|
OMAGICABSSYMBOLS: Section: Absolute (0xFFF1)
|
|
OMAGICABSSYMBOLS: }
|
|
OMAGICABSSYMBOLS: Symbol {
|
|
OMAGICABSSYMBOLS: Name: _end ({{[0-9]+}}
|
|
OMAGICABSSYMBOLS: Value: 0x400144
|
|
OMAGICABSSYMBOLS: Size: 0
|
|
OMAGICABSSYMBOLS: Binding: Global (0x1)
|
|
OMAGICABSSYMBOLS: Type: Object (0x1)
|
|
OMAGICABSSYMBOLS: Other: 0
|
|
OMAGICABSSYMBOLS: Section: Absolute (0xFFF1)
|
|
OMAGICABSSYMBOLS: }
|
|
OMAGICABSSYMBOLS: Symbol {
|
|
OMAGICABSSYMBOLS: Name: end ({{[0-9]+}}
|
|
OMAGICABSSYMBOLS: Value: 0x400144
|
|
OMAGICABSSYMBOLS: Size: 0
|
|
OMAGICABSSYMBOLS: Binding: Global (0x1)
|
|
OMAGICABSSYMBOLS: Type: Object (0x1)
|
|
OMAGICABSSYMBOLS: Other: 0
|
|
OMAGICABSSYMBOLS: Section: Absolute (0xFFF1)
|
|
OMAGICABSSYMBOLS: }
|