All of lore.kernel.org
 help / color / mirror / Atom feed
* can't compile kernel for parisc
@ 2009-02-27 10:47 Alexander Beregalov
  2009-02-27 12:24 ` Carlos O'Donell
  0 siblings, 1 reply; 25+ messages in thread
From: Alexander Beregalov @ 2009-02-27 10:47 UTC (permalink / raw)
  To: linux-parisc

[-- Attachment #1: Type: text/plain, Size: 4282 bytes --]

I am building the kernel for parisc for the first time.
Have I missed anything important?

  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: vmlinux.o (.text.1): unexpected section name.
The (.[number]+) following section name are ld generated and not expected.
Did you forget to use "ax"/"aw" in a .S file?
Note that for example <linux/init.h> contains
section definitions for use in .S files.

WARNING: vmlinux.o(.cpuinit.text+0x418): Section mismatch in reference
from the function init_per_cpu() to the function
.init.text:set_firmware_width()
The function __cpuinit init_per_cpu() references
a function __init set_firmware_width().
If set_firmware_width is only used by init_per_cpu then
annotate set_firmware_width with a matching annotation.

WARNING: vmlinux.o(.cpuinit.text+0x420): Section mismatch in reference
from the function init_per_cpu() to the function
.init.text:pdc_coproc_cfg()
The function __cpuinit init_per_cpu() references
a function __init pdc_coproc_cfg().
If pdc_coproc_cfg is only used by init_per_cpu then
annotate pdc_coproc_cfg with a matching annotation.

WARNING: vmlinux.o (.text.7): unexpected section name.
The (.[number]+) following section name are ld generated and not expected.
Did you forget to use "ax"/"aw" in a .S file?
Note that for example <linux/init.h> contains
section definitions for use in .S files.

WARNING: vmlinux.o (.text.8): unexpected section name.
The (.[number]+) following section name are ld generated and not expected.
Did you forget to use "ax"/"aw" in a .S file?
Note that for example <linux/init.h> contains
section definitions for use in .S files.

WARNING: vmlinux.o (.text.16): unexpected section name.
The (.[number]+) following section name are ld generated and not expected.
Did you forget to use "ax"/"aw" in a .S file?
Note that for example <linux/init.h> contains
section definitions for use in .S files.

WARNING: vmlinux.o (.text.17): unexpected section name.
The (.[number]+) following section name are ld generated and not expected.
Did you forget to use "ax"/"aw" in a .S file?
Note that for example <linux/init.h> contains
section definitions for use in .S files.

  GEN     .version
  CHK     include/linux/compile.h
dnsdomainname: Unknown host
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
ld: /bin/sh: line 1:  9894 Segmentation fault      ld --build-id -o
.tmp_vmlinux1 -T arch/parisc/kernel/vmlinux.lds
arch/parisc/kernel/head.o init/built-in.o --start-group usr/built-in.o
arch/parisc/mm/built-in.o arch/parisc/kernel/built-in.o
arch/parisc/math-emu/built-in.o arch/parisc/kernel/init_task.o
kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o
security/built-in.o crypto/built-in.o block/built-in.o lib/lib.a
arch/parisc/lib/lib.a `gcc -print-libgcc-file-name` lib/built-in.o
arch/parisc/lib/built-in.o `gcc -print-libgcc-file-name`
drivers/built-in.o sound/built-in.o firmware/built-in.o net/built-in.o
--end-group
make: *** [.tmp_vmlinux1] Error 139


$ head Makefile
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 29
EXTRAVERSION = -rc6

 $ gcc -v
Using built-in specs.
Target: hppa2.0-unknown-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.3.3/work/gcc-4.3.3/configure
--prefix=/usr --bindir=/usr/hppa2.0-unknown-linux-gnu/gcc-bin/4.3.3
--includedir=/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.3.3/include
--datadir=/usr/share/gcc-data/hppa2.0-unknown-linux-gnu/4.3.3
--mandir=/usr/share/gcc-data/hppa2.0-unknown-linux-gnu/4.3.3/man
--infodir=/usr/share/gcc-data/hppa2.0-unknown-linux-gnu/4.3.3/info
--with-gxx-include-dir=/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.3.3/include/g++-v4
--host=hppa2.0-unknown-linux-gnu --build=hppa2.0-unknown-linux-gnu
--disable-altivec --disable-fixed-point --disable-nls
--with-system-zlib --disable-checking --disable-werror
--enable-secureplt --disable-multilib --disable-libmudflap
--disable-libssp --disable-libgomp --enable-cld --disable-libgcj
--enable-languages=c,c++,treelang --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.3
p1.0, pie-10.1.5'
Thread model: posix
gcc version 4.3.3 (Gentoo 4.3.3 p1.0, pie-10.1.5)

$ binutils-config -l
 [1] hppa2.0-unknown-linux-gnu-2.19.1 *

[-- Attachment #2: config-parisc --]
[-- Type: application/octet-stream, Size: 30782 bytes --]

#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.29-rc6
# Fri Feb 27 13:18:27 2009
#
CONFIG_PARISC=y
CONFIG_MMU=y
CONFIG_STACK_GROWSUP=y
CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
# CONFIG_ARCH_HAS_ILOG2_U64 is not set
CONFIG_GENERIC_FIND_NEXT_BIT=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_GENERIC_TIME=y
CONFIG_TIME_LOW_RES=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_IRQ_PER_CPU=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"

#
# General setup
#
CONFIG_EXPERIMENTAL=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_SWAP=y
# CONFIG_SYSVIPC is not set
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set
# CONFIG_AUDIT is not set

#
# RCU Subsystem
#
CONFIG_CLASSIC_RCU=y
# CONFIG_TREE_RCU is not set
# CONFIG_PREEMPT_RCU is not set
# CONFIG_TREE_RCU_TRACE is not set
# CONFIG_PREEMPT_RCU_TRACE is not set
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_LOG_BUF_SHIFT=17
# CONFIG_GROUP_SCHED is not set
# CONFIG_CGROUPS is not set
# CONFIG_SYSFS_DEPRECATED_V2 is not set
# CONFIG_RELAY is not set
CONFIG_NAMESPACES=y
# CONFIG_UTS_NS is not set
# CONFIG_USER_NS is not set
# CONFIG_PID_NS is not set
# CONFIG_NET_NS is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SYSCTL=y
# CONFIG_EMBEDDED is not set
CONFIG_SYSCTL_SYSCALL=y
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_COMPAT_BRK=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_ANON_INODES=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_PCI_QUIRKS=y
CONFIG_SLUB_DEBUG=y
# CONFIG_SLAB is not set
CONFIG_SLUB=y
# CONFIG_SLOB is not set
# CONFIG_PROFILING is not set
CONFIG_HAVE_OPROFILE=y
CONFIG_USE_GENERIC_SMP_HELPERS=y
# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
CONFIG_SLABINFO=y
CONFIG_RT_MUTEXES=y
CONFIG_BASE_SMALL=0
CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not set
CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
CONFIG_INIT_ALL_POSSIBLE=y
CONFIG_STOP_MACHINE=y
CONFIG_BLOCK=y
# CONFIG_LBD is not set
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_BLK_DEV_BSG is not set
# CONFIG_BLK_DEV_INTEGRITY is not set

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
# CONFIG_IOSCHED_DEADLINE is not set
CONFIG_IOSCHED_CFQ=y
# CONFIG_DEFAULT_AS is not set
# CONFIG_DEFAULT_DEADLINE is not set
CONFIG_DEFAULT_CFQ=y
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="cfq"
# CONFIG_FREEZER is not set

#
# Processor type and features
#
# CONFIG_PA7000 is not set
# CONFIG_PA7100LC is not set
# CONFIG_PA7200 is not set
# CONFIG_PA7300LC is not set
CONFIG_PA8X00=y
CONFIG_PA20=y
CONFIG_PREFETCH=y
# CONFIG_64BIT is not set
# CONFIG_PARISC_PAGE_SIZE_4KB is not set
CONFIG_PARISC_PAGE_SIZE_16KB=y
# CONFIG_PARISC_PAGE_SIZE_64KB is not set
CONFIG_SMP=y
CONFIG_HOTPLUG_CPU=y
CONFIG_ARCH_FLATMEM_ENABLE=y
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set
CONFIG_HZ_100=y
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=100
# CONFIG_SCHED_HRTICK is not set
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
# CONFIG_SPARSEMEM_MANUAL is not set
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_PHYS_ADDR_T_64BIT is not set
CONFIG_ZONE_DMA_FLAG=0
CONFIG_VIRT_TO_BUS=y
CONFIG_UNEVICTABLE_LRU=y
# CONFIG_HPUX is not set
CONFIG_NR_CPUS=4

#
# Bus options (PCI, PCMCIA, EISA, GSC, ISA)
#
CONFIG_GSC=y
# CONFIG_HPPB is not set
# CONFIG_IOMMU_CCIO is not set
# CONFIG_GSC_LASI is not set
# CONFIG_GSC_WAX is not set
# CONFIG_EISA is not set
CONFIG_PCI=y
# CONFIG_ARCH_SUPPORTS_MSI is not set
# CONFIG_PCI_LEGACY is not set
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_STUB is not set
# CONFIG_GSC_DINO is not set
CONFIG_PCI_LBA=y
CONFIG_IOSAPIC=y
CONFIG_IOMMU_SBA=y
CONFIG_IOMMU_HELPER=y
# CONFIG_PCCARD is not set
# CONFIG_HOTPLUG_PCI is not set

#
# PA-RISC specific drivers
#
CONFIG_SUPERIO=y
CONFIG_CHASSIS_LCD_LED=y
CONFIG_PDC_CHASSIS=y
CONFIG_PDC_CHASSIS_WARN=y
CONFIG_PDC_STABLE=y

#
# Executable file formats
#
CONFIG_BINFMT_ELF=y
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
# CONFIG_HAVE_AOUT is not set
# CONFIG_BINFMT_MISC is not set
CONFIG_NET=y

#
# Networking options
#
CONFIG_COMPAT_NET_DEV_OPS=y
CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
CONFIG_UNIX=y
# CONFIG_NET_KEY is not set
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_FIB_HASH=y
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_ARPD is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_XFRM_TUNNEL is not set
# CONFIG_INET_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_BEET is not set
CONFIG_INET_LRO=y
# CONFIG_INET_DIAG is not set
# CONFIG_TCP_CONG_ADVANCED is not set
CONFIG_TCP_CONG_CUBIC=y
CONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_TCP_MD5SIG is not set
# CONFIG_IPV6 is not set
# CONFIG_NETWORK_SECMARK is not set
# CONFIG_NETFILTER is not set
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_BRIDGE is not set
# CONFIG_NET_DSA is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_SCHED is not set
# CONFIG_DCB is not set

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_HAMRADIO is not set
# CONFIG_CAN is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
# CONFIG_PHONET is not set
# CONFIG_WIRELESS is not set
# CONFIG_WIMAX is not set
# CONFIG_RFKILL is not set
# CONFIG_NET_9P is not set

#
# Device Drivers
#

#
# Generic Driver Options
#
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE=""
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_CONNECTOR is not set
# CONFIG_MTD is not set
# CONFIG_PARPORT is not set
CONFIG_BLK_DEV=y
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_SX8 is not set
# CONFIG_BLK_DEV_UB is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_BLK_DEV_HD is not set
# CONFIG_MISC_DEVICES is not set
CONFIG_HAVE_IDE=y
# CONFIG_IDE is not set

#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
# CONFIG_SCSI_TGT is not set
# CONFIG_SCSI_NETLINK is not set
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=y
# CONFIG_BLK_DEV_SR_VENDOR is not set
CONFIG_CHR_DEV_SG=y
# CONFIG_CHR_DEV_SCH is not set

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set
CONFIG_SCSI_SCAN_ASYNC=y
CONFIG_SCSI_WAIT_SCAN=m

#
# SCSI Transports
#
CONFIG_SCSI_SPI_ATTRS=y
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_LIBFC is not set
# CONFIG_FCOE is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_LASI700 is not set
# CONFIG_SCSI_STEX is not set
CONFIG_SCSI_SYM53C8XX_2=y
CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1
CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16
CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64
CONFIG_SCSI_SYM53C8XX_MMIO=y
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_ZALON is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_SRP is not set
# CONFIG_SCSI_DH is not set
CONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not set
CONFIG_SATA_PMP=y
# CONFIG_SATA_AHCI is not set
# CONFIG_SATA_SIL24 is not set
CONFIG_ATA_SFF=y
# CONFIG_SATA_SVW is not set
# CONFIG_ATA_PIIX is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SX4 is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CS5520 is not set
# CONFIG_PATA_CS5530 is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_ATA_GENERIC is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87410 is not set
CONFIG_PATA_NS87415=y
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RZ1000 is not set
# CONFIG_PATA_SC1200 is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set
# CONFIG_PATA_SCH is not set
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_AUTODETECT=y
# CONFIG_MD_LINEAR is not set
# CONFIG_MD_RAID0 is not set
CONFIG_MD_RAID1=y
# CONFIG_MD_RAID10 is not set
# CONFIG_MD_RAID456 is not set
# CONFIG_MD_MULTIPATH is not set
# CONFIG_MD_FAULTY is not set
# CONFIG_BLK_DEV_DM is not set
# CONFIG_FUSION is not set

#
# IEEE 1394 (FireWire) support
#

#
# Enable only one of the two stacks, unless you know what you are doing
#
# CONFIG_FIREWIRE is not set
# CONFIG_IEEE1394 is not set
# CONFIG_I2O is not set
CONFIG_NETDEVICES=y
# CONFIG_DUMMY is not set
# CONFIG_BONDING is not set
# CONFIG_MACVLAN is not set
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set
# CONFIG_VETH is not set
# CONFIG_ARCNET is not set
# CONFIG_PHYLIB is not set
CONFIG_NET_ETHERNET=y
CONFIG_MII=y
# CONFIG_LASI_82596 is not set
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
# CONFIG_NET_VENDOR_3COM is not set
CONFIG_NET_TULIP=y
# CONFIG_DE2104X is not set
CONFIG_TULIP=y
CONFIG_TULIP_MWI=y
CONFIG_TULIP_MMIO=y
CONFIG_TULIP_NAPI=y
CONFIG_TULIP_NAPI_HW_MITIGATION=y
# CONFIG_DE4X5 is not set
# CONFIG_WINBOND_840 is not set
# CONFIG_DM9102 is not set
# CONFIG_ULI526X is not set
# CONFIG_HP100 is not set
# CONFIG_IBM_NEW_EMAC_ZMII is not set
# CONFIG_IBM_NEW_EMAC_RGMII is not set
# CONFIG_IBM_NEW_EMAC_TAH is not set
# CONFIG_IBM_NEW_EMAC_EMAC4 is not set
# CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set
# CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set
# CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set
# CONFIG_NET_PCI is not set
# CONFIG_B44 is not set
# CONFIG_ATL2 is not set
# CONFIG_NETDEV_1000 is not set
# CONFIG_NETDEV_10000 is not set
# CONFIG_TR is not set

#
# Wireless LAN
#
# CONFIG_WLAN_PRE80211 is not set
# CONFIG_WLAN_80211 is not set
# CONFIG_IWLWIFI_LEDS is not set

#
# Enable WiMAX (Networking options) to see the WiMAX drivers
#

#
# USB Network Adapters
#
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set
# CONFIG_WAN is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
# CONFIG_NET_FC is not set
CONFIG_NETCONSOLE=y
CONFIG_NETCONSOLE_DYNAMIC=y
CONFIG_NETPOLL=y
CONFIG_NETPOLL_TRAP=y
CONFIG_NET_POLL_CONTROLLER=y
# CONFIG_ISDN is not set
# CONFIG_PHONE is not set

#
# Input device support
#
CONFIG_INPUT=y
# CONFIG_INPUT_FF_MEMLESS is not set
# CONFIG_INPUT_POLLDEV is not set

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
CONFIG_INPUT_EVDEV=y
# CONFIG_INPUT_EVBUG is not set

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ATKBD is not set
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYBOARD_STOWAWAY is not set
# CONFIG_KEYBOARD_HIL_OLD is not set
CONFIG_KEYBOARD_HIL=y
CONFIG_INPUT_MOUSE=y
# CONFIG_MOUSE_PS2 is not set
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_APPLETOUCH is not set
# CONFIG_MOUSE_BCM5974 is not set
# CONFIG_MOUSE_VSXXXAA is not set
CONFIG_MOUSE_HIL=y
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set

#
# Hardware I/O ports
#
CONFIG_SERIO=y
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_GSCPS2 is not set
CONFIG_HP_SDC=y
CONFIG_HIL_MLC=y
# CONFIG_SERIO_PCIPS2 is not set
# CONFIG_SERIO_RAW is not set
# CONFIG_GAMEPORT is not set

#
# Character devices
#
CONFIG_VT=y
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_VT_HW_CONSOLE_BINDING is not set
CONFIG_DEVKMEM=y
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_NOZOMI is not set

#
# Serial drivers
#
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_GSC=y
CONFIG_SERIAL_8250_PCI=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set

#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MUX is not set
# CONFIG_PDC_CONSOLE is not set
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
CONFIG_UNIX98_PTYS=y
# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256
# CONFIG_IPMI_HANDLER is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_TCG_TPM is not set
CONFIG_DEVPORT=y
# CONFIG_I2C is not set
# CONFIG_SPI is not set
# CONFIG_W1 is not set
# CONFIG_POWER_SUPPLY is not set
# CONFIG_HWMON is not set
# CONFIG_THERMAL is not set
# CONFIG_THERMAL_HWMON is not set
# CONFIG_WATCHDOG is not set
CONFIG_SSB_POSSIBLE=y

#
# Sonics Silicon Backplane
#
# CONFIG_SSB is not set

#
# Multifunction device drivers
#
# CONFIG_MFD_CORE is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_MFD_TMIO is not set
# CONFIG_REGULATOR is not set

#
# Multimedia devices
#

#
# Multimedia core support
#
# CONFIG_VIDEO_DEV is not set
# CONFIG_DVB_CORE is not set
# CONFIG_VIDEO_MEDIA is not set

#
# Multimedia drivers
#
# CONFIG_DAB is not set

#
# Graphics support
#
# CONFIG_AGP is not set
# CONFIG_DRM is not set
# CONFIG_VGASTATE is not set
# CONFIG_VIDEO_OUTPUT_CONTROL is not set
CONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not set
# CONFIG_FB_DDC is not set
# CONFIG_FB_BOOT_VESA_SUPPORT is not set
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
# CONFIG_FB_SYS_FILLRECT is not set
# CONFIG_FB_SYS_COPYAREA is not set
# CONFIG_FB_SYS_IMAGEBLIT is not set
# CONFIG_FB_FOREIGN_ENDIAN is not set
# CONFIG_FB_SYS_FOPS is not set
# CONFIG_FB_SVGALIB is not set
# CONFIG_FB_MACMODES is not set
# CONFIG_FB_BACKLIGHT is not set
# CONFIG_FB_MODE_HELPERS is not set
# CONFIG_FB_TILEBLITTING is not set

#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
CONFIG_FB_STI=y
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_VIA is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set

#
# Display device support
#
# CONFIG_DISPLAY_SUPPORT is not set

#
# Console display driver support
#
CONFIG_DUMMY_CONSOLE=y
CONFIG_DUMMY_CONSOLE_COLUMNS=160
CONFIG_DUMMY_CONSOLE_ROWS=64
# CONFIG_FRAMEBUFFER_CONSOLE is not set
CONFIG_STI_CONSOLE=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
# CONFIG_LOGO_LINUX_VGA16 is not set
# CONFIG_LOGO_LINUX_CLUT224 is not set
CONFIG_LOGO_PARISC_CLUT224=y
CONFIG_SOUND=y
# CONFIG_SOUND_OSS_CORE is not set
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
# CONFIG_SND_SEQUENCER is not set
# CONFIG_SND_MIXER_OSS is not set
# CONFIG_SND_PCM_OSS is not set
# CONFIG_SND_DYNAMIC_MINORS is not set
# CONFIG_SND_SUPPORT_OLD_API is not set
# CONFIG_SND_VERBOSE_PROCFS is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
CONFIG_SND_VMASTER=y
CONFIG_SND_AC97_CODEC=y
# CONFIG_SND_DRIVERS is not set
CONFIG_SND_PCI=y
CONFIG_SND_AD1889=y
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AW2 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CA0106 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_OXYGEN is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_DARLA20 is not set
# CONFIG_SND_GINA20 is not set
# CONFIG_SND_LAYLA20 is not set
# CONFIG_SND_DARLA24 is not set
# CONFIG_SND_GINA24 is not set
# CONFIG_SND_LAYLA24 is not set
# CONFIG_SND_MONA is not set
# CONFIG_SND_MIA is not set
# CONFIG_SND_ECHO3G is not set
# CONFIG_SND_INDIGO is not set
# CONFIG_SND_INDIGOIO is not set
# CONFIG_SND_INDIGODJ is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_EMU10K1X is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_HDA_INTEL is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_HIFIER is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_INTEL8X0M is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_PCXHR is not set
# CONFIG_SND_RIPTIDE is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VIA82XX_MODEM is not set
# CONFIG_SND_VIRTUOSO is not set
# CONFIG_SND_VX222 is not set
# CONFIG_SND_YMFPCI is not set
CONFIG_SND_USB=y
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_CAIAQ is not set
# CONFIG_SND_GSC is not set
# CONFIG_SND_SOC is not set
# CONFIG_SOUND_PRIME is not set
CONFIG_AC97_BUS=y
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
CONFIG_HID_DEBUG=y
# CONFIG_HIDRAW is not set

#
# USB Input Devices
#
CONFIG_USB_HID=y
# CONFIG_HID_PID is not set
# CONFIG_USB_HIDDEV is not set

#
# Special HID drivers
#
CONFIG_HID_COMPAT=y
CONFIG_HID_A4TECH=y
CONFIG_HID_APPLE=y
CONFIG_HID_BELKIN=y
CONFIG_HID_CHERRY=y
CONFIG_HID_CHICONY=y
CONFIG_HID_CYPRESS=y
CONFIG_HID_EZKEY=y
CONFIG_HID_GYRATION=y
CONFIG_HID_LOGITECH=y
# CONFIG_LOGITECH_FF is not set
# CONFIG_LOGIRUMBLEPAD2_FF is not set
CONFIG_HID_MICROSOFT=y
CONFIG_HID_MONTEREY=y
CONFIG_HID_NTRIG=y
CONFIG_HID_PANTHERLORD=y
# CONFIG_PANTHERLORD_FF is not set
CONFIG_HID_PETALYNX=y
CONFIG_HID_SAMSUNG=y
CONFIG_HID_SONY=y
CONFIG_HID_SUNPLUS=y
# CONFIG_GREENASIA_FF is not set
CONFIG_HID_TOPSEED=y
# CONFIG_THRUSTMASTER_FF is not set
# CONFIG_ZEROPLUS_FF is not set
CONFIG_USB_SUPPORT=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set
# CONFIG_USB_ANNOUNCE_NEW_DEVICES is not set

#
# Miscellaneous USB options
#
# CONFIG_USB_DEVICEFS is not set
# CONFIG_USB_DEVICE_CLASS is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_OTG is not set
# CONFIG_USB_MON is not set
# CONFIG_USB_WUSB is not set
# CONFIG_USB_WUSB_CBAF is not set

#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not set
CONFIG_USB_EHCI_HCD=y
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
# CONFIG_USB_EHCI_TT_NEWSCHED is not set
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_ISP1760_HCD is not set
CONFIG_USB_OHCI_HCD=y
# CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set
# CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
# CONFIG_USB_UHCI_HCD is not set
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
# CONFIG_USB_WHCI_HCD is not set
# CONFIG_USB_HWA_HCD is not set

#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_WDM is not set
# CONFIG_USB_TMC is not set

#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may also be needed;
#

#
# see USB_STORAGE Help for more information
#
# CONFIG_USB_STORAGE is not set
# CONFIG_USB_LIBUSUAL is not set

#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set

#
# USB port drivers
#
# CONFIG_USB_SERIAL is not set

#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_ADUTUX is not set
# CONFIG_USB_SEVSEG is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_BERRY_CHARGE is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYPRESS_CY7C63 is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_PHIDGET is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_FTDI_ELAN is not set
# CONFIG_USB_APPLEDISPLAY is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TRANCEVIBRATOR is not set
# CONFIG_USB_IOWARRIOR is not set
# CONFIG_USB_ISIGHTFW is not set
# CONFIG_USB_VST is not set
# CONFIG_USB_GADGET is not set

#
# OTG and related infrastructure
#
# CONFIG_UWB is not set
# CONFIG_MMC is not set
# CONFIG_MEMSTICK is not set
# CONFIG_NEW_LEDS is not set
# CONFIG_ACCESSIBILITY is not set
# CONFIG_INFINIBAND is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set

#
# RTC interfaces
#
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set

#
# SPI RTC drivers
#

#
# Platform RTC drivers
#
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_BQ4802 is not set
# CONFIG_RTC_DRV_V3020 is not set

#
# on-CPU RTC drivers
#
CONFIG_RTC_DRV_PARISC=y
# CONFIG_DMADEVICES is not set
# CONFIG_UIO is not set
# CONFIG_STAGING is not set

#
# File systems
#
# CONFIG_EXT2_FS is not set
CONFIG_EXT3_FS=y
# CONFIG_EXT3_FS_XATTR is not set
# CONFIG_EXT4_FS is not set
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_REISERFS_FS_XATTR is not set
# CONFIG_JFS_FS is not set
# CONFIG_FS_POSIX_ACL is not set
CONFIG_FILE_LOCKING=y
# CONFIG_XFS_FS is not set
# CONFIG_OCFS2_FS is not set
# CONFIG_BTRFS_FS is not set
CONFIG_DNOTIFY=y
CONFIG_INOTIFY=y
CONFIG_INOTIFY_USER=y
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_FUSE_FS is not set

#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set

#
# DOS/FAT/NT Filesystems
#
# CONFIG_MSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_NTFS_FS is not set

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
# CONFIG_PROC_KCORE is not set
CONFIG_PROC_SYSCTL=y
CONFIG_PROC_PAGE_MONITOR=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_CONFIGFS_FS=y
# CONFIG_MISC_FILESYSTEMS is not set
# CONFIG_NETWORK_FILESYSTEMS is not set

#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y
# CONFIG_NLS is not set
# CONFIG_DLM is not set

#
# Kernel hacking
#
CONFIG_PRINTK_TIME=y
CONFIG_ENABLE_WARN_DEPRECATED=y
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_FRAME_WARN=1024
CONFIG_MAGIC_SYSRQ=y
# CONFIG_UNUSED_SYMBOLS is not set
CONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not set
CONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_SHIRQ is not set
CONFIG_DETECT_SOFTLOCKUP=y
# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0
# CONFIG_SCHED_DEBUG is not set
# CONFIG_SCHEDSTATS is not set
# CONFIG_TIMER_STATS is not set
# CONFIG_DEBUG_OBJECTS is not set
CONFIG_SLUB_DEBUG_ON=y
# CONFIG_SLUB_STATS is not set
CONFIG_DEBUG_RT_MUTEXES=y
CONFIG_DEBUG_PI_LIST=y
# CONFIG_RT_MUTEX_TESTER is not set
CONFIG_DEBUG_SPINLOCK=y
CONFIG_DEBUG_MUTEXES=y
CONFIG_DEBUG_SPINLOCK_SLEEP=y
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_DEBUG_KOBJECT is not set
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_VM=y
# CONFIG_DEBUG_WRITECOUNT is not set
CONFIG_DEBUG_MEMORY_INIT=y
# CONFIG_DEBUG_LIST is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_BOOT_PRINTK_DELAY is not set
# CONFIG_RCU_TORTURE_TEST is not set
CONFIG_RCU_CPU_STALL_DETECTOR=y
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
# CONFIG_FAULT_INJECTION is not set
# CONFIG_SYSCTL_SYSCALL_CHECK is not set

#
# Tracers
#
# CONFIG_SCHED_TRACER is not set
# CONFIG_CONTEXT_SWITCH_TRACER is not set
# CONFIG_BOOT_TRACER is not set
# CONFIG_TRACE_BRANCH_PROFILING is not set
CONFIG_DYNAMIC_PRINTK_DEBUG=y
# CONFIG_SAMPLES is not set
# CONFIG_DEBUG_RODATA is not set

#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY is not set
# CONFIG_SECURITYFS is not set
# CONFIG_SECURITY_FILE_CAPABILITIES is not set
CONFIG_CRYPTO=y

#
# Crypto core or helper
#
# CONFIG_CRYPTO_FIPS is not set
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_HASH2=y
# CONFIG_CRYPTO_MANAGER is not set
# CONFIG_CRYPTO_MANAGER2 is not set
# CONFIG_CRYPTO_GF128MUL is not set
# CONFIG_CRYPTO_NULL is not set
# CONFIG_CRYPTO_CRYPTD is not set
# CONFIG_CRYPTO_AUTHENC is not set
# CONFIG_CRYPTO_TEST is not set

#
# Authenticated Encryption with Associated Data
#
# CONFIG_CRYPTO_CCM is not set
# CONFIG_CRYPTO_GCM is not set
# CONFIG_CRYPTO_SEQIV is not set

#
# Block modes
#
# CONFIG_CRYPTO_CBC is not set
# CONFIG_CRYPTO_CTR is not set
# CONFIG_CRYPTO_CTS is not set
# CONFIG_CRYPTO_ECB is not set
# CONFIG_CRYPTO_LRW is not set
# CONFIG_CRYPTO_PCBC is not set
# CONFIG_CRYPTO_XTS is not set

#
# Hash modes
#
# CONFIG_CRYPTO_HMAC is not set
# CONFIG_CRYPTO_XCBC is not set

#
# Digest
#
CONFIG_CRYPTO_CRC32C=y
# CONFIG_CRYPTO_MD4 is not set
# CONFIG_CRYPTO_MD5 is not set
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_RMD128 is not set
# CONFIG_CRYPTO_RMD160 is not set
# CONFIG_CRYPTO_RMD256 is not set
# CONFIG_CRYPTO_RMD320 is not set
# CONFIG_CRYPTO_SHA1 is not set
# CONFIG_CRYPTO_SHA256 is not set
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_TGR192 is not set
# CONFIG_CRYPTO_WP512 is not set

#
# Ciphers
#
# CONFIG_CRYPTO_AES is not set
# CONFIG_CRYPTO_ANUBIS is not set
# CONFIG_CRYPTO_ARC4 is not set
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_CAMELLIA is not set
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_DES is not set
# CONFIG_CRYPTO_FCRYPT is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_SALSA20 is not set
# CONFIG_CRYPTO_SEED is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_TWOFISH is not set

#
# Compression
#
# CONFIG_CRYPTO_DEFLATE is not set
# CONFIG_CRYPTO_LZO is not set

#
# Random Number Generation
#
# CONFIG_CRYPTO_ANSI_CPRNG is not set
# CONFIG_CRYPTO_HW is not set

#
# Library routines
#
CONFIG_BITREVERSE=y
CONFIG_GENERIC_FIND_LAST_BIT=y
# CONFIG_CRC_CCITT is not set
CONFIG_CRC16=y
# CONFIG_CRC_T10DIF is not set
# CONFIG_CRC_ITU_T is not set
CONFIG_CRC32=y
# CONFIG_CRC7 is not set
CONFIG_LIBCRC32C=y
CONFIG_PLIST=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_DMA=y

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-02-27 10:47 can't compile kernel for parisc Alexander Beregalov
@ 2009-02-27 12:24 ` Carlos O'Donell
  2009-02-27 13:04   ` Alexander Beregalov
  0 siblings, 1 reply; 25+ messages in thread
From: Carlos O'Donell @ 2009-02-27 12:24 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: linux-parisc

On Fri, Feb 27, 2009 at 5:47 AM, Alexander Beregalov
<a.beregalov@gmail.com> wrote:
> I am building the kernel for parisc for the first time.
> Have I missed anything important?

Where did you get your kernel source? e.g. I cloned foo, merged bar
into, foo and then compiled.

Cheers,
Carlos.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-02-27 12:24 ` Carlos O'Donell
@ 2009-02-27 13:04   ` Alexander Beregalov
  2009-02-27 13:18     ` Carlos O'Donell
  0 siblings, 1 reply; 25+ messages in thread
