[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/25202] objcopy --verilog-data-width doesn't respect target
From: |
nickc at redhat dot com |
Subject: |
[Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness |
Date: |
Wed, 09 Nov 2022 12:27:24 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25202
--- Comment #15 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Gökçe Aydos from comment #14)
>> I.e. compiling an asm program that starts with .org 0x100, will that cause
>> the address to be set to @40 when using verilog-data-width=4 ?
>
> Oh, I think that is the actual solution to the word addressing problem
> (compared to my previous comment). Just shift the @addresses n =
> log2(verilog-data-width) to the right, if they have n zeroes in the least
> significant bits. If not, then they should be padded with zeroes.
OK, just to make sure that I understand this correctly...
* If the start address is 0x100 and the data width is 1 then
the address in the output file should be "@100".
* If the start address is 0x111 and the data width is 1 then
the address in the output file should be "@111".
* If the start address is 0x100 and the data width is 4 then
the address in the output file should be "@40". (ie 0x100 / 4)
* If the start address is 0x111 and the data width is 4 then
the address in the output file should be "@44" and the first
byte should be a padding byte of 00.
Is that right ?
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, (continued)
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, nickc at redhat dot com, 2022/11/03
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, nickc at redhat dot com, 2022/11/03
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, nickc at redhat dot com, 2022/11/03
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, sourceware.org at aydos dot de, 2022/11/05
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, sourceware.org at aydos dot de, 2022/11/06
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, nickc at redhat dot com, 2022/11/08
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, nickc at redhat dot com, 2022/11/08
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, sourceware.org at aydos dot de, 2022/11/08
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, olof.kindgren at gmail dot com, 2022/11/08
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, sourceware.org at aydos dot de, 2022/11/09
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness,
nickc at redhat dot com <=
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, olof.kindgren at gmail dot com, 2022/11/09
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, nickc at redhat dot com, 2022/11/21
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, nickc at redhat dot com, 2022/11/21
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, sourceware.org at aydos dot de, 2022/11/24
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, nickc at redhat dot com, 2022/11/28
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, olof.kindgren at gmail dot com, 2022/11/28
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, sourceware.org at aydos dot de, 2022/11/30
- [Bug binutils/25202] objcopy --verilog-data-width doesn't respect target's endianness, nickc at redhat dot com, 2022/11/30