From 74e1b52ea30e58687298440f309509a96cfb3bb4 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 8 Mar 1995 15:03:50 +0000 Subject: [PATCH] Allow .stab section to contain non PC relative addresses if -mrelocatable. --- gas/ChangeLog | 5 +++++ gas/config/tc-ppc.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 6bc96ed169d..e58d279a699 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 8 09:36:05 1995 Michael Meissner + + * config/tc-ppc.c (ppc_elf_validate_fix): Allow .stab sections to + have non PC relative relocations with -mrelocatable. + Wed Mar 8 02:57:53 1995 Ken Raeburn * config/tc-m68k.c (opcode_ptr): Return pointer to const. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index d4fe8cc16cc..89380262f4f 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"); -- 2.30.2