diff options
author | Jiong Wang <jiong.wang@arm.com> | 2015-07-01 08:45:08 +0000 |
---|---|---|
committer | Jiong Wang <jiwang@gcc.gnu.org> | 2015-07-01 08:45:08 +0000 |
commit | 34ecdb0f20498d3cdde1a5be9614c2820cc4688f (patch) | |
tree | 88fa7395dc593ad418400dda519802a9345f60bd /gcc/config/aarch64/aarch64.c | |
parent | 1d628b1536253c8b18d1b800f287722a098a4dfe (diff) | |
download | gcc-34ecdb0f20498d3cdde1a5be9614c2820cc4688f.zip gcc-34ecdb0f20498d3cdde1a5be9614c2820cc4688f.tar.gz gcc-34ecdb0f20498d3cdde1a5be9614c2820cc4688f.tar.bz2 |
[AArch64] Fall back to -fPIC if no support of -fpic in binutils
2015-07-01 Jiong Wang <jiong.wang@arm.com>
* configure.ac: Add check for aarch64 assembler -fpic relocation
modifier support.
* configure: Regenerate.
* config.in: Regenerate.
* config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
to -fPIC if not support of -fpic relocation modifier in assembler.
From-SVN: r225231
Diffstat (limited to 'gcc/config/aarch64/aarch64.c')
-rw-r--r-- | gcc/config/aarch64/aarch64.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 0079c82..5d4dc83 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -7581,9 +7581,13 @@ initialize_aarch64_code_model (void) aarch64_cmodel = AARCH64_CMODEL_TINY_PIC; break; case AARCH64_CMODEL_SMALL: +#ifdef HAVE_AS_SMALL_PIC_RELOCS aarch64_cmodel = (flag_pic == 2 ? AARCH64_CMODEL_SMALL_PIC : AARCH64_CMODEL_SMALL_SPIC); +#else + aarch64_cmodel = AARCH64_CMODEL_SMALL_PIC; +#endif break; case AARCH64_CMODEL_LARGE: sorry ("code model %qs with -f%s", "large", |