From: Alexander Beregalov @ 2009-02-27 13:04 UTC (permalink / raw)
  To: Carlos O'Donell; +Cc: linux-parisc

2009/2/27 Carlos O'Donell <carlos@systemhalted.org>:
> On Fri, Feb 27, 2009 at 5:47 AM, Alexander Beregalov
> <a.beregalov@gmail.com> wrote:
>> I am building the kernel for parisc for the first time.
>> Have I missed anything important?
>
> Where did you get your kernel source? e.g. I cloned foo, merged bar
> into, foo and then compiled.

I cloned current Linus's git tree.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-02-27 13:04   ` Alexander Beregalov
@ 2009-02-27 13:18     ` Carlos O'Donell
  2009-02-27 15:40       ` Alexander Beregalov
  0 siblings, 1 reply; 25+ messages in thread
From: Carlos O'Donell @ 2009-02-27 13:18 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: linux-parisc

On Fri, Feb 27, 2009 at 8:04 AM, Alexander Beregalov
<a.beregalov@gmail.com> wrote:
> 2009/2/27 Carlos O'Donell <carlos@systemhalted.org>:
>> On Fri, Feb 27, 2009 at 5:47 AM, Alexander Beregalov
>> <a.beregalov@gmail.com> wrote:
>>> I am building the kernel for parisc for the first time.
>>> Have I missed anything important?
>>
>> Where did you get your kernel source? e.g. I cloned foo, merged bar
>> into, foo and then compiled.
>
> I cloned current Linus's git tree.

