Commit 5bf61d59 authored by John van Groningen's avatar John van Groningen
Browse files

on arm and thumb pass -no-pie to gcc if gcc has enabled default pie

parent 3443e9b6
Pipeline #49277 passed with stage
in 41 seconds
...@@ -3321,7 +3321,7 @@ static char **add_imported_object_files (P_NODE first_project_node,char *o_file_ ...@@ -3321,7 +3321,7 @@ static char **add_imported_object_files (P_NODE first_project_node,char *o_file_
return arg; return arg;
} }
# if defined (LINUX) && defined (A_64) && !defined (MACH_O64) # if defined (LINUX) && (defined (A_64) || defined (ARM) || defined (THUMB)) && !defined (MACH_O64)
int gcc_with_enable_default_pie (char *linker_file_name_p) int gcc_with_enable_default_pie (char *linker_file_name_p)
{ {
char *command; char *command;
...@@ -3641,7 +3641,7 @@ static int link_project (P_NODE first_project_node,char *options_file_name,char ...@@ -3641,7 +3641,7 @@ static int link_project (P_NODE first_project_node,char *options_file_name,char
#if !(defined (USE_WLINK) || defined (OMF) || defined (USE_CLEANLINKER)) #if !(defined (USE_WLINK) || defined (OMF) || defined (USE_CLEANLINKER))
if (remove_symbol_table) if (remove_symbol_table)
*arg++="-s"; *arg++="-s";
# if defined (LINUX) && defined (A_64) && !defined (MACH_O64) # if defined (LINUX) && (defined (A_64) || defined (ARM) || defined (THUMB)) && !defined (MACH_O64)
if (gcc_with_enable_default_pie (linker_file_name)) if (gcc_with_enable_default_pie (linker_file_name))
*arg++="-no-pie"; *arg++="-no-pie";
# endif # endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment