Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit dbb024c

Browse files
committed
[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
1 parent 2cb5d49 commit dbb024c

File tree

1 file changed

+1
-1
lines changed
  • libomptarget/plugins/generic-elf-64bit/src

1 file changed

+1
-1
lines changed

libomptarget/plugins/generic-elf-64bit/src/rtl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static int DebugLevel = 0;
5050
#include "../../common/elf_common.c"
5151

5252
#define NUMBER_OF_DEVICES 4
53-
#define OFFLOADSECTIONNAME ".omp_offloading.entries"
53+
#define OFFLOADSECTIONNAME "omp_offloading_entries"
5454

5555
/// Array of Dynamic libraries loaded for this target.
5656
struct DynLibTy {

0 commit comments

Comments
 (0)