HACKS revision 1.52
11.52Sjmc# $NetBSD: HACKS,v 1.52 2005/12/13 05:56:23 jmc Exp $ 21.1Slukem# 31.1Slukem# This file is intended to document workarounds for currently unsolved 41.1Slukem# (mostly) compiler bugs. 51.1Slukem# 61.1Slukem# Format: 71.1Slukem# hack title 81.1Slukem# cdate creation date 91.1Slukem# mdate mod date 101.1Slukem# who responsible developer 111.1Slukem# port ... 121.1Slukem# affected ports, space separated, if not "all" 131.1Slukem# file affected file : revision : line from : line to 141.1Slukem# affected files and revision and line numbers describing hack 151.1Slukem# multiple lines if necessary. 161.1Slukem# pr NNNN ... 171.1Slukem# problem reports this hack works around, if known. Space 181.1Slukem# separated. 191.1Slukem# regress src/regress/directory/where/test/found 201.1Slukem# regression test directories, if available. 211.1Slukem# descr 221.1Slukem# insert short informal description (multi-line). (Longer ones 231.1Slukem# should be in the PR database. More formal descriptions might 241.1Slukem# be in the regress tree. See above). 251.1Slukem# kcah 261.1Slukem# closing bracket. 271.1Slukem# 281.1Slukem# this is a comment. 291.1Slukem 301.1Slukemhack netstat ieee1394 address printing. 311.1Slukemmdate 14 Nov 2000 321.1Slukemwho matt 331.1Slukemfile lib/libc/net/getnameinfo.c : 1.32 : 497 : 503 341.1Slukemdescr 351.1Slukem Because the current implementation of IP over IEEE1394, the 361.1Slukem fw device address contains more than just the IEEE1394 EUI-64. 371.1Slukem So when printing out IEEE1394 addresses, ignore the extra stuff. 381.1Slukemkcah 391.1Slukem 401.1Slukemhack xterm vs. libterm 411.1Slukemmdate 01 Aug 2000 421.1Slukemwho jdc 431.1Slukemfile xsrc/xc/programs/xterm/main.c : 1.2 : 3609 : 3614 441.1Slukempr 10383 451.1Slukemdescr 461.1Slukem In order to extend the termcap string over 1023 bytes, a ZZ entry was 471.1Slukem introduced to point to a memory location containing the full entry. 481.1Slukem Without this hack, xterm will export a termcap containing the ZZ 491.1Slukem entry, which will then be ignored by libterm. As xterm modifies the 501.1Slukem exported termcap, this would cause those modifications to be ignored. 511.1Slukemkcah 521.1Slukem 531.1Slukemhack wi-at-big-endian-bus 541.1Slukemcdate 15 Mar 2002 551.1Slukemwho martin 561.1Slukemfile dev/ic/wireg.h 571.1Slukemdescr Add an option to access the underlying bus in big endian byte order 581.1Slukem to work around deficiencies in bus_space_{read,write}_* macros. 591.1Slukem Those don't allow the implementation of a proper pcmcia bus space 601.1Slukem tag. 611.1Slukemkcah 621.1Slukem 631.3Sjdchack specific knowledge of colours in curses code 641.3Sjdccdate Sun Apr 6 11:05:24 BST 2003 651.3Sjdcwho jdc 661.3Sjdcfile lib/libcurses/color.c : r1.24 671.3Sjdcdescr 681.3Sjdc Swap red/blue and yellow/cyan colours for COLOR_OTHER. 691.3Sjdc Fix is to enhance libtermcap to understand terminfo-style % sequences. 701.3Sjdc See also: 711.5Ssalo http://mail-index.NetBSD.org/tech-userlevel/2003/04/06/0000.html 721.4Sscwkcah 731.4Sscw 741.7Shehack Compensation for differing types of LINUX_USRSTACK and USRSTACK 751.7Shecdate 21 Aug 2003 761.7Shewho he 771.7Shefile sys/miscfs/procfs/procfs_linux.c : 1.14 781.7Shedescr 791.7She Not all ports have LINUX_USRSTACK and/or USRSTACK defined as 801.7She literals/constants, but refer to variables of a type which is 811.7She not "unsigned long", causing compilation of procfs_linux.c to 821.7She fail with "makes integer from pointer without a cast". This 831.7She is observed on e.g. the sun3 port. Ideally the "types" for 841.7She symbols should be consistent across all ports. 851.25Smrgkcah 861.25Smrg 871.25Smrghack GCC2 isn't C99 881.25Smrgcdate 5 December 2003 891.25Smrgwho mrg 901.25Smrgfile gnu/dist/binutils/ld/ldlex.c: r1.2 911.25Smrgdescr 921.25Smrg ldlex.c is generated from ldlex.l and we get macro redefinition 931.25Smrg errors from it if __STDC_VERSION__ is not C99 compliant. This 941.25Smrg hack forces NetBSD 1.6 and later systems to also include <stdint.h> 951.25Smrg to get the relevant definitions. This hack should be backed out 961.25Smrg when all platforms have switched away from GCC2. 971.11Slukemkcah 981.11Slukem 991.37Sjunyounghack gcc-strict-aliasing 1001.37Sjunyoungcdate 6 August 2004 1011.37Sjunyoungwho junyoung 1021.37Sjunyoungpr 26516 1031.37Sjunyoungfile src/usr.sbin/racoon/racoon/Makefile : 1.21 1041.37Sjunyoungdescr 1051.37Sjunyoung GCC issues a warning "dereferencing type-punned pointer will break 1061.37Sjunyoung strict-aliasing rules" when compiling 1071.37Sjunyoung crypto/dist/kame/racoon/crypto/openssl.c with -O[23s]. Note that this 1081.38Sjunyoung is due to use of type casting in a non-standard way in the code and 1091.38Sjunyoung not a compiler bug. Once a new release of KAME with a proper fix 1101.38Sjunyoung applied is imported this should be backed out. 1111.37Sjunyoungkcah 1121.37Sjunyoung 1131.13Ssimonb 1141.21Smycroftport vax 1151.21Smycroft 1161.52Sjmc hack gcc 2.95/vax doesn't like abort being used as function pointer 1171.52Sjmc cdate Tue Dec 13 05:54:50 GMT 2005 1181.52Sjmc who jmc 1191.52Sjmc file lib/libc/rpc/svc_vc.c 1.15 1201.52Sjmc descr 1211.52Sjmc Provide a local definition for abort which doesn't include 1221.52Sjmc the noreturn attribute which trips up gcc 2.95 on vax. 1231.52Sjmc 1241.45Sjmc hack gcc 2.95/vax doesn't have stdbool.h and gettext needs it 1251.45Sjmc cdate Mon May 9 12:16:22 CDT 2005 1261.45Sjmc who jmc 1271.45Sjmc file gnu/usr.bin/gettext/Makefile.inc.prog 1.5 1281.45Sjmc gnu/usr.bin/gettext/libgrep/Makefile 1.3 1291.45Sjmc gnu/usr.bin/gettext/libnlspr/Makefile 1.5 1301.45Sjmc gnu/usr.bin/gettext/libnlsut/Makefile 1.3 1311.45Sjmc descr 1321.45Sjmc The latest gettext assumes a C99 environment or at least 1331.45Sjmc configure checks to work around this. As we don't use configure 1341.45Sjmc provide a stdbool.h for vax builds locally in directories from 1351.45Sjmc the template provided by the gettext code. 1361.45Sjmc 1371.44Sjmc hack gcc 2.95/vax can't handle __used__ in mcount.c 1381.44Sjmc cdate Fri May 6 14:30:53 CDT 2005 1391.44Sjmc who jmc 1401.44Sjmc file src/lib/libc/gmon/mcount.c 1.17 1411.44Sjmc descr 1421.44Sjmc Recent changes to mark this as __used__ to prevent optimization 1431.44Sjmc away on sparc64 don't work on 2.95 vax. Ifdef'd back in the 1441.44Sjmc old __unused__ if on vax. 1451.44Sjmc 1461.21Smycroft hack gcc 2.95/vax cannot handle __builtin_ffs() 1471.21Smycroft cdate Fri Aug 23 21:31:15 CEST 2002 1481.21Smycroft who ragge 1491.21Smycroft file sys/lib/libkern/libkern.h : 1.42 1501.21Smycroft descr 1511.21Smycroft __builtin_ffs() is ifdef'd away if __vax__. Matt Thomas has 1521.21Smycroft added this feature to GCC 3 so it can be removed when switching. 1531.44Sjmc 1541.21Smycroft 1551.21Smycroft hack gcc-vax-libbz2 1561.21Smycroft mdate 27 Jun 2002 1571.21Smycroft who thorpej 1581.21Smycroft file lib/libbz2/Makefile 1591.21Smycroft descr 1601.21Smycroft libbz2 is mis-compiled with optimization with GCC 2.95.3 1611.24Sragge on VAX. -O0 works around this problem. 1621.24Sragge kcah 1631.24Sragge 1641.24Sragge hack gawk 1651.24Sragge mdate 8 Nov 2003 1661.24Sragge who ragge 1671.24Sragge file gnu/usr.bin/gawk/Makefile 1681.24Sragge descr 1691.24Sragge gawk is mis-compiled with optimization with GCC 2.95.3 1701.21Smycroft on VAX. -O0 works around this problem. 1711.21Smycroft kcah 1721.21Smycroft 1731.21Smycroft hack vax Toolchain bug 1741.21Smycroft cdate 28 Mar 2003 1751.21Smycroft who he 1761.21Smycroft file sys/arch/vax/vax/intvec.S : 1.5 1771.21Smycroft descr 1781.21Smycroft Workaround for PR toolchain/20924. The assembler apparently 1791.21Smycroft tries to range-check byte offsets when it doesn't have 1801.21Smycroft sufficient information to make that decision. 1811.21Smycroft Workaround uses `brw' instead of `brb' instruction. 1821.23She kcah 1831.23She 1841.23She hack vax gcc 2.95.3 -Wuninitialized workarounds 1851.23She cdate 6 Nov 2003 1861.23She who he 1871.23She file sys/dev/bi/if_ni.c : 1.22 1881.23She file sys/arch/vax/vax/ctu.c : 1.20 1891.23She descr 1901.23She Workaround for gcc 2.95.3 failing to detect that certain 1911.23She variables will be initialized; so that this code compiles 1921.23She with -Wuninitialized. Should be reviewed and possibly 1931.23She reverted when gcc 3.3.2 is ready for vax. 1941.21Smycroft kcah 1951.21Smycroft 1961.34Scl hack vax gcc 2.95.3 structure initialization 1971.34Scl cdat 13 May 2004 1981.34Scl who cl 1991.34Scl file sys/miscfs/kernfs/kernfs_vnops.c : 1.104 2001.34Scl descr 2011.34Scl Workaround for gcc 2.95.3 failing to initialize structures 2021.34Scl and/or unions inside structures using nested designators. 2031.34Scl Should be reverted when gcc >=3.3.3 is ready for vax. 2041.34Scl kcah 2051.21Smycroft 2061.35She hack vax gcc 2.95.3 needs -I. to build nslexer.c 2071.35She cdat 6 Jun 2004 2081.36She who mhitch 2091.36She file lib/libc/arch/vax/Makefile.inc : 1.6 2101.35She descr 2111.35She It appears necessary to add -I. to CPPFLAGS when building 2121.35She nslesxer.c. This may be caused by gcc 2.95.3 being used. 2131.35She Should be reverted when a newer gcc is ready for vax. 2141.35She kcah 2151.35She 2161.43Stron hack vax gcc 2.95.3 doesn't understand "-std=c99" 2171.43Stron cdat 5 April 2005 2181.43Stron who tron 2191.43Stron file src/share/mk/bsd.sys.mk 2201.43Stron descr 2211.43Stron We cannot use "-std=c99" for compiler warning level 4 and above 2221.43Stron because gcc 2.95.3 doesn't support that option. 2231.43Stron kcah 2241.43Stron 2251.21Smycroftport sparc64 2261.21Smycroft 2271.21Smycroft hack binutil-2.11-sparc64-pltrela 2281.21Smycroft mdate 14 Aug 2001 2291.21Smycroft who eeh 2301.21Smycroft file libexec/ld.elf_so/arch/sparc64/mdreloc.c 2311.21Smycroft descr 2321.39Sskrll The first four PLT entries are reserved. There is some 2331.21Smycroft disagreement whether they should have associated relocation 2341.21Smycroft entries. Both the SPARC 32-bit and 64-bit ELF specifications 2351.21Smycroft say that they should have relocation entries, but the 32-bit 2361.21Smycroft SPARC binutils do not generate them, and now the 64-bit SPARC 2371.21Smycroft binutils have stopped generating them too. 2381.21Smycroft 2391.21Smycroft To provide binary compatibility, we will check the first entry, 2401.21Smycroft if it is reserved it should not be of the type JMP_SLOT. If it 2411.21Smycroft is JMP_SLOT, then the 4 reserved entries were not generated and 2421.21Smycroft our index is 4 entries too far, so we frob the rela pointer. 2431.21Smycroft kcah 2441.21Smycroft 2451.21Smycroft 2461.21Smycroftport arm 2471.21Smycroft 2481.21Smycroft hack gcc-unsigned-compare 2491.21Smycroft cdate 09 Mar 2002 2501.21Smycroft mdate 18 Mar 2002 2511.21Smycroft who bjh21 2521.21Smycroft file dist/bind/lib/nameser/ns_parse.c : 1.3 2531.21Smycroft file dist/dhcp/minires/ns_parse.c : 1.3 2541.21Smycroft file dist/dhcp/omapip/result.c : 1.2 2551.21Smycroft file dist/dhcp/server/failover.c : 1.3 2561.21Smycroft file gnu/dist/gawk/eval.c : 1.4 2571.21Smycroft file gnu/dist/toolchain/bfd/bfd.c : 1.2 2581.21Smycroft file gnu/dist/toolchain/bfd/format.c : 1.2 2591.21Smycroft file gnu/dist/toolchain/gdb/target.c : 1.2 2601.21Smycroft file sys/kern/vfs_subr.c : 1.172 2611.21Smycroft descr When checking that a potentially-unsigned enum is >= 0, assign 2621.21Smycroft it to an int first. This is necessary to avoid "comparison is 2631.21Smycroft always true" warnings with -fshort-enums. Casting to an int 2641.21Smycroft really should be enough, but turns out not to be. 2651.21Smycroft kcah 2661.21Smycroft 2671.21Smycroft hack gcc 3.3.2/arm sys/kern/uipc_socket.c 2681.21Smycroft cdate Tue Oct 28 18:02:16 GMT 2003 2691.21Smycroft who skrll 2701.41Sbjh21 pr 23044 2711.41Sbjh21 file sys/arch/arm/conf/Makefile.arm : 1.19 2721.21Smycroft descr 2731.21Smycroft Performing a build.sh tools on a CATS with NFS mounted 2741.21Smycroft obj and src directories results in "panic: receive 1" 2751.21Smycroft The hack is to compile sys/kern/uipc_socket.c with 2761.21Smycroft -fno-strict-aliasing 2771.21Smycroft kcah 2781.21Smycroft 2791.21Smycroft 2801.13Ssimonbport pc532 2811.16Scl 2821.21Smycroft hack egcs-pc532-ip6_mroute 2831.21Smycroft cdate 09 Jul 2002 2841.21Smycroft who simonb 2851.21Smycroft file sys/arch/pc532/conf/Makefile.pc532 : 1.70 2861.21Smycroft file sys/arch/pc532/conf/files.pc532 : 1.47 2871.21Smycroft descr 2881.21Smycroft egcs 1.1.2 gets an "internal error--insn does not satisfy its 2891.21Smycroft constraints" error compiling ip6_mroute.c with -O2 or greater. 2901.21Smycroft -O1 works around this problem. 2911.21Smycroft kcah 2921.21Smycroft 2931.21Smycroft hack gcc-pc532-duffs_device 2941.21Smycroft cdate Mon Oct 27 07:23:05 UTC 2003 2951.21Smycroft who simonb 2961.21Smycroft file sys/arch/pc532/conf/Makefile.pc532 : 1.71 2971.21Smycroft file sys/arch/pc532/conf/files.pc532 : 1.52 2981.21Smycroft pr GCC PR optimization/5230 2991.21Smycroft descr 3001.21Smycroft gcc incorrectly gives an "unreachable code at beginning of 3011.21Smycroft switch statement" for a Duff's device construct in 3021.21Smycroft arch/pc532/dev/ncr.c. There is no way to disable just this 3031.21Smycroft warning, so -Wno-error is turned on for this file. 3041.21Smycroft kcah 3051.21Smycroft 3061.26Ssimonb hack gcc332-cppmacro-ice 3071.26Ssimonb cdate Sun Dec 7 12:48:33 UTC 2003 3081.26Ssimonb who simonb 3091.26Ssimonb file gnu/usr.bin/gcc3/libcpp/Makefile : 1.2 3101.26Ssimonb descr 3111.26Ssimonb gcc 3.3.2 gets an ICE when compiling cppmacro.c with -O2. 3121.26Ssimonb The hack is to use -O1 for this file. Fixed in gcc 3131.26Ssimonb -current mainline, unable to work out where the fix is 3141.26Ssimonb right now. 3151.26Ssimonb kcah 3161.26Ssimonb 3171.21Smycroft 3181.21Smycroftport sh3 3191.21Smycroft 3201.21Smycroft hack gcc-sh3-sed 3211.21Smycroft mdate 23 Apr 2002 3221.21Smycroft who thorpej 3231.21Smycroft file usr.bin/sed/Makefile : 1.9 : 9 : 13 3241.21Smycroft descr 3251.21Smycroft The in-tree GCC 2.95.3-based compiler ICEs when building 3261.26Ssimonb with optimization for SuperH. Hack is to build with -O0. 3271.21Smycroft kcah 3281.21Smycroft 3291.21Smycroft 3301.21Smycroftport sh5 3311.21Smycroft 3321.21Smycroft hack SuperH SH5 Toolchain Bugs 3331.21Smycroft cdate 11 Jul 2002 3341.21Smycroft who scw 3351.21Smycroft file usr.sbin/ndbootd/ndbootd.c : 1.6 3361.21Smycroft file usr.sbin/traceroute/traceroute.c : 1.48 3371.21Smycroft descr 3381.21Smycroft The SuperH SH5 toolchain (2.97-sh5-010522) gets an internal 3391.21Smycroft compiler error when assigning a bit-wise inverted value 3401.21Smycroft under some circumstances. 3411.21Smycroft Work around it by splitting the statement into two. 3421.21Smycroft kcah 3431.21Smycroft 3441.21Smycroft hack SuperH SH5 Toolchain Bugs 3451.21Smycroft cdate 17 May 2003 3461.21Smycroft who scw 3471.21Smycroft file lib/libpthread/pthread_lock.c : 1.7 3481.21Smycroft descr 3491.21Smycroft The SuperH SH5 toolchain generates incorrect PIC code when 3501.21Smycroft faced with a symbol which is declared extern, but has local 3511.21Smycroft scope due to being defined within an asm() statement (without 3521.21Smycroft being declared .globl in that statement). Work around it by 3531.21Smycroft adding the .globl. 3541.27Sscw kcah 3551.27Sscw 3561.27Sscw hack gcc 3.3.2 on sh5 - ICE compiling reload1.c at -O2 3571.27Sscw cdate Sun Dec 7 19:44:05 GMT 2003 3581.27Sscw who scw 3591.27Sscw file gnu/usr.bin/gcc3/backend/Makefile : 1.13 3601.27Sscw descr 3611.27Sscw Gcc3 for sh5 gets an ICE compiling reload1.c at -O2. 3621.27Sscw Drop to -O1 for now when building for sh5. 3631.27Sscw kcah 3641.28Sscw 3651.28Sscw hack gcc 3.3.2 on sh5 - ICE compiling elf32.c/elf64.c at -O2 3661.28Sscw cdate Sun Dec 7 21:10:46 GMT 2003 3671.28Sscw who scw 3681.28Sscw file gnu/lib/libbfd/Makefile : 1.39 3691.28Sscw descr 3701.28Sscw Gcc3 for sh5 gets an ICE compiling libbfd's elf32.c 3711.28Sscw and elf64.c at -O2. 3721.28Sscw Drop to -O1 for now when building for sh5. 3731.28Sscw kcah 3741.28Sscw 3751.27Sscw 3761.27Sscw hack gcc 3.3.2 on sh5 - fatal warning compiling function.c 3771.27Sscw cdate Sun Dec 7 19:44:05 GMT 2003 3781.27Sscw who scw 3791.27Sscw file gnu/usr.bin/gcc3/backend/Makefile : 1.13 3801.27Sscw descr 3811.27Sscw Gcc3 for sh5 issues a warning: 3821.27Sscw .../gnu/dist/gcc/gcc/function.c:4742: warning: `and' of 3831.27Sscw mutually exclusive equal-tests is always 0. 3841.27Sscw This causes the build to fail because of -Werror. 3851.27Sscw Work-around by defining NOGCCERROR when building for sh5. 3861.27Sscw kcah 3871.27Sscw 3881.40She hack gcc 3.3.3 on sh5 - ICE compiling rbtdb.c and rbtdb64.c 3891.40She cdate Thu Nov 11 00:35:33 UTC 2004 3901.40She who he 3911.40She file usr.sbin/bind/libdns/Makefile/1.2 3921.27Sscw descr 3931.40She Gcc3 for sh5 gets an ICE compiling these files at -O2. 3941.27Sscw Drop to -O1 for now when building for sh5. 3951.21Smycroft kcah 3961.17Smrg 3971.48She hack gcc 3.3.3 nb3 on sh5 - ICE compiling bsd-comp.c 3981.48She cdate Thu May 25 23:05:20 UTC 2005 3991.48She who he 4001.48She file sys/lkm/net/bsdcomp/Makefile : 1.3 4011.48She descr 4021.48She Gcc3 for sh5 gets an ICE compiling this at -O2, 4031.48She "could not split insn". Drop to -O1 for sh5. 4041.48She kcah 4051.17Smrg 4061.17Smrgport sun2 4071.20Sskrll 4081.21Smycroft hack gcc 3.3.2/mdsetimage 4091.21Smycroft cdate Tue Oct 28 18:43:05 EST 2003 4101.21Smycroft who fredette 4111.21Smycroft file gnu/usr.sbin/mdsetimage/Makefile : 1.15 4121.21Smycroft descr 4131.21Smycroft mdsetimage.c causes cc1 to barf for as-yet unknown reasons. 4141.26Ssimonb this hack uses -O0 to avoid the problem. 4151.21Smycroft kcah 4161.21Smycroft 4171.21Smycroft hack gcc 3.3.2/installboot/ffs.c 4181.21Smycroft cdate Tue Oct 28 18:43:05 EST 2003 4191.21Smycroft who fredette 4201.21Smycroft file usr.sbin/installboot/Makefile : 1.26 4211.21Smycroft descr 4221.21Smycroft ffs.c causes cc1 to barf for as-yet unknown reasons. this 4231.26Ssimonb hack uses -O0 to avoid the problem. 4241.22Smrg kcah 4251.22Smrg 4261.22Smrg 4271.46Schsport sun2 m68k 4281.22Smrg 4291.22Smrg hack gcc 3.3.2/gcc/ra-colorize.c 4301.22Smrg cdate Wed Nov 5 11:03:13 EST 2003 4311.22Smrg who mrg 4321.46Schs file gnu/usr.bin/gcc3/backend/Makefile : 1.11 4331.22Smrg descr 4341.22Smrg ra-colorize.c causes a whole spew of unreferenced .L* local 4351.22Smrg symbols. using -O0 (or even -O2 reportedly) avoids the problem. 4361.21Smycroft kcah 4371.31Smartin 4381.31Smartinport sparc64 4391.31Smartin 4401.31Smartin hack disable optimzations for uvm_bio.c on 32 bit kernels 4411.31Smartin cdate Sun Mar 21 14:14:04 MET 2004 4421.31Smartin who martin 4431.32Smartin file sys/arch/sparc64/conf/Makefile.sparc64 : 1.53-1.54 4441.32Smartin file sys/arch/sparc64/conf/files.sparc64 : 1.93 4451.31Smartin descr 4461.31Smartin The sparc compiler miscompiles uvm_bio.c when using 4471.31Smartin any optimization. This results in ubc_release panics. 4481.31Smartin kcah 4491.42Schristos 4501.42Schristosport macppc 4511.42Schristos 4521.42Schristos hack remove inline from rotate_{left,right} 4531.42Schristos cdate Tue Feb 22 13:43:25 EST 2005 4541.42Schristos who christos 4551.42Schristos file src/dist/bind/lib/dns/rbt.c 4561.42Schristos descr 4571.42Schristos The macppc gcc-3.3 compiler miscompiles rbt.c when these 4581.42Schristos functions are inlined. The error is: 4591.42Schristos .* named[368]: rbt.c:1584: INSIST(child != (void *)0) >failed 4601.42Schristos .* named[368]: exiting (due to assertion failure) 4611.42Schristos This is reportedly fixed in gcc-3.4 4621.42Schristos kcah 4631.46Schs 4641.46Schsport hppa 4651.46Schs 4661.46Schs hack hppa-gcc-3.3.3/grep/dfa.c 4671.46Schs cdate Sun Aug 8 08:34:32 PDT 2004 4681.46Schs who chs 4691.46Schs file gnu/usr.bin/grep/grep/Makefile : 1.4 4701.46Schs descr 4711.46Schs gcc 3.3.3 generates bad code for dfa.c with -O2, 4721.46Schs reduce optimization to -O1 to avoid the bug. 4731.46Schs kcah 4741.47Schs 4751.47Schs hack hppa boot-from-disk memory corruption 4761.47Schs cdate Wed May 18 06:56:07 PDT 2005 4771.47Schs who chs 4781.47Schs file src/sys/dev/scsipi/scsipiconf.h : 1.98 4791.47Schs descr 4801.47Schs There is some bug with DMA on hppa that corrupts scsipi_xfer 4811.47Schs structures, but it only shows up when booting from disk. 4821.47Schs For now, we'll add some padding to scsipi_xfer so that 4831.47Schs the corrupted memory is not otherwise used. 4841.47Schs kcah 4851.51Ssimonb 4861.51Ssimonbport mips 4871.51Ssimonb 4881.51Ssimonb hack mips-shared-linker-load-address 4891.51Ssimonb cdate Fri Oct 7 08:33:10 UTC 2005 4901.51Ssimonb who simonb 4911.51Ssimonb file src/sys/kern/exec_elf32.c : 1.107 4921.51Ssimonb descr 4931.51Ssimonb With COMPAT_16 or previous enabled (which enables 4941.51Ssimonb ELF_INTERP_NON_RELOCATABLE) a recent ld.elf_so will 4951.51Ssimonb load and run at address 0. The check to fix this in 4961.51Ssimonb rev 1.107 only checks the first psection of the ELF 4971.51Ssimonb executable, which may not be loadable. A more correct 4981.51Ssimonb fix is to check the first loadable psection instead of 4991.51Ssimonb just the first psection. 5001.51Ssimonb kcah 501