I always merge from Kyle's tree (parisc maintainer), which has the
latest parisc patches. There are at least 26 patches in kyle's tree
which are not on Linus' git tree.

e.g.
git remote -v
kyle    git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6.git
origin  git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

Cheers,
Carlos.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-02-27 13:18     ` Carlos O'Donell
@ 2009-02-27 15:40       ` Alexander Beregalov
  2009-02-27 15:56         ` Carlos O'Donell
  2009-02-27 16:51         ` John David Anglin
  0 siblings, 2 replies; 25+ messages in thread
From: Alexander Beregalov @ 2009-02-27 15:40 UTC (permalink / raw)
  To: Carlos O'Donell; +Cc: linux-parisc

2009/2/27 Carlos O'Donell <carlos@systemhalted.org>:
> On Fri, Feb 27, 2009 at 8:04 AM, Alexander Beregalov
> <a.beregalov@gmail.com> wrote:
>> 2009/2/27 Carlos O'Donell <carlos@systemhalted.org>:
>>> On Fri, Feb 27, 2009 at 5:47 AM, Alexander Beregalov
>>> <a.beregalov@gmail.com> wrote:
>>>> I am building the kernel for parisc for the first time.
>>>> Have I missed anything important?
>>>
>>> Where did you get your kernel source? e.g. I cloned foo, merged bar
>>> into, foo and then compiled.
>>
>> I cloned current Linus's git tree.
>
> I always merge from Kyle's tree (parisc maintainer), which has the
> latest parisc patches. There are at least 26 patches in kyle's tree
> which are not on Linus' git tree.
>
> e.g.
> git remote -v
> kyle =C2=A0 =C2=A0git://git.kernel.org/pub/scm/linux/kernel/git/kyle/=
parisc-2.6.git
> origin =C2=A0git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/l=
inux-2.6.git

