aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ppc.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-03-08 15:03:50 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-03-08 15:03:50 +0000
commit74e1b52ea30e58687298440f309509a96cfb3bb4 (patch)
tree7faaeb586e690f691c569f8c19b6237b318261a9 /gas/config/tc-ppc.c
parent8cf2e6ebbcb278b42dca22a153248bc47b607f98 (diff)
downloadgdb-74e1b52ea30e58687298440f309509a96cfb3bb4.zip
gdb-74e1b52ea30e58687298440f309509a96cfb3bb4.tar.gz
gdb-74e1b52ea30e58687298440f309509a96cfb3bb4.tar.bz2
Allow .stab section to contain non PC relative addresses if -mrelocatable.
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r--gas/config/tc-ppc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index d4fe8cc..8938026 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -581,7 +581,8 @@ ppc_elf_validate_fix (fixS *fixp, segT seg)
&& !fixp->fx_done
&& !fixp->fx_pcrel
&& fixp->fx_r_type <= BFD_RELOC_UNUSED
- && strcmp (segment_name (seg), ".got2") != 0)
+ && strcmp (segment_name (seg), ".got2") != 0
+ && strcmp (segment_name (seg), ".stab") != 0)
{
as_bad_where (fixp->fx_file, fixp->fx_line,
"Relocation cannot be done when using -mrelocatable");