aboutsummaryrefslogtreecommitdiff
path: root/gas/doc/c-rl78.texi
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2015-12-08 01:29:25 -0500
committerDJ Delorie <dj@redhat.com>2015-12-08 01:29:25 -0500
commite896287c1643b8b47080c4a8ddbe9a92d9fa585b (patch)
treecbab9e88d6c15d508f6498f7050089895fa9e5e3 /gas/doc/c-rl78.texi
parent7859afc4fa05f6876c4e6b95cfb8fc252efd96bc (diff)
downloadgdb-e896287c1643b8b47080c4a8ddbe9a92d9fa585b.zip
gdb-e896287c1643b8b47080c4a8ddbe9a92d9fa585b.tar.gz
gdb-e896287c1643b8b47080c4a8ddbe9a92d9fa585b.tar.bz2
rl78: relaxation fixes
Various fixes to linker relaxation. In general, we need to support relaxing every branch, even if we don't relax it in the assembler, so we can optionally defer relaxation to the linker. * elf32-rl78.c (rl78_offset_for_reloc): Add more relocs. (rl78_elf_relax_section): Add bc/bz/bnc/bnz/bh/bnh. Fix reloc choices. * config/rl78-parse.y: Make all branches relaxable via rl78_linkrelax_branch(). * config/tc-rl78.c (rl78_linkrelax_branch): Mark all relaxable branches with relocs. (options): Add OPTION_NORELAX. (md_longopts): Add -mnorelax. (md_parse_option): Support OPTION_NORELAX. (op_type_T): Add bh, sk, call, and br. (rl78_opcode_type): Likewise. (rl78_relax_frag): Fix not-relaxing logic. Add sk. (md_convert_frag): Fix relocation handling. (tc_gen_reloc): Strip relax relocs when not linker relaxing. (md_apply_fix): Defer overflow handling for anything that needs a PLT, to the linker. * config/tc-rl78.h (TC_FORCE_RELOCATION): Force all relocations to the linker when linker relaxing. * doc/c-rl78.texi (norelax): Add.
Diffstat (limited to 'gas/doc/c-rl78.texi')
-rw-r--r--gas/doc/c-rl78.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/doc/c-rl78.texi b/gas/doc/c-rl78.texi
index 5cb568f..49e4ee4 100644
--- a/gas/doc/c-rl78.texi
+++ b/gas/doc/c-rl78.texi
@@ -28,6 +28,9 @@
@item relax
Enable support for link-time relaxation.
+@item norelax
+Disable support for link-time relaxation (default).
+
@item mg10
Mark the generated binary as targeting the G10 variant of the RL78
architecture.