projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86: Suggest -fPIE when not building shared object
[external/binutils.git]
/
bfd
/
elfxx-x86.c
diff --git
a/bfd/elfxx-x86.c
b/bfd/elfxx-x86.c
index
e661ad3
..
78ed41a
100644
(file)
--- a/
bfd/elfxx-x86.c
+++ b/
bfd/elfxx-x86.c
@@
-1381,7
+1381,8
@@
_bfd_x86_elf_size_dynamic_sections (bfd *output_bfd,
{
info->callbacks->einfo
(_("%P%X: read-only segment has dynamic IFUNC relocations;"
- " recompile with -fPIC\n"));
+ " recompile with %s\n"),
+ bfd_link_dll (info) ? "-fPIC" : "-fPIE");
bfd_set_error (bfd_error_bad_value);
return FALSE;
}