Home | History | Annotate | only in /src/sys/arch/macppc/stand/fixcoff
History log of /src/sys/arch/macppc/stand/fixcoff
RevisionDateAuthorComments
 1.10 01-May-2018  christos Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
 1.9 16-Sep-2006  uwe branches: 1.9.144;
Set NOMAN so that running make locally completes successfully.
 1.8 11-Dec-2005  christos branches: 1.8.20;
merge ktrace-lwp.
 1.7 13-Mar-2004  dyoung branches: 1.7.16;
Add a 'tags' target to macppc.
 1.6 11-Dec-2003  matt Convert fixcoff into a true host tool by making it under tools.
 1.5 10-Dec-2003  matt Make sure to pick up nbcompat definitions
 1.4 18-May-2003  lukem branches: 1.4.2;
missing rcsid
 1.3 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.2 20-Oct-2001  jmc branches: 1.2.4;
Add nb_progname so this will compile on older NetBSD systems that will be
upgrading to -current via the new toolchain build process eventually.
 1.1 23-Nov-1999  wrstuden branches: 1.1.2; 1.1.8; 1.1.12;
Add fixcoff, a program to be used during a build to help make xcoff'
binaries from elf ones.
 1.1.12.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.8.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.8.1 23-Nov-1999  bouyer file Makefile was added on branch thorpej_scsipi on 2000-11-20 20:13:03 +0000
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.2.4.1 20-Oct-2001  nathanw file Makefile was added on branch nathanw_sa on 2002-01-08 00:26:13 +0000
 1.4.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.2.1 03-Aug-2004  skrll Sync with HEAD
 1.7.16.1 30-Dec-2006  yamt sync with head.
 1.8.20.1 18-Nov-2006  ad Sync with head.
 1.9.144.1 02-May-2018  pgoyette Synch with HEAD
 1.7 02-Oct-2017  uwe Add cvs id keyword.
 1.6 02-Oct-2017  uwe PR port-macppc/52564: revert previous and use a different workaround.

The .eh_frame has nothing to do with it, especially since it's not
generated now anyway. The problem is that

. = (. + 0x0FFF) & 0xFFFFF000;

now seems to cause binutils to pad the preceding section, and when
that happens to be .text the powermac ofw is unhappy for whatever
reason.

For now provide .pad section that absorbs the padding as a workaround.
The binutils problem still needs to be looked into.
 1.5 20-Sep-2017  christos PR/52564: Scole Mail: current ofwboot.xcf crashes because of .eh_frame* in .text
 1.4 20-Apr-2017  uwe branches: 1.4.4;
Merge .eh_frame_hdr and .eh_frame into .text
 1.3 23-Dec-2014  matt branches: 1.3.2; 1.3.4;
Make sure .data/.bss ends/starts on a 4 byte boundary.
 1.2 26-Dec-2003  aymeric branches: 1.2.150; 1.2.170;
merge any section that starts in ".rodata." into the text section.
This matches sections generated by newer versions of gcc to handle the sharing
of constant strings.
 1.1 23-Nov-1999  wrstuden branches: 1.1.2; 1.1.8; 1.1.32;
