From b04169277f1710818e76825dd8ca4738cf21834f Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Fri, 11 Jan 2008 23:22:54 +0000 Subject: [PATCH] * config/xtensa/xtensa.c (override_options): Set flag_shlib. From-SVN: r131479 --- gcc/ChangeLog | 4 ++++ gcc/config/xtensa/xtensa.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b77162672a0e..a0d2cc3b697e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-01-11 Bob Wilson + + * config/xtensa/xtensa.c (override_options): Set flag_shlib. + 2008-01-09 Richard Guenther PR middle-end/34679 diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index efec76ddc24d..ee91eafc47d9 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -1579,6 +1579,8 @@ override_options (void) /* There's no need for -fPIC (as opposed to -fpic) on Xtensa. */ if (flag_pic > 1) flag_pic = 1; + if (flag_pic && !flag_pie) + flag_shlib = 1; /* Hot/cold partitioning does not work on this architecture, because of constant pools (the load instruction cannot necessarily reach that far). -- 2.47.2