<Entei[m]>
objdump also shows quite a few compressed instructions in the simple code's binary
<davidlt[m]>
In the object file?
<davidlt[m]>
Or the final binary?
<Entei[m]>
davidlt[m]: final elf.
<davidlt[m]>
Recompile binutils too.
<davidlt[m]>
Use --with=-arch=ISA to change the default.
<Entei[m]>
davidlt[m]: With my rebuilt gcc or the defaults Rawhide ships with? Both should work if I am not wrong, but mine is probably considered testing
<davidlt[m]>
With rebuild GCC. And disable %check for now in binutils spec. We just need to test and verify everything.
<davidlt[m]>
We just need to make sure that things seem to be OK, and you aren't wasting too much time on something that might not work.
<davidlt[m]>
You will still need to do a bootstrap GCC, etc. which will take quite some time.
<davidlt[m]>
You might be able to speed up things without emulating full system under QEMU, running it in the user mode IIRC. I haven't used this setup in a long time.
<Entei[m]>
davidlt[m]: So if I am able to get working binutils and other core packages like zlib working properly with the rebuilt gcc, I should be good to do a bootstrap GCC, right?
<davidlt[m]>
Yes
<davidlt[m]>
Just be cautious on every step, validate, etc. before going full speed.
<Entei[m]>
davidlt[m]: Damn so no more RISCV_Tag from kernel 6.4 onwards huh?
<davidlt[m]>
At least no in the kernel build.
<Entei[m]>
Is binutils as big a package? Should 8 cores be enough? Remaining 16 cores are being utilised by others on the server right now
<davidlt[m]>
It's pretty fast.
<davidlt[m]>
Last build took almost 4 hours on a physical board (incl. tests).
<Entei[m]>
Ok so a pretty small package. Thanks
<davidlt[m]>
I am preparing to rebuild the whole R ecosystem this morning.
<Entei[m]>
<davidlt[m]> "I am preparing to rebuild the..." <- Wishing you luck and fast builds
<Entei[m]>
Is there any need to modify the spec file for binutils package? I only see CARGS as possible modifiable parameter, and I don;t think I need to add -march=ISA to it, since it's a native build. It should pick up from gcc?
<davidlt[m]>
No
<davidlt[m]>
Check binutils documentation.
<davidlt[m]>
--with-arch=ISA is what you want.
<davidlt[m]>
Probably GCC would pass that over, and you could check how linker and assembler are invoked at least on CLI level.
<davidlt[m]>
But changing the default (which we already did on GCC side) just makes life easier.
<Entei[m]>
<davidlt[m]> "Probably GCC would pass that..." <- I understand how `as` and `ld` work. Didn't know they were part of binutils package.
fuwei has joined #fedora-riscv
zsun has joined #fedora-riscv
zsun has quit [Quit: Leaving.]
jcajka has quit [Quit: Leaving]
ahs3 has quit [Ping timeout: 268 seconds]
ahs3 has joined #fedora-riscv
fuwei has quit [Remote host closed the connection]