Add fixcoff, a program to be used during a build to help make xcoff'
binaries from elf ones.
 1.1.32.1 03-Aug-2004  skrll Sync with HEAD
 1.1.8.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.8.1 23-Nov-1999  bouyer file elf32_powerpc_merge.x was added on branch thorpej_scsipi on 2000-11-20 20:13:03 +0000
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.170.2 28-Aug-2017  skrll Sync with HEAD
 1.2.170.1 06-Apr-2015  skrll Sync with HEAD
 1.2.150.1 03-Dec-2017  jdolecek update from HEAD
 1.3.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.3.2.1 26-Apr-2017  pgoyette Sync with HEAD
 1.4.4.1 09-Jun-2018  martin Pull up following revision(s) (requested by uwe in ticket #863):

sys/arch/macppc/stand/fixcoff/elf32_powerpc_merge.x: revision 1.6,1.7 (patch)

PR port-macppc/52564

. = (. + 0x0FFF) & 0xFFFFF000;

now seems to cause binutils to pad the preceding section, and when
that happens to be .text the powermac ofw is unhappy for whatever
reason.

For now provide .pad section that absorbs the padding as a workaround.
The binutils problem still needs to be looked into.
 1.13 29-Oct-2024  kre Portability fixes from Jan-Benedict Glaw

The args to help() and usage() need to be const char *
and main() should be declared as returning int.
 1.12 23-Jun-2021  cjep branches: 1.12.10; 1.12.16;
nbmacppc-fixcoff did not cross-build correctly on OpenBSD because
fixcoff.c had its own definition of htobe16. The toolchain
already handles this. Now builds on OpenBSD. Checked on NetBSD, Darwin &
Linux.

Discussed with uwe@
 1.11 14-Mar-2009  dsl branches: 1.11.80;
Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.10 07-Apr-2006  gdamore branches: 1.10.66; 1.10.74; 1.10.80;
Fix to allow macppc to crossbuild when host is not NetBSD.
Fixes PR macppc 33196. Reviewed by macallan@
 1.9 11-Dec-2005  christos branches: 1.9.4; 1.9.6; 1.9.8; 1.9.10; 1.9.12;
merge ktrace-lwp.
 1.8 11-Dec-2003  matt branches: 1.8.16;
Convert fixcoff into a true host tool by making it under tools.
 1.7 10-Dec-2003  matt Use be16toh/htobe16 instead of ntohs/htons.
 1.6 10-Dec-2003  matt s/u_int16_t/uint16_t/ for more portability
 1.5 09-Mar-2003  mrg branches: 1.5.2;
don't depend on "../../../../../gnu/dist/toolchain/include/coff/rs6000.h".
 1.4 17-Sep-2002  briggs Get rs6000.h from gnu/dist/toolchain/include instead of gnu/dist/include.
 1.3 19-Feb-2001  cgd branches: 1.3.4; 1.3.8;
convert to use getprogname()
 1.2 13-Mar-2000  soren branches: 1.2.6;
Fix doubled 'the's in comments.
 1.1 23-Nov-1999  wrstuden branches: 1.1.2;
Add fixcoff, a program to be used during a build to help make xcoff'
binaries from elf ones.
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.6.3 12-Mar-2001  bouyer Sync with HEAD.
 1.2.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.2.6.1 13-Mar-2000  bouyer file fixcoff.c was added on branch thorpej_scsipi on 2000-11-20 20:13:04 +0000
 1.3.8.1 18-Oct-2002  nathanw Catch up to -current.
 1.3.4.1 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.5.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.2.1 03-Aug-2004  skrll Sync with HEAD
 1.8.16.1 21-Jun-2006  yamt sync with head.
 1.9.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.9.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.9.8.1 11-Apr-2006  yamt sync with head
 1.9.6.1 22-Apr-2006  simonb Sync with head.
 1.9.4.1 09-Sep-2006  rpaulo sync with head
 1.10.80.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.10.74.1 28-Apr-2009  skrll Sync with HEAD.
 1.10.66.1 04-May-2009  yamt sync with head.
 1.11.80.1 01-Aug-2021  thorpej Sync with HEAD.
 1.12.16.1 02-Aug-2025  perseant Sync with HEAD
 1.12.10.1 17-Nov-2024  martin Pull up following revision(s) (requested by kre in ticket #1004):

tools/compat/configure: revision 1.106
lib/libc/string/__strsignal.c: revision 1.26
tools/compat/configure.ac: revision 1.108
tools/compat/nbtool_config.h.in: revision 1.57
usr.bin/elf2aout/elf2aout.c: revision 1.24
tools/compat/Makefile: revision 1.93
sys/arch/macppc/stand/fixcoff/fixcoff.c: revision 1.13
tools/compat/compat_defs.h: revision 1.123

Include <arpa/inet.h> for htonl() (From Jan-Benedict Glaw)
Probably this should be using htobe32() instead of htonl()
(and so <endian.h> rather than <arpa/inet.h>) as there is
no sign of any network anywhere near here. But that's for
another day, and to be done by someone who can test it.

Portability fixes from Jan-Benedict Glaw
The args to help() and usage() need to be const char *
and main() should be declared as returning int.

Add shquote to libnbcompat
Include shquote() in configure tests
Regen for added shquote()

Stop attempting to return a (char*) in place of (const char *)
This removes a cast that was added in 1994, when __strsignal()
returned a char * to convert the const char * element of sys_siglist
into a type that matched.

It should have been removed when __strsignal() was changed to
return const char * in 1998. But wasn't.

This should fix an inane warning (treated as an error) from a
compile stupid enough to allow a natural char * (as in char buf[N])
to be returned as a result (which is, of course, fine), but complains
about returning (char *) applied to a (const char *).
 1.2 11-Dec-2003  matt Convert fixcoff into a true host tool by making it under tools.
 1.1 20-Oct-2001  jmc branches: 1.1.4; 1.1.6; 1.1.22;
Add nb_progname so this will compile on older NetBSD systems that will be
upgrading to -current via the new toolchain build process eventually.
 1.1.22.1 03-Aug-2004  skrll Sync with HEAD
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 20-Oct-2001  thorpej file nb_progname.c was added on branch kqueue on 2002-01-10 19:45:54 +0000
 1.1.4.2 20-Oct-2001  jmc Add nb_progname so this will compile on older NetBSD systems that will be
upgrading to -current via the new toolchain build process eventually.
 1.1.4.1 20-Oct-2001  jmc file nb_progname.c was added on branch nathanw_sa on 2001-10-20 06:14:31 +0000

RSS XML Feed