2018-06-29 16:54:34 +08:00
|
|
|
// REQUIRES: x86
|
|
|
|
|
|
|
|
// RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t1.o
|
2018-07-03 01:48:23 +08:00
|
|
|
// RUN: ld.lld %t1.o -o /dev/null -M | FileCheck -strict-whitespace %s
|
2018-06-29 16:54:34 +08:00
|
|
|
|
|
|
|
.global _start
|
|
|
|
_start:
|
|
|
|
nop
|
|
|
|
|
Align AArch64 and i386 image base to superpage
Summary:
As for x86_64, the default image base for AArch64 and i386 should be
aligned to a superpage appropriate for the architecture.
On AArch64, this is 2 MiB, on i386 it is 4 MiB.
Reviewers: emaste, grimar, javed.absar, espindola, ruiu, peter.smith, srhines, rprichard
Reviewed By: ruiu, peter.smith
Subscribers: jfb, markj, arichardson, krytarowski, kristof.beyls, llvm-commits
Differential Revision: https://reviews.llvm.org/D50297
llvm-svn: 342746
2018-09-22 00:58:13 +08:00
|
|
|
// CHECK: VMA LMA Size Align Out In Symbol
|
2019-08-20 16:43:47 +08:00
|
|
|
// CHECK-NEXT: 4010b4 4010b4 1 4 .text
|
|
|
|
// CHECK-NEXT: 4010b4 4010b4 1 4 {{.*}}{{/|\\}}map-file-i686.s.tmp1.o:(.text)
|
|
|
|
// CHECK-NEXT: 4010b4 4010b4 0 1 _start
|
Align AArch64 and i386 image base to superpage
Summary:
As for x86_64, the default image base for AArch64 and i386 should be
aligned to a superpage appropriate for the architecture.
On AArch64, this is 2 MiB, on i386 it is 4 MiB.
Reviewers: emaste, grimar, javed.absar, espindola, ruiu, peter.smith, srhines, rprichard
Reviewed By: ruiu, peter.smith
Subscribers: jfb, markj, arichardson, krytarowski, kristof.beyls, llvm-commits
Differential Revision: https://reviews.llvm.org/D50297
llvm-svn: 342746
2018-09-22 00:58:13 +08:00
|
|
|
// CHECK-NEXT: 0 0 8 1 .comment
|
|
|
|
// CHECK-NEXT: 0 0 8 1 <internal>:(.comment)
|
|
|
|
// CHECK-NEXT: 0 0 20 4 .symtab
|
|
|
|
// CHECK-NEXT: 0 0 20 4 <internal>:(.symtab)
|
|
|
|
// CHECK-NEXT: 0 0 2a 1 .shstrtab
|
|
|
|
// CHECK-NEXT: 0 0 2a 1 <internal>:(.shstrtab)
|
|
|
|
// CHECK-NEXT: 0 0 8 1 .strtab
|
|
|
|
// CHECK-NEXT: 0 0 8 1 <internal>:(.strtab)
|