aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlex.l
diff options
context:
space:
mode:
authorDimitar Dimitrov <dimitar@dinux.eu>2018-08-03 10:02:39 +0100
committerNick Clifton <nickc@redhat.com>2018-08-03 10:02:39 +0100
commit2688aab226c6d8871af4cf53ea5651e06f104744 (patch)
tree2c32180e5a4a87d1a9a6ee64944c56aa95f65c39 /ld/ldlex.l
parentdbf8be89edf7b6443fa0b7d31ca6d6ad202fadae (diff)
downloadfsf-binutils-gdb-2688aab226c6d8871af4cf53ea5651e06f104744.zip
fsf-binutils-gdb-2688aab226c6d8871af4cf53ea5651e06f104744.tar.gz
fsf-binutils-gdb-2688aab226c6d8871af4cf53ea5651e06f104744.tar.bz2
Update PRU assembler to corect hardware register numbering for DWARF.
A small rework of the PRU GCC port exposed that CIE data alignment is erroneously set to 4 for PRU in GAS. In fact PRU stack must be aligned to 1. Set the macro to -1, to allow output from GCC to be assembled without errors. Also, while at it, set DWARF2 HW register numbering to follow latest * config/tc-pru.c (pru_regname_to_dw2regnum): Return the starting HW byte-register number. (pru_frame_initial_instructions): Use byte-numbering for FP index. * config/tc-pru.h (DWARF2_DEFAULT_RETURN_COLUMN): Use number from latest GCC. (DWARF2_CIE_DATA_ALIGNMENT): Set to -1.
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r--ld/ldlex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldlex.l b/ld/ldlex.l
index 261c0c1..c80db58 100644
--- a/ld/ldlex.l
+++ b/ld/ldlex.l
@@ -424,7 +424,7 @@ V_IDENTIFIER [*?.$_a-zA-Z\[\]\-\!\^\\]([*?.$_a-zA-Z0-9\[\]\-\!\^\\]|::)*
/* PR ld/20906. A corrupt input file
can contain bogus strings. */
len = strlen (yylval.name);
- if (len > yyleng - 2)
+ if (len > (bfd_size_type) yyleng - 2)
len = yyleng - 2;
yylval.name[len] = 0;
return NAME;