[PATCH, RX] Add target rx-*-linux

Yoshinori Sato ysato@users.sourceforge.jp
Thu Aug 2 12:32:00 GMT 2018


On Wed, 01 Aug 2018 21:26:03 +0900,
Oleg Endo wrote:
> 
> On Wed, 2018-08-01 at 13:58 +0900, Yoshinori Sato wrote:
> 
> > > Just for my understanding, why is it needed to create a new ELF
> > > type
> > > for that?  Why can't rx-elf be used as-is?
> 
> > Section name etc is different from general ELF.
> > standard ELF | rx-elf
> > .text        | P
> > .data        | D
> > .rodata      | C
> > .bss         | B
> 
> Ah, OK.  In binutils GAS we've got 
> 
> -muse-conventional-section-names
> -muse-renesas-section-names
> 
> Where Renesas section names (P, D, C, B ...) is the default.  Actually
> I always build RX-anything with -Wa,--muse-conventional-section-names
> 
> Would that solve the problem?
> 
> Maybe that should be made the default, or selectable as a configure
> option?

Sorry. My explanation was insufficient.

Same problem have gcc. it can't selectable options.
So need new target alias.

There are some differences in bfd, and it is difficult to select by option.
(ex prefix '_').

> Cheers,
> Oleg

-- 
Yosinori Sato



More information about the Binutils mailing list