Thanks.

The same problem: ld segfaults:

do_page_fault() pid=3D15739 command=3D'ld' type=3D15 address=3D0x00000c=
84

     YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00000000000001101111111100001111 Not tainted
r00-03  0006ff0f ffffffff 407d542b fb6b2640
r04-07  408e3f6c fb6afa37 fb6afa48 00000c84
r08-11  fb6b2aa3 00000000 fb6b0520 00000000
r12-15  00000025 fb6afa0c 00068958 00000042
r16-19  4048e518 00000010 fb6af9cc 408e3f6c
r20-23  80808000 80808080 fefefeff 81010100
r24-27  fb6b25d0 fb6afa47 00000c84 000675c0
r28-31  feff0000 00000073 fb6b2c00 00000c84
sr00-03  00002e25 00000000 00000000 00002e25
sr04-07  00002e25 00002e25 00002e25 00002e25

      VZOUICununcqcqcqcqcqcrmunTDVZOUI
=46PSR: 00000000000000000000000000000000
=46PER1: 00000000
fr00-03  0000000000000000 0000000000000000 0000000000000000 00000000000=
00000
fr04-07  00000020ef80068c eec228401016a6e0 1051b81000000000 00000000000=
00000
fr08-11  ffffff9cefc16000 efc11bc000000003 00000000eec22840 00000000fff=
ff000
fr12-15  fb6afa349c4df9fe fb6afa0c10128010 fb6af9d4ac2f99e4 10ba6aa8eaf=
8382a
fr16-19  0004010f10574010 10128010efc241c8 1043a1540000000b 10574267000=
0000f
fr20-23  106002f800000000 0004000e1016aa9c fb6afa4700008000 fb6afa0c000=
00af8
fr24-27  0000000000000000 0000000000000000 00000000812df5e4 896cf5835c4=
6e68e
fr28-31  1aab4042650e89ca eb5bc7cd1016aa38 1aab404200000000 efc24240008=
00480

IASQ: 00002e25 00002e25 IAOQ: 4080f407 4080f40b
 IIR: 0f401094    ISR: 00002e25  IOR: 00000c84
 CPU:        0   CR30: c410c000 CR31: 0185e003
 ORIG_R28: 00000000
 IAOQ[0]: 0x4080f404
 IAOQ[1]: 0x4080f408
 RP(r2): 0x407d5428

The kernel is 2.6.24-gentoo-r3-livecd32 and I do not have System.map fo=
r it.
It seems I need to use another LiveCD for building kernel (in chroot
environment)
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
 in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-02-27 15:40       ` Alexander Beregalov
@ 2009-02-27 15:56         ` Carlos O'Donell
  2009-02-27 16:46           ` John David Anglin
  2009-02-27 16:51         ` John David Anglin
  1 sibling, 1 reply; 25+ messages in thread
From: Carlos O'Donell @ 2009-02-27 15:56 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: linux-parisc

On Fri, Feb 27, 2009 at 10:40 AM, Alexander Beregalov
<a.beregalov@gmail.com> wrote:
> The same problem: ld segfaults:
> do_page_fault() pid=15739 command='ld' type=15 address=0x00000c84

This is likely a bug in the static linker, or a miscompilation of the
static linker by your toolchain.

What were the binutils testsuite results for this static linker?

Cheers,
Carlos.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-02-27 15:56         ` Carlos O'Donell
@ 2009-02-27 16:46           ` John David Anglin
  2009-02-27 17:55             ` Alexander Beregalov
  2009-02-28  0:04             ` Helge Deller
  0 siblings, 2 replies; 25+ messages in thread
From: John David Anglin @ 2009-02-27 16:46 UTC (permalink / raw)
  To: Carlos O'Donell; +Cc: a.beregalov, linux-parisc

> On Fri, Feb 27, 2009 at 10:40 AM, Alexander Beregalov
> <a.beregalov@gmail.com> wrote:
> > The same problem: ld segfaults:
> > do_page_fault() pid=15739 command='ld' type=15 address=0x00000c84
> 
> This is likely a bug in the static linker, or a miscompilation of the
> static linker by your toolchain.

If the problem is fully, reproducable, then I agree its likely
a toolchain issue.  However, as indicated multiple times on the list,
we get random segfaults in various programs.  In my experience,
this occurs more frequently with kernels after 2.6.22 but I'm sure
2.6.22 is affected.

I've tried many kernels after 2.6.22 but I haven't found one that
I like.  2.6.28 doesn't crash on PA 8800 (SMP 64-bit), but I get
too many random segfaults doing GCC builds.

The extract/deposit/shift bug that Helge found recently looks 
important as it causes undefined behavior that appears to vary
from processor to processor.  A patch to check for this was recently
applied to GAS.

I was hoping to try Helge's recent changes but I don't think they
are in Kyle's parisc tree.

If the problem is reproducible, try running gdb to get a backtrace
(e.g., gdb -c core /usr/bin/ld).

I am fairly certain the binutils testsuite for ld 2.19.1 is clean.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-02-27 15:40       ` Alexander Beregalov
  2009-02-27 15:56         ` Carlos O'Donell
