Subject: Re: OMAGIC a.out !?
To: None <port-m68k@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: port-m68k
Date: 06/26/2002 18:29:37
In article <000701c21d35$868f36c0$0d00a8c0@paq5>,
Toru Nishimura <locore32@gaea.ocn.ne.jp> wrote:

Check what the contents of .rodata is [what data is in there] and try to
eliminate them by either specifying -fwritable-strings or changing the
source code. Alternatively fix objdump to merge data and rodata sections.

objdump --full-content is your friend.

christos

>Hi,
>
>I've a difficulty of producing OMAGIC a.out executable.  I used to run
>ld to produce OMAGIC a.out executables w/ "-N" flag given.   I noticed
>that ELF/m68k toolchain seems not to honour -N flag.  Despite man ld
>implies a.out, it makes ELF files.  I tried m68k--netbsdelf-objcopy and
>resulted in vain.  It complains .rodata section not allowed for a.out.  Exact
>message is as follow;
>
>BFD: st26938a: can not represent section `.rodata' in a.out object file format
>/tools/bin/m68k--netbsdelf-objcopy: st26938a: Nonrepresentable section on output
>
>It's necessary for luna68k boot ROM monitor to have OMAGIC kernel to boot off.
>I think similar issues matter for sun2/sun3 ports.  Solutions welcome.
>
>Toru Nishimura/ALKYL Technology
>
>