mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
Fix verilog output when the width is > 1.
PR 25202 bfd * bfd.c (VerilogDataEndianness): New variable. (verilog_write_record): Use VerilogDataEndianness, if set, to choose the endianness of the output. (verilog_write_section): Adjust the address by the data width. binutils* objcopy.c (copy_object): Set VerilogDataEndianness to the endianness of the input file. (copy_main): Verifiy the value set by the --verilog-data-width option. * testsuite/binutils-all/objcopy.exp: Add tests of the new behaviour. * testsuite/binutils-all/verilog-I4.hex: New file.
This commit is contained in:
6
binutils/testsuite/binutils-all/verilog-I4.hex
Normal file
6
binutils/testsuite/binutils-all/verilog-I4.hex
Normal file
@ -0,0 +1,6 @@
|
||||
@00000000
|
||||
(01020304|04030201) 00000000.*
|
||||
@000000..
|
||||
(02000000|00000002).*
|
||||
#pass
|
||||
|
Reference in New Issue
Block a user