@ 2009-02-27 16:51         ` John David Anglin
  1 sibling, 0 replies; 25+ messages in thread
From: John David Anglin @ 2009-02-27 16:51 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: carlos, linux-parisc

> The same problem: ld segfaults:
> 
> do_page_fault() pid=15739 command='ld' type=15 address=0x00000c84
> 
>      YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
> PSW: 00000000000001101111111100001111 Not tainted
> r00-03  0006ff0f ffffffff 407d542b fb6b2640
> r04-07  408e3f6c fb6afa37 fb6afa48 00000c84
> r08-11  fb6b2aa3 00000000 fb6b0520 00000000
> r12-15  00000025 fb6afa0c 00068958 00000042
> r16-19  4048e518 00000010 fb6af9cc 408e3f6c
> r20-23  80808000 80808080 fefefeff 81010100
> r24-27  fb6b25d0 fb6afa47 00000c84 000675c0
> r28-31  feff0000 00000073 fb6b2c00 00000c84
> sr00-03  00002e25 00000000 00000000 00002e25
> sr04-07  00002e25 00002e25 00002e25 00002e25
> 
>       VZOUICununcqcqcqcqcqcrmunTDVZOUI
> FPSR: 00000000000000000000000000000000
> FPER1: 00000000
> fr00-03  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> fr04-07  00000020ef80068c eec228401016a6e0 1051b81000000000 0000000000000000
> fr08-11  ffffff9cefc16000 efc11bc000000003 00000000eec22840 00000000fffff000
> fr12-15  fb6afa349c4df9fe fb6afa0c10128010 fb6af9d4ac2f99e4 10ba6aa8eaf8382a
> fr16-19  0004010f10574010 10128010efc241c8 1043a1540000000b 105742670000000f
> fr20-23  106002f800000000 0004000e1016aa9c fb6afa4700008000 fb6afa0c00000af8
> fr24-27  0000000000000000 0000000000000000 00000000812df5e4 896cf5835c46e68e
> fr28-31  1aab4042650e89ca eb5bc7cd1016aa38 1aab404200000000 efc2424000800480
> 
> IASQ: 00002e25 00002e25 IAOQ: 4080f407 4080f40b
>  IIR: 0f401094    ISR: 00002e25  IOR: 00000c84
>  CPU:        0   CR30: c410c000 CR31: 0185e003
>  ORIG_R28: 00000000
>  IAOQ[0]: 0x4080f404
>  IAOQ[1]: 0x4080f408
>  RP(r2): 0x407d5428

The insn is:

dave@hiauly6:~$ disasm 0x0f401094
   0:   0f 40 10 94     ldw 0(r26),r20

The program is probably in libc or the dynamic loader.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-02-27 16:46           ` John David Anglin
@ 2009-02-27 17:55             ` Alexander Beregalov
  2009-02-28 16:17               ` John David Anglin
  2009-02-28  0:04             ` Helge Deller
  1 sibling, 1 reply; 25+ messages in thread
From: Alexander Beregalov @ 2009-02-27 17:55 UTC (permalink / raw)
  To: John David Anglin; +Cc: Carlos O'Donell, linux-parisc

2009/2/27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
>> On Fri, Feb 27, 2009 at 10:40 AM, Alexander Beregalov
>> <a.beregalov@gmail.com> wrote:
>> > The same problem: ld segfaults:
>> > do_page_fault() pid=3D15739 command=3D'ld' type=3D15 address=3D0x0=
0000c84
>>
>> This is likely a bug in the static linker, or a miscompilation of th=
e
>> static linker by your toolchain.
>
> If the problem is fully, reproducable, then I agree its likely
> a toolchain issue. =C2=A0However, as indicated multiple times on the =
list,
> we get random segfaults in various programs. =C2=A0In my experience,
> this occurs more frequently with kernels after 2.6.22 but I'm sure
> 2.6.22 is affected.
Yes, it is fully reproducible, I have tried 2.18 and 2.19.1 versions
of binutils.

(gdb) run
Starting program: /usr/bin/ld --build-id -o .tmp_vmlinux1 -T
arch/parisc/kernel/vmlinux.lds arch/parisc/kernel/head.o
init/built-in.o --start-group usr/built-in.o arch/parisc/mm/built-in.o
arch/parisc/kernel/built-in.o arch/parisc/math-emu/built-in.o
arch/parisc/kernel/init_task.o kernel/built-in.o mm/built-in.o
fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o
block/built-in.o lib/lib.a arch/parisc/lib/lib.a
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.3.3/libgcc.a lib/built-in.o
arch/parisc/lib/built-in.o
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.3.3/libgcc.a
drivers/built-in.o sound/built-in.o firmware/built-in.o net/built-in.o
--end-group
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
/usr/bin/ld:
Program received signal SIGSEGV, Segmentation fault.
0x4080f404 in strlen () from /lib/libc.so.6
(gdb) backtrace
#0  0x4080f404 in strlen () from /lib/libc.so.6
#1  0x407d5428 in vfprintf () from /lib/libc.so.6
#2  0x407d1304 in ?? () from /lib/libc.so.6
#3  0x407d18b0 in vfprintf () from /lib/libc.so.6
#4  0x4088359c in __vfprintf_chk () from /lib/libc.so.6
#5  0x4040cdc8 in _bfd_default_error_handler () from
/usr/lib/binutils/hppa2.0-unknown-linux-gnu/2.18/libbfd-2.18.so
#6  0x40432034 in ?? () from
/usr/lib/binutils/hppa2.0-unknown-linux-gnu/2.18/libbfd-2.18.so
#7  0x40452f58 in bfd_elf_final_link () from
/usr/lib/binutils/hppa2.0-unknown-linux-gnu/2.18/libbfd-2.18.so
#8  0x4042e764 in ?? () from
/usr/lib/binutils/hppa2.0-unknown-linux-gnu/2.18/libbfd-2.18.so
#9  0x00029f3c in ?? ()
#10 0x000295c8 in main ()

Glibc is  2.9_p20081201, I will try older version.
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
 in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-02-27 16:46           ` John David Anglin
  2009-02-27 17:55             ` Alexander Beregalov
@ 2009-02-28  0:04             ` Helge Deller
  1 sibling, 0 replies; 25+ messages in thread
From: Helge Deller @ 2009-02-28  0:04 UTC (permalink / raw)
  To: John David Anglin; +Cc: Carlos O'Donell, a.beregalov, linux-parisc

John David Anglin wrote:
> I was hoping to try Helge's recent changes but I don't think they
> are in Kyle's parisc tree.

All my (important) patches are in Kyle's tree, but you need to
take a look into the "merge" and "parisc" branches of his tree:
http://git.kernel.org/?p=linux/kernel/git/kyle/parisc-2.6.git;a=shortlog;h=merge
http://git.kernel.org/?p=linux/kernel/git/kyle/parisc-2.6.git;a=shortlog;h=parisc

Helge

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-02-27 17:55             ` Alexander Beregalov
@ 2009-02-28 16:17               ` John David Anglin
  2009-03-02 16:13                 ` Alexander Beregalov
  0 siblings, 1 reply; 25+ messages in thread
From: John David Anglin @ 2009-02-28 16:17 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: carlos, linux-parisc

> (no debugging symbols found)
> /usr/bin/ld:
> Program received signal SIGSEGV, Segmentation fault.
> 0x4080f404 in strlen () from /lib/libc.so.6
> (gdb) backtrace
> #0  0x4080f404 in strlen () from /lib/libc.so.6
> #1  0x407d5428 in vfprintf () from /lib/libc.so.6
> #2  0x407d1304 in ?? () from /lib/libc.so.6
> #3  0x407d18b0 in vfprintf () from /lib/libc.so.6
> #4  0x4088359c in __vfprintf_chk () from /lib/libc.so.6
> #5  0x4040cdc8 in _bfd_default_error_handler () from
> /usr/lib/binutils/hppa2.0-unknown-linux-gnu/2.18/libbfd-2.18.so
> #6  0x40432034 in ?? () from
> /usr/lib/binutils/hppa2.0-unknown-linux-gnu/2.18/libbfd-2.18.so
> #7  0x40452f58 in bfd_elf_final_link () from
> /usr/lib/binutils/hppa2.0-unknown-linux-gnu/2.18/libbfd-2.18.so
> #8  0x4042e764 in ?? () from
> /usr/lib/binutils/hppa2.0-unknown-linux-gnu/2.18/libbfd-2.18.so
> #9  0x00029f3c in ?? ()
> #10 0x000295c8 in main ()
> 
> Glibc is  2.9_p20081201, I will try older version.

Assuming you have the glibc debug libraries, try the same backtrace
with LD_LIBRARY_PATH set to /usr/lib/debug.  Try to determine
if a bad pointer has been passed from _bfd_default_error_handler.
This seems likely.

binutils has likely been miscompiled, or your kernel build has
exposed a problem in binutils.  We may be not handling a relocation
correctly during the final link.

If you can, would you build CVS binutils with debugging.  Disable
building shared libraries so we don't use libbfd-2.18.so.  Install
it somewhere.  Replace your current versions of as and ld.  Then
redo the kernel build.  If the same error occurs, we will have a
version that can be debugged.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-02-28 16:17               ` John David Anglin
@ 2009-03-02 16:13                 ` Alexander Beregalov
  2009-03-02 17:20                   ` John David Anglin
  0 siblings, 1 reply; 25+ messages in thread
From: Alexander Beregalov @ 2009-03-02 16:13 UTC (permalink / raw)
  To: John David Anglin; +Cc: carlos, linux-parisc

2009/2/28 John David Anglin <dave@hiauly1.hia.nrc.ca>:
>> (no debugging symbols found)
>> /usr/bin/ld:
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x4080f404 in strlen () from /lib/libc.so.6
>> (gdb) backtrace
>> #0 =C2=A00x4080f404 in strlen () from /lib/libc.so.6
>> #1 =C2=A00x407d5428 in vfprintf () from /lib/libc.so.6
>> #2 =C2=A00x407d1304 in ?? () from /lib/libc.so.6
>> #3 =C2=A00x407d18b0 in vfprintf () from /lib/libc.so.6
>> #4 =C2=A00x4088359c in __vfprintf_chk () from /lib/libc.so.6
>> #5 =C2=A00x4040cdc8 in _bfd_default_error_handler () from
>> /usr/lib/binutils/hppa2.0-unknown-linux-gnu/2.18/libbfd-2.18.so
>> #6 =C2=A00x40432034 in ?? () from
>> /usr/lib/binutils/hppa2.0-unknown-linux-gnu/2.18/libbfd-2.18.so
>> #7 =C2=A00x40452f58 in bfd_elf_final_link () from
>> /usr/lib/binutils/hppa2.0-unknown-linux-gnu/2.18/libbfd-2.18.so
>> #8 =C2=A00x4042e764 in ?? () from
>> /usr/lib/binutils/hppa2.0-unknown-linux-gnu/2.18/libbfd-2.18.so
>> #9 =C2=A00x00029f3c in ?? ()
>> #10 0x000295c8 in main ()
>>
>> Glibc is =C2=A02.9_p20081201, I will try older version.
>
> Assuming you have the glibc debug libraries, try the same backtrace
> with LD_LIBRARY_PATH set to /usr/lib/debug. =C2=A0Try to determine
> if a bad pointer has been passed from _bfd_default_error_handler.
> This seems likely.
Hi John,

Thanks for you help
Is it more clear?

binutils-2.19.1, glibc-2.9_p20081201, gcc-4.3.3

