[PATCH] D105217: [LLD] Adding support for RELA for CG Profile.

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 9 12:50:00 PDT 2021


MaskRay added inline comments.


================
Comment at: lld/test/ELF/cgprofile-rela-obj.test:4
+# RUN: yaml2obj %s -o %t.o
+# RUN: ld.lld -e A %t.o -o %t
+# RUN: llvm-nm --no-sort %t | FileCheck %s
----------------
ayermolo wrote:
> jhenderson wrote:
> > You don't need to specify the entry point explicitly. If you really want to suppress the warning, I'd just rename one of the symbols to `_start`.
> Hmm. Even with that still got warning: cannot find entry symbol _start; defaulting to 0x201120
> Was probably doing something wrong. Just left as Aa.
`_start` needs to be non-local. You can find the pattern in other tests.

```
.globl _start
_start:
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105217/new/

https://reviews.llvm.org/D105217



More information about the llvm-commits mailing list