[v5] Gold/MIPS: Use EM_MIPS instead of EM_MIPS_RS3_LE for little endian

Message ID 20231110055812.496489-1-yunqiang.su@cipunited.com
State Accepted
Headers
Series [v5] Gold/MIPS: Use EM_MIPS instead of EM_MIPS_RS3_LE for little endian |

Checks

Context Check Description
snail/binutils-gdb-check success Github commit url

Commit Message

YunQiang Su Nov. 10, 2023, 5:58 a.m. UTC
  EM_MIPS_RS3_LE has been deprecated quite long ago, and in fact
most of current LE ELF files are using EM_MIPS.

This problem didn't make some trouble for us, is due to that
gold is a linker, and all of the inputs to it has right EM values.
---
 gold/configure.tgt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Nick Clifton Nov. 10, 2023, 4:29 p.m. UTC | #1
Hi YunQiang Su,

> EM_MIPS_RS3_LE has been deprecated quite long ago, and in fact
> most of current LE ELF files are using EM_MIPS.
> 
> This problem didn't make some trouble for us, is due to that
> gold is a linker, and all of the inputs to it has right EM values.

Patch approved and applied.

Cheers
   Nick
  

Patch

diff --git a/gold/configure.tgt b/gold/configure.tgt
index 4b54e08d27f..751c8fd06c6 100644
--- a/gold/configure.tgt
+++ b/gold/configure.tgt
@@ -155,7 +155,7 @@  aarch64*-*)
  ;;
 mips*el*-*-*|mips*le*-*-*)
  targ_obj=mips
- targ_machine=EM_MIPS_RS3_LE
+ targ_machine=EM_MIPS
  targ_size=32
  targ_big_endian=false
  targ_extra_big_endian=true