/usr/bin/ld:
Program received signal SIGSEGV, Segmentation fault.
*__GI_strlen (str=3D0xc84 <Address 0xc84 out of bounds>) at strlen.c:64
64      strlen.c: No such file or directory.
        in strlen.c
(gdb) bt
#0  *__GI_strlen (str=3D0xc84 <Address 0xc84 out of bounds>) at strlen.=
c:64
#1  0x40542530 in _IO_vfprintf_internal (s=3D0xfb0d3520,
    format=3D0xfb0d2a0c "arch/parisc/kernel/built-in.o(.text.8+0x%lx):
cannot reach %s, recompile with -ffunction-sections", ap=3D0xfb0d29cc)
    at vfprintf.c:1581
#2  0x40543284 in buffered_vfprintf (s=3D0x4064ab98, format=3D0xfb0d2a3=
7
"): cannot reach %s, recompile with -ffunction-sections",
    args=3D0xfb0d55d0) at vfprintf.c:2188
#3  0x4053f2e0 in _IO_vfprintf_internal (s=3D0x4064ab98,
    format=3D0xfb0d2a0c "arch/parisc/kernel/built-in.o(.text.8+0x%lx):
cannot reach %s, recompile with -ffunction-sections", ap=3D0xfb0d29d4)
    at vfprintf.c:1288
#4  0x405eddb4 in ___vfprintf_chk (fp=3D0x4064ab98, flag=3D1,
    format=3D0xfb0d2a0c "arch/parisc/kernel/built-in.o(.text.8+0x%lx):
cannot reach %s, recompile with -ffunction-sections", ap=3D0xfb0d29d4)
    at vfprintf_chk.c:35
#5  0x4004ec74 in _bfd_default_error_handler (fmt=3D0x400c1089 "+0x%lx)=
:
cannot reach %s, recompile with -ffunction-sections")
    at /usr/include/bits/stdio2.h:128
#6  0x40074c94 in elf32_hppa_relocate_section (output_bfd=3D0x78d28,
info=3D0x68c00, input_bfd=3D0xd9060, input_section=3D0xf21c0,
    contents=3D0x43571008 "cows can fly", relocs=3D0x12b520,
local_syms=3D0x1891808, local_sections=3D0x1b350d8)
    at /var/tmp/portage/sys-devel/binutils-2.19.1/work/binutils-2.19.1/=
bfd/elf32-hppa.c:3599
#7  0x40099480 in bfd_elf_final_link (abfd=3D0x78d28, info=3D0x68c00)
    at /var/tmp/portage/sys-devel/binutils-2.19.1/work/binutils-2.19.1/=
bfd/elflink.c:9269
#8  0x40071374 in elf32_hppa_final_link (abfd=3D0xc84, info=3D0xfb0d2a3=
7)
    at /var/tmp/portage/sys-devel/binutils-2.19.1/work/binutils-2.19.1/=
bfd/elf32-hppa.c:3266
#9  0x0002a1e8 in ?? ()
#10 0x00029904 in main ()

Should I really recompile glibc with -ffunction-sections ?

bt full:

#5  0x4004ec74 in _bfd_default_error_handler (fmt=3D0x400c1089 "+0x%lx)=
:
cannot reach %s, recompile with -ffunction-sections")
    at /usr/include/bits/stdio2.h:128
        ap =3D (va_list) 0xfb3229d4
        bufp =3D 0xfb322a31 "+0x%lx): cannot reach %s, recompile with
-ffunction-sections"
        new_fmt =3D 0xfb322a0c
"arch/parisc/kernel/built-in.o(.text.8+0x%lx): cannot reach %s,
recompile with -ffunction-sections"
        p =3D 0x400c10a1 ", recompile with -ffunction-sections"
        avail =3D 902
        buf =3D "arch/parisc/kernel/built-in.o(.text.8+0x%lx): cannot
reach %s, recompile with
-ffunction-sections\000=C3=B2=C3=B7\000\000\000\006\000\000\000\001\000=
\000\000\000\000\000\000\001=C3=BF=C3=BF=C3=B3|=C3=BF=C3=BF=C3=BF=C3=BF=
\000\000\000\001\000\000\000\000\000\000\000\000@\r0\230\000\b\003\230\=
000\000\000\000\000\000\200\000\000\000\000\000@\r0\230\000\v\v
\000\000\000\000\000\000\000\n\000\000\000\b\000\000\000\004\000\000@h\=
000\000\000F\000\000\000=C2=B1\000\000\000=C2=B1@\f\017\000"...
        __PRETTY_FUNCTION__ =3D "_bfd_default_error_handler"
#6  0x40074c94 in elf32_hppa_relocate_section (output_bfd=3D0x78d28,
info=3D0x68c00, input_bfd=3D0xd9060, input_section=3D0xf21c0,
    contents=3D0x43571008 "cows can fly", relocs=3D0x12b520,
local_syms=3D0x1891808, local_sections=3D0x1b350d8)
    at /var/tmp/portage/sys-devel/binutils-2.19.1/work/binutils-2.19.1/=
bfd/elf32-hppa.c:3599
        howto =3D <value optimized out>
        sym =3D (Elf_Internal_Sym *) 0x18920c8
        sym_name =3D <value optimized out>
        warned_undef =3D 0
        r_symndx =3D <value optimized out>
        hh =3D (struct elf32_hppa_link_hash_entry *) 0x0
        sym_sec =3D (asection *) 0xf21c0
        relocation =3D 18446744073709532028
        plabel =3D <value optimized out>
        r_type =3D 8
        rstatus =3D bfd_reloc_notsupported
        local_got_offsets =3D (bfd_vma *) 0x1384b8
        htab =3D (struct elf32_hppa_link_hash_table *) 0x7af50
        rela =3D (Elf_Internal_Rela *) 0x12bac0
        relend =3D (Elf_Internal_Rela *) 0x12c018
        __PRETTY_FUNCTION__ =3D "elf32_hppa_relocate_section"


>
> binutils has likely been miscompiled, or your kernel build has
> exposed a problem in binutils. =C2=A0We may be not handling a relocat=
ion
> correctly during the final link.
>
> If you can, would you build CVS binutils with debugging. =C2=A0Disabl=
e
> building shared libraries so we don't use libbfd-2.18.so. =C2=A0Insta=
ll
> it somewhere. =C2=A0Replace your current versions of as and ld. =C2=A0=
Then
> redo the kernel build. =C2=A0If the same error occurs, we will have a
> version that can be debugged.

I will try it some time later.
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
 in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-03-02 16:13                 ` Alexander Beregalov
@ 2009-03-02 17:20                   ` John David Anglin
  2009-03-02 18:01                     ` Alexander Beregalov
  0 siblings, 1 reply; 25+ messages in thread
From: John David Anglin @ 2009-03-02 17:20 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: carlos, linux-parisc

> Thanks for you help
> Is it more clear?

Yes.  This is good stuff.

> #6  0x40074c94 in elf32_hppa_relocate_section (output_bfd=0x78d28,
> info=0x68c00, input_bfd=0xd9060, input_section=0xf21c0,
>     contents=0x43571008 "cows can fly", relocs=0x12b520,
> local_syms=0x1891808, local_sections=0x1b350d8)

The bug is in this bit of code:

          (*_bfd_error_handler)
	    (_("%B(%A+0x%lx): cannot reach %s, recompile with -ffunction-sections"),
	      hsh->target_section->owner,
	      stub_sec,
	      (long) hsh->stub_offset,
	      hsh->bh_root.string);

Either hsh->target_section->owner or hsh->bh_root.string is NULL.  Could
you put a break on this line and print the struct hsh in gdb?

> Should I really recompile glibc with -ffunction-sections ?

It probably will help.  If you are building for a PA 2.0 machine,
-mpa-risc-2-0 may also help as the branch the branch distance for
pc-relative calls is much bigger.

I thought -ffunction-sections was always used for kernel builds.

It's a bit of a puzzle as to why this error is triggered.  I think
this is coming from ./arch/parisc/kernel/traps.c.  I wouldn't have
thought the text in this file is large enough to trigger this error.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-03-02 17:20                   ` John David Anglin
@ 2009-03-02 18:01                     ` Alexander Beregalov
  2009-03-02 18:17                       ` John David Anglin
  0 siblings, 1 reply; 25+ messages in thread
From: Alexander Beregalov @ 2009-03-02 18:01 UTC (permalink / raw)
  To: John David Anglin; +Cc: carlos, linux-parisc

> Either hsh->target_section->owner or hsh->bh_root.string is NULL. =C2=
=A0Could
> you put a break on this line and print the struct hsh in gdb?

