diff options
author | Sergey Dmitriev <serguei.n.dmitriev@intel.com> | 2019-09-27 20:00:51 +0000 |
---|---|---|
committer | Sergey Dmitriev <serguei.n.dmitriev@intel.com> | 2019-09-27 20:00:51 +0000 |
commit | dbb024cf94e6a7603ac0484be3c44d2f29eeceb6 (patch) | |
tree | 0997c6cc14be0d337ed58eeef97879e62104bbee | |
parent | 2cb5d49f712a6c4c502ab4f155acf72d86bc604f (diff) |
[Clang][OpenMP Offload] Create start/end symbols for the offloading entry table with a help of a linker
Linker automatically provides __start_<section name> and __stop_<section name> symbols to satisfy unresolved references if <section name> is representable as a C identifier (see https://sourceware.org/binutils/docs/ld/Input-Section-Example.html for details). These symbols indicate the start address and end address of the output section respectively. Therefore, renaming OpenMP offload entries section name from ".omp.offloading_entries" to "omp_offloading_entries" to use this feature.
This is the first part of the patch for eliminating OpenMP linker script (please see https://reviews.llvm.org/D64943).
Differential Revision: https://reviews.llvm.org/D68070
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@373118 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | libomptarget/plugins/generic-elf-64bit/src/rtl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libomptarget/plugins/generic-elf-64bit/src/rtl.cpp b/libomptarget/plugins/generic-elf-64bit/src/rtl.cpp index 4648e51..00e58d8 100644 --- a/libomptarget/plugins/generic-elf-64bit/src/rtl.cpp +++ b/libomptarget/plugins/generic-elf-64bit/src/rtl.cpp @@ -50,7 +50,7 @@ static int DebugLevel = 0; #include "../../common/elf_common.c" #define NUMBER_OF_DEVICES 4 -#define OFFLOADSECTIONNAME ".omp_offloading.entries" +#define OFFLOADSECTIONNAME "omp_offloading_entries" /// Array of Dynamic libraries loaded for this target. struct DynLibTy { |