GCC Middle and Back End API Reference
lto-section-names.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LTO_SECTION_NAME_PREFIX   ".gnu.lto_"
 
#define OFFLOAD_SECTION_NAME_PREFIX   ".gnu.offload_lto_"
 
#define LTO_SEGMENT_NAME   "__GNU_LTO"
 
#define OFFLOAD_VAR_TABLE_SECTION_NAME   ".gnu.offload_vars"
 
#define OFFLOAD_FUNC_TABLE_SECTION_NAME   ".gnu.offload_funcs"
 
#define OFFLOAD_IND_FUNC_TABLE_SECTION_NAME   ".gnu.offload_ind_funcs"
 

Variables

const char * section_name_prefix
 

Macro Definition Documentation

◆ LTO_SECTION_NAME_PREFIX

#define LTO_SECTION_NAME_PREFIX   ".gnu.lto_"
Definitions for LTO section names.
   Copyright (C) 2013-2024 Free Software Foundation, Inc.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
The string that is the prefix on the section names we make for lto.
For decls the DECL_ASSEMBLER_NAME is appended to make the section
name for the functions and static_initializers.  For other types of
sections a '.' and the section type are appended.   

Referenced by has_lto_section(), ipa_passes(), and run_gcc().

◆ LTO_SEGMENT_NAME

#define LTO_SEGMENT_NAME   "__GNU_LTO"
Segment name for LTO sections.  This is only used for Mach-O.   

Referenced by is_lto_object_file().

◆ OFFLOAD_FUNC_TABLE_SECTION_NAME

#define OFFLOAD_FUNC_TABLE_SECTION_NAME   ".gnu.offload_funcs"

Referenced by omp_finish_file().

◆ OFFLOAD_IND_FUNC_TABLE_SECTION_NAME

#define OFFLOAD_IND_FUNC_TABLE_SECTION_NAME   ".gnu.offload_ind_funcs"

Referenced by omp_finish_file().

◆ OFFLOAD_SECTION_NAME_PREFIX

#define OFFLOAD_SECTION_NAME_PREFIX   ".gnu.offload_lto_"

◆ OFFLOAD_VAR_TABLE_SECTION_NAME

#define OFFLOAD_VAR_TABLE_SECTION_NAME   ".gnu.offload_vars"

Referenced by omp_finish_file().

Variable Documentation

◆ section_name_prefix

const char* section_name_prefix
extern
Can be either OFFLOAD_SECTION_NAME_PREFIX when we stream IR for offload
compiler, or LTO_SECTION_NAME_PREFIX for LTO case.   

Referenced by ipa_passes(), and lto_get_section_name().