bfd/elf32-hppa.c:
3568   /* Make sure we can reach the stub.  */
3569   if (max_branch_offset !=3D 0
3570       && value + addend + max_branch_offset >=3D 2*max_branch_offs=
et)
3571     {
3572       (*_bfd_error_handler)
3573         (_("%B(%A+0x%lx): cannot reach %s, recompile with
-ffunction-sections"),
3574          input_bfd,
3575          input_section,
3576          offset,
3577          hsh->bh_root.string);
3578       bfd_set_error (bfd_error_bad_value);
3579       return bfd_reloc_notsupported;
3580     }

(gdb) step
3572          (*_bfd_error_handler)

(gdb) info locals
howto =3D <value optimized out>
sym =3D (Elf_Internal_Sym *) 0x189ed40
sym_name =3D <value optimized out>
warned_undef =3D 0
r_symndx =3D <value optimized out>
hh =3D (struct elf32_hppa_link_hash_entry *) 0x0
sym_sec =3D (asection *) 0xf0870
relocation =3D 18446744073709532028
plabel =3D <value optimized out>
r_type =3D 8
rstatus =3D bfd_reloc_notsupported
local_got_offsets =3D (bfd_vma *) 0x137018
htab =3D (struct elf32_hppa_link_hash_table *) 0x78f70
rela =3D (Elf_Internal_Rela *) 0x12abd0
relend =3D (Elf_Internal_Rela *) 0x12b128
__PRETTY_FUNCTION__ =3D "elf32_hppa_relocate_section"

(gdb) print input_bfd
$4 =3D (bfd *) 0xae460

(gdb) print input_section
$5 =3D (asection *) 0xf0870

(gdb) print offset
No symbol "offset" in current context.

(gdb) print hsh->bh_root.string
No symbol "hsh" in current context.

(gdb) step
/usr/bin/ld:
Program received signal SIGSEGV, Segmentation fault.

I do not understand why there is no such symbols.
>
>> Should I really recompile glibc with -ffunction-sections ?
>
> It probably will help. =C2=A0If you are building for a PA 2.0 machine=
,
> -mpa-risc-2-0 may also help as the branch the branch distance for
> pc-relative calls is much bigger.
>
> I thought -ffunction-sections was always used for kernel builds.
>
> It's a bit of a puzzle as to why this error is triggered. =C2=A0I thi=
nk
> this is coming from ./arch/parisc/kernel/traps.c. =C2=A0I wouldn't ha=
ve
> thought the text in this file is large enough to trigger this error.
>
> Dave
> --
> J. David Anglin =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0dave.ang=
lin@nrc-cnrc.gc.ca
> National Research Council of Canada =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 =C2=A0 =C2=A0(613) 990-0752 (FAX: 952-6602)
>
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
 in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-03-02 18:01                     ` Alexander Beregalov
@ 2009-03-02 18:17                       ` John David Anglin
  2009-03-02 18:28                         ` John David Anglin
  2009-03-03 12:57                         ` Alexander Beregalov
  0 siblings, 2 replies; 25+ messages in thread
From: John David Anglin @ 2009-03-02 18:17 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: carlos, linux-parisc

> > Either hsh->target_section->owner or hsh->bh_root.string is NULL. =C2=A0C=
> ould
> > you put a break on this line and print the struct hsh in gdb?
> 
> bfd/elf32-hppa.c:
> 3568   /* Make sure we can reach the stub.  */
> 3569   if (max_branch_offset !=3D 0
> 3570       && value + addend + max_branch_offset >=3D 2*max_branch_offset)
> 3571     {
> 3572       (*_bfd_error_handler)
> 3573         (_("%B(%A+0x%lx): cannot reach %s, recompile with
> -ffunction-sections"),
> 3574          input_bfd,
> 3575          input_section,
> 3576          offset,
> 3577          hsh->bh_root.string);
> 3578       bfd_set_error (bfd_error_bad_value);
> 3579       return bfd_reloc_notsupported;
> 3580     }
> 
> (gdb) step
> 3572          (*_bfd_error_handler)

...

> (gdb) print hsh->bh_root.string
> No symbol "hsh" in current context.

> I do not understand why there is no such symbols.

As soon as you step into the error handler, you change the function
context.  So, there is no local symbol hsh there.  It's also possible
the symbol hsh is optimized away, particularly because of the way it's
derived fro the argument bh.

If hsh is not available, try bh->bh_root.  hsh is derived from
bh as follows:

  hsh = (struct bfd_hash_entry *) bh;

It's always tricky to debug optimized code.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-03-02 18:17                       ` John David Anglin
@ 2009-03-02 18:28                         ` John David Anglin
  2009-03-03 12:57                         ` Alexander Beregalov
  1 sibling, 0 replies; 25+ messages in thread
From: John David Anglin @ 2009-03-02 18:28 UTC (permalink / raw)
  To: John David Anglin; +Cc: a.beregalov, carlos, linux-parisc

> > > Either hsh->target_section->owner or hsh->bh_root.string is NULL. =C2=A0C=
> > ould
> > > you put a break on this line and print the struct hsh in gdb?
> > 
> > bfd/elf32-hppa.c:
> > 3568   /* Make sure we can reach the stub.  */
> > 3569   if (max_branch_offset !=3D 0
> > 3570       && value + addend + max_branch_offset >=3D 2*max_branch_offset)
> > 3571     {

Another thought -- add one or more BFD_ASSERTs before the call.
For example,

	       BFD_ASSERT (hsh->bh_root.string);

> > 3572       (*_bfd_error_handler)
> > 3573         (_("%B(%A+0x%lx): cannot reach %s, recompile with
> > -ffunction-sections"),
> > 3574          input_bfd,
> > 3575          input_section,
> > 3576          offset,
> > 3577          hsh->bh_root.string);
> > 3578       bfd_set_error (bfd_error_bad_value);
> > 3579       return bfd_reloc_notsupported;
> > 3580     }

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-03-02 18:17                       ` John David Anglin
  2009-03-02 18:28                         ` John David Anglin
@ 2009-03-03 12:57                         ` Alexander Beregalov
  2009-03-03 16:33                           ` John David Anglin
  1 sibling, 1 reply; 25+ messages in thread
From: Alexander Beregalov @ 2009-03-03 12:57 UTC (permalink / raw)
  To: John David Anglin; +Cc: carlos, linux-parisc

>> bfd/elf32-hppa.c:
>> 3568 =C2=A0 /* Make sure we can reach the stub. =C2=A0*/
>> 3569 =C2=A0 if (max_branch_offset !=3D3D 0
>> 3570 =C2=A0 =C2=A0 =C2=A0 && value + addend + max_branch_offset >=3D=
3D 2*max_branch_offset)
>> 3571 =C2=A0 =C2=A0 {
>> 3572 =C2=A0 =C2=A0 =C2=A0 (*_bfd_error_handler)
>> 3573 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (_("%B(%A+0x%lx): cannot reach %s, =
recompile with
>> -ffunction-sections"),
>> 3574 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0input_bfd,
>> 3575 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0input_section,
>> 3576 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0offset,
>> 3577 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0hsh->bh_root.string);
>> 3578 =C2=A0 =C2=A0 =C2=A0 bfd_set_error (bfd_error_bad_value);
>> 3579 =C2=A0 =C2=A0 =C2=A0 return bfd_reloc_notsupported;
>> 3580 =C2=A0 =C2=A0 }
>>
> As soon as you step into the error handler, you change the function
> context. =C2=A0So, there is no local symbol hsh there. =C2=A0It's als=
o possible
> the symbol hsh is optimized away, particularly because of the way it'=
s
> derived fro the argument bh.

Ok, I have recompiled binutils with -O0:

Breakpoint 1, final_link_relocate (input_section=3D0x105770,
contents=3D0x43661008 "cows can fly", rela=3D0x13fae8,
value=3D18446744073709532028,
    htab=3D0x8df70, sym_sec=3D0x105770, hh=3D0x0, info=3D0x7b890)
    at /var/tmp/portage/sys-devel/binutils-2.19.51.0.2/work/binutils-2.=
19.51.0.2/bfd/elf32-hppa.c:3572
3572          (*_bfd_error_handler)
(gdb) info locals
insn =3D -2021646334
r_type =3D 8
orig_r_type =3D 8
howto =3D (const struct reloc_howto_struct *) 0x403fb128
r_format =3D 12
r_field =3D e_fsel
-> input_bfd =3D (bfd *) 0xc3460
-> offset =3D 3204
max_branch_offset =3D 8192
hit_data =3D (bfd_byte *) 0x43661c8c "\207\200 \002\b\017\002B\b\020\00=
2^=C3=A8@=C3=80"
addend =3D -8
location =3D 269536388
-> hsh =3D (struct elf32_hppa_stub_hash_entry *) 0x933b8
val =3D 0

(gdb) print hsh->bh_root.string
$1 =3D 0x13919a8 "000000b2_b2:46+4068"

(gdb) print input_section
$2 =3D (asection *) 0x105770

Hm, they are not NULL.

ld segfaults on the next line again.
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
 in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-03-03 12:57                         ` Alexander Beregalov
@ 2009-03-03 16:33                           ` John David Anglin
  2009-03-18 11:55                             ` Alexander Beregalov
  0 siblings, 1 reply; 25+ messages in thread
From: John David Anglin @ 2009-03-03 16:33 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: carlos, linux-parisc

> (gdb) print hsh->bh_root.string
> $1 =3D 0x13919a8 "000000b2_b2:46+4068"
> 
> (gdb) print input_section
> $2 =3D (asection *) 0x105770
> 
> Hm, they are not NULL.
> 
> ld segfaults on the next line again.

Ok, I think we need to look deeper (i.e., _bfd_default_error_handler
in bfd.c).  We might get this problem is _bfd_error_program_name is
corrupt.  Try stepping through _bfd_default_error_handler.

Thanks,
Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-03-03 16:33                           ` John David Anglin
@ 2009-03-18 11:55                             ` Alexander Beregalov
  2009-03-18 14:00                               ` John David Anglin
                                                 ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Alexander Beregalov @ 2009-03-18 11:55 UTC (permalink / raw)
  To: John David Anglin; +Cc: carlos, linux-parisc

Hi

ld now does not segfault

http://lists.gnu.org/archive/html/bug-binutils/2009-03/msg00105.html

but I still can not build kernel.

   ld    -r -o init/built-in.o init/main.o init/version.o
init/mounts.o init/noinitramfs.o init/calibrate.o
  ld  --build-id -o .tmp_vmlinux1 -T arch/parisc/kernel/vmlinux.lds
arch/parisc/kernel/head.o   init/built-in.o --start-group
usr/built-in.o  arch/parisc/mm/built-in.o
arch/parisc/kernel/built-in.o  arch/parisc/math-emu/built-in.o
arch/parisc/kernel/init_task.o  kernel/built-in.o  mm/built-in.o
fs/built-in.o  ipc/built-in.o  security/built-in.o  crypto/built-in.o
block/built-in.o  lib/lib.a  arch/parisc/lib/lib.a `gcc
-print-libgcc-file-name`  lib/built-in.o  arch/parisc/lib/built-in.o
`gcc -print-libgcc-file-name`  drivers/built-in.o  sound/built-in.o
firmware/built-in.o  net/built-in.o --end-group
ld: arch/parisc/kernel/built-in.o(.text+0xc84): cannot reach
000000b2_b2:46+4068, recompile with -ffunction-sections
ld: arch/parisc/kernel/built-in.o(.text+0xc84): cannot handle
R_PARISC_PCREL12F for .text

I have recompiled kernel with -ffunction-sections, but still the same problem.

diff --git a/Makefile b/Makefile
index 2e2f4a4..61b09b2 100644
--- a/Makefile
+++ b/Makefile
@@ -346,7 +346,7 @@ KBUILD_CPPFLAGS := -D__KERNEL__

 KBUILD_CFLAGS   := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
                   -fno-strict-aliasing -fno-common \
-                  -Werror-implicit-function-declaration
+                  -Werror-implicit-function-declaration -ffunction-sections
 KBUILD_AFLAGS   := -D__ASSEMBLY__

 # Read KERNELRELEASE from include/config/kernel.release (if it exists)


gcc version 4.3.3 (Gentoo 4.3.3-r1 p1.1, pie-10.1.5)

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-03-18 11:55                             ` Alexander Beregalov
@ 2009-03-18 14:00                               ` John David Anglin
  2009-04-02 15:55                                 ` Kyle McMartin
  2009-03-20 21:40                               ` Grant Grundler
  2009-04-02 15:52                               ` Kyle McMartin
  2 siblings, 1 reply; 25+ messages in thread
From: John David Anglin @ 2009-03-18 14:00 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: carlos, linux-parisc

> but I still can not build kernel.
> 
>    ld    -r -o init/built-in.o init/main.o init/version.o
> init/mounts.o init/noinitramfs.o init/calibrate.o
>   ld  --build-id -o .tmp_vmlinux1 -T arch/parisc/kernel/vmlinux.lds
> arch/parisc/kernel/head.o   init/built-in.o --start-group
> usr/built-in.o  arch/parisc/mm/built-in.o
> arch/parisc/kernel/built-in.o  arch/parisc/math-emu/built-in.o
> arch/parisc/kernel/init_task.o  kernel/built-in.o  mm/built-in.o
> fs/built-in.o  ipc/built-in.o  security/built-in.o  crypto/built-in.o
> block/built-in.o  lib/lib.a  arch/parisc/lib/lib.a `gcc
> -print-libgcc-file-name`  lib/built-in.o  arch/parisc/lib/built-in.o
> `gcc -print-libgcc-file-name`  drivers/built-in.o  sound/built-in.o
> firmware/built-in.o  net/built-in.o --end-group
> ld: arch/parisc/kernel/built-in.o(.text+0xc84): cannot reach
> 000000b2_b2:46+4068, recompile with -ffunction-sections
> ld: arch/parisc/kernel/built-in.o(.text+0xc84): cannot handle
> R_PARISC_PCREL12F for .text
> 
> I have recompiled kernel with -ffunction-sections, but still the same problem.

The branch target is out of range.  The message "recompile with
-ffunction-sections" is somewhat misleading in this case.

-ffunction-sections won't work because GCC doesn't generate calls
with instructions that would use a R_PARISC_PCREL12F relocation.
This is some kind of conditional branch.  Probably, it's in some
kernel assembly code.

You need to use nm, objdump and/or readelf to determine which file
contributing to built-in.o contains the branch.  I looked in one of
my builds and didn't see this relocation.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-03-18 11:55                             ` Alexander Beregalov
  2009-03-18 14:00                               ` John David Anglin
@ 2009-03-20 21:40                               ` Grant Grundler
  2009-03-21  1:56                                 ` Alexander Beregalov
  2009-04-02 15:52                               ` Kyle McMartin
  2 siblings, 1 reply; 25+ messages in thread
From: Grant Grundler @ 2009-03-20 21:40 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: John David Anglin, carlos, linux-parisc

On Wed, Mar 18, 2009 at 02:55:13PM +0300, Alexander Beregalov wrote:
> ld: arch/parisc/kernel/built-in.o(.text+0xc84): cannot handle
> R_PARISC_PCREL12F for .text

Alexander,
can you post the .config file used for this build?
It would be the easiest way for someone else to reproduce the problem.

thanks,
grant

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-03-20 21:40                               ` Grant Grundler
@ 2009-03-21  1:56                                 ` Alexander Beregalov
  0 siblings, 0 replies; 25+ messages in thread
From: Alexander Beregalov @ 2009-03-21  1:56 UTC (permalink / raw)
  To: Grant Grundler; +Cc: John David Anglin, carlos, linux-parisc

2009/3/21 Grant Grundler <grundler@parisc-linux.org>:
> On Wed, Mar 18, 2009 at 02:55:13PM +0300, Alexander Beregalov wrote:
>> ld: arch/parisc/kernel/built-in.o(.text+0xc84): cannot handle
>> R_PARISC_PCREL12F for .text
>
> Alexander,
> can you post the .config file used for this build?
> It would be the easiest way for someone else to reproduce the problem.

Hi

It is in the first mail.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-03-18 11:55                             ` Alexander Beregalov
  2009-03-18 14:00                               ` John David Anglin
  2009-03-20 21:40                               ` Grant Grundler
@ 2009-04-02 15:52                               ` Kyle McMartin
  2 siblings, 0 replies; 25+ messages in thread
From: Kyle McMartin @ 2009-04-02 15:52 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: John David Anglin, carlos, linux-parisc

On Wed, Mar 18, 2009 at 02:55:13PM +0300, Alexander Beregalov wrote:
> 
> I have recompiled kernel with -ffunction-sections, but still the same problem.
> 

This is wrong... the kernel is always built with -ffunction-sections,
see arch/parisc/Makefile:

# Without this, "ld -r" results in .text sections that are too big
# (> 0x40000) for branches to reach stubs.
cflags-y        += -ffunction-sections

cheers, Kyle

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-03-18 14:00                               ` John David Anglin
@ 2009-04-02 15:55                                 ` Kyle McMartin
  2009-04-03 13:57                                   ` Alexander Beregalov
  0 siblings, 1 reply; 25+ messages in thread
From: Kyle McMartin @ 2009-04-02 15:55 UTC (permalink / raw)
  To: John David Anglin; +Cc: Alexander Beregalov, carlos, linux-parisc

On Wed, Mar 18, 2009 at 10:00:26AM -0400, John David Anglin wrote:
> > ld: arch/parisc/kernel/built-in.o(.text+0xc84): cannot reach
> > 000000b2_b2:46+4068, recompile with -ffunction-sections
> > ld: arch/parisc/kernel/built-in.o(.text+0xc84): cannot handle
> > R_PARISC_PCREL12F for .text
> > 
> 
> -ffunction-sections won't work because GCC doesn't generate calls
> with instructions that would use a R_PARISC_PCREL12F relocation.
> This is some kind of conditional branch.  Probably, it's in some
> kernel assembly code.
> 
> You need to use nm, objdump and/or readelf to determine which file
> contributing to built-in.o contains the branch.  I looked in one of
> my builds and didn't see this relocation.
> 

This is... somewhat special. I've never seen this either. Possibly I
should install a Gentoo machine so I can reproduce with their toolchain?

objdump -dr arch/parisc/kernel/built-in.o | grep PCREL12F should tell
you where the problem is. I agree with JDA, judging by the fact that
it's the kernel/built-in.o, I would guess it's assembler as well.

(Sorry for taking so long to get to this thread, I must have missed it
 while I was in Boston.)

regards, Kyle

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: can't compile kernel for parisc
  2009-04-02 15:55                                 ` Kyle McMartin
@ 2009-04-03 13:57                                   ` Alexander Beregalov
  0 siblings, 0 replies; 25+ messages in thread
From: Alexander Beregalov @ 2009-04-03 13:57 UTC (permalink / raw)
  To: Kyle McMartin; +Cc: John David Anglin, carlos, linux-parisc

2009/4/2 Kyle McMartin <kyle@mcmartin.ca>:
> On Wed, Mar 18, 2009 at 10:00:26AM -0400, John David Anglin wrote:
>> > ld: arch/parisc/kernel/built-in.o(.text+0xc84): cannot reach
>> > 000000b2_b2:46+4068, recompile with -ffunction-sections
>> > ld: arch/parisc/kernel/built-in.o(.text+0xc84): cannot handle
>> > R_PARISC_PCREL12F for .text
>> >
>>
>> -ffunction-sections won't work because GCC doesn't generate calls
>> with instructions that would use a R_PARISC_PCREL12F relocation.
>> This is some kind of conditional branch. =C2=A0Probably, it's in som=
e
>> kernel assembly code.
>>
>> You need to use nm, objdump and/or readelf to determine which file
>> contributing to built-in.o contains the branch. =C2=A0I looked in on=
e of
>> my builds and didn't see this relocation.
>>
>
> This is... somewhat special. I've never seen this either. Possibly I
> should install a Gentoo machine so I can reproduce with their toolcha=
in?
>
> objdump -dr arch/parisc/kernel/built-in.o | grep PCREL12F should tell
> you where the problem is. I agree with JDA, judging by the fact that
> it's the kernel/built-in.o, I would guess it's assembler as well.
Thanks.
now I have

ld: drivers/built-in.o(.devinit.text+0x3f520): cannot reach
00002ea1_memcpy+0, recompile with -ffunction-sections
ld: drivers/built-in.o(.devinit.text+0x3f520): cannot handle
R_PARISC_PCREL17F for memcpy


0003f044 <niu_get_invariants>:
<..>
0003f0ac <.L1724>:
<..>
3f510:       40 bc 01 b0     ldb d8(r5),ret0
3f514:       37 9c 00 02     ldo 1(ret0),ret0
3f518:       60 bc 01 b0     stb ret0,d8(r5)
3f51c:       40 b8 01 e8     ldb f4(r5),r24
3f520:       e8 40 00 00     b,l 3f528 <.L1724+0x47c>,rp
                   3f520: R_PARISC_PCREL17F        memcpy
3f524:       34 ba 02 88     ldo 144(r5),r26
3f528:       e8 5f 04 25     b,l 3e740 <niu_get_and_validate_port>,rp
3f52c:       08 12 02 5a     copy r18,r26
3f530:       c8 7c ae c4     movb,<> ret0,r3,40c98 <.L1884+0x5c>
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
 in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2009-04-03 13:57 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-27 10:47 can't compile kernel for parisc Alexander Beregalov
2009-02-27 12:24 ` Carlos O'Donell
2009-02-27 13:04   ` Alexander Beregalov
2009-02-27 13:18     ` Carlos O'Donell
2009-02-27 15:40       ` Alexander Beregalov
2009-02-27 15:56         ` Carlos O'Donell
2009-02-27 16:46           ` John David Anglin
2009-02-27 17:55             ` Alexander Beregalov
2009-02-28 16:17               ` John David Anglin
2009-03-02 16:13                 ` Alexander Beregalov
2009-03-02 17:20                   ` John David Anglin
2009-03-02 18:01                     ` Alexander Beregalov
2009-03-02 18:17                       ` John David Anglin
2009-03-02 18:28                         ` John David Anglin
2009-03-03 12:57                         ` Alexander Beregalov
2009-03-03 16:33                           ` John David Anglin
2009-03-18 11:55                             ` Alexander Beregalov
2009-03-18 14:00                               ` John David Anglin
2009-04-02 15:55                                 ` Kyle McMartin
2009-04-03 13:57                                   ` Alexander Beregalov
2009-03-20 21:40                               ` Grant Grundler
2009-03-21  1:56                                 ` Alexander Beregalov
2009-04-02 15:52                               ` Kyle McMartin
2009-02-28  0:04             ` Helge Deller
2009-02-27 16:51         ` John David Anglin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.