blob: 706dbe5aa36c2bb0a8225a119f068304278e81a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Fix textrels on -rdynamic binaries:
Bug: https://gcc.gnu.org/PR84553
Bug: https://bugs.gentoo.org/566118
--- a/gcc/config/ia64/ia64.c
+++ a/gcc/config/ia64/ia64.c
@@ -10838,12 +10838,14 @@ ia64_hpux_reloc_rw_mask (void)
/* For others, relax this so that relocations to local data goes in
read-only segments, but we still cannot allow global relocations
- in read-only segments. */
+ in read-only segments. Except that use of -rdynamic at link time
+ may make any local data global, so we can't allow local data in
+ read-only segments either. */
static int
ia64_reloc_rw_mask (void)
{
- return flag_pic ? 3 : 2;
+ return flag_pic ? 3 : 3;
}
/* Return the section to use for X. The only special thing we do here
|