diff options
author | Maciej W. Rozycki <macro@imgtec.com> | 2016-05-24 14:05:19 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@imgtec.com> | 2016-05-24 14:09:03 +0100 |
commit | 4512dafa508c4b148996f2d67222a82dd018cdd3 (patch) | |
tree | fccd9dea6fe9f461790ca94316d922c54dcf30aa /ld/testsuite/ld-mips-elf | |
parent | cc34adb29049afb367107bad78b163d7deddac3e (diff) | |
download | gdb-4512dafa508c4b148996f2d67222a82dd018cdd3.zip gdb-4512dafa508c4b148996f2d67222a82dd018cdd3.tar.gz gdb-4512dafa508c4b148996f2d67222a82dd018cdd3.tar.bz2 |
MIPS/GAS: Cut TLS reloc dead code path in `md_apply_fix'
With code refactoring made in commit b886a2ab0d52 and the addition of
`calculate_reloc' and a separate test for TLS relocs against constants
made there the preexisting fall-through from the TLS reloc switch case
has effectively become a dead execution path. This is because the call
to `calculate_reloc' present there is only made if `fixP->fx_done' is
true, which can only be the case if `fixP->fx_addsy' is NULL, which in
turn has already triggered the TLS reloc test and made execution break
out of the switch statement.
Remove the fall-through then and reshape code accordingly.
gas/
* config/tc-mips.c (md_apply_fix)
<BFD_RELOC_MIPS16_TLS_TPREL_LO16>: Remove fall-through, adjust
code accordingly.
Diffstat (limited to 'ld/testsuite/ld-mips-elf')
0 files changed, 0 insertions, 0 deletions