Re: [patches] Re: [PATCH] RISC-V: Pass --no-relax to linker if -mno-relax is present.

2018-04-20 Thread Jim Wilson
On 04/18/2018 06:59 PM, Kito Cheng wrote: Hi Jim: Turned off both the assembler and the linker sounds good idea to me, but it's not support on current assembler now, and gcc might release in next few month, so I afraid we'll have a short time gap that is -mno-relax is broken due to assembler

Re: [patches] Re: [PATCH] RISC-V: Pass --no-relax to linker if -mno-relax is present.

2018-04-18 Thread Kito Cheng
Hi Jim: Turned off both the assembler and the linker sounds good idea to me, but it's not support on current assembler now, and gcc might release in next few month, so I afraid we'll have a short time gap that is -mno-relax is broken due to assembler not support that command line option in the

Re: [PATCH] RISC-V: Pass --no-relax to linker if -mno-relax is present.

2018-04-18 Thread Jim Wilson
On Wed, Apr 18, 2018 at 3:10 AM, Kito Cheng wrote: > * config/riscv/elf.h (LINK_SPEC): Pass --no-relax if > -mno-relax is present. > * config/riscv/linux.h (LINK_SPEC): Ditto. It is easy enough to use -Wl,--no-relax and there are other linker options that

[PATCH] RISC-V: Pass --no-relax to linker if -mno-relax is present.

2018-04-18 Thread Kito Cheng
Hi all: Palmer has been added -mno-relax option before, I propose it should also pass to linker during link phase. ChangeLog: 2018-04-18 Kito Cheng * config/riscv/elf.h (LINK_SPEC): Pass --no-relax if -mno-relax is present. * config/riscv/linux.h