diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2018-08-03 10:02:39 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2018-08-03 10:02:39 +0100 |
commit | 2688aab226c6d8871af4cf53ea5651e06f104744 (patch) | |
tree | 2c32180e5a4a87d1a9a6ee64944c56aa95f65c39 /ld/ldlex.l | |
parent | dbf8be89edf7b6443fa0b7d31ca6d6ad202fadae (diff) | |
download | fsf-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.l | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |