svn commit: r213584 - in projects/sv: . bin/chflags bin/ps bin/rm
bin/stty contrib/binutils/bfd contrib/binutils/include/coff
contrib/ee contrib/llvm contrib/llvm/autoconf
contrib/llvm/include/llvm...
Attilio Rao
attilio at FreeBSD.org
Fri Oct 8 16:33:26 UTC 2010
Author: attilio
Date: Fri Oct 8 16:33:25 2010
New Revision: 213584
URL: http://svn.freebsd.org/changeset/base/213584
Log:
MFC @ 213582
Added:
projects/sv/contrib/binutils/bfd/coff-x86_64.c
- copied unchanged from r213583, head/contrib/binutils/bfd/coff-x86_64.c
projects/sv/contrib/binutils/bfd/efi-app-x86_64.c
- copied unchanged from r213583, head/contrib/binutils/bfd/efi-app-x86_64.c
projects/sv/contrib/binutils/include/coff/x86_64.h
- copied unchanged from r213583, head/contrib/binutils/include/coff/x86_64.h
projects/sv/include/unwind.h
- copied unchanged from r213583, head/include/unwind.h
projects/sv/sys/arm/at91/at91_pio_sam9g20.h
- copied unchanged from r213583, head/sys/arm/at91/at91_pio_sam9g20.h
projects/sv/sys/arm/at91/at91_reset.S
- copied unchanged from r213583, head/sys/arm/at91/at91_reset.S
projects/sv/sys/arm/at91/at91_rst.c
- copied unchanged from r213583, head/sys/arm/at91/at91_rst.c
projects/sv/sys/arm/at91/at91_rstreg.h
- copied unchanged from r213583, head/sys/arm/at91/at91_rstreg.h
projects/sv/sys/arm/at91/at91_wdt.c
- copied unchanged from r213583, head/sys/arm/at91/at91_wdt.c
projects/sv/sys/arm/at91/at91_wdtreg.h
- copied unchanged from r213583, head/sys/arm/at91/at91_wdtreg.h
projects/sv/sys/arm/at91/at91reg.h
- copied unchanged from r213583, head/sys/arm/at91/at91reg.h
projects/sv/sys/arm/at91/at91rm9200.c
- copied unchanged from r213583, head/sys/arm/at91/at91rm9200.c
projects/sv/sys/arm/at91/at91sam9260.c
- copied unchanged from r213583, head/sys/arm/at91/at91sam9260.c
projects/sv/sys/arm/at91/at91sam9260reg.h
- copied unchanged from r213583, head/sys/arm/at91/at91sam9260reg.h
projects/sv/sys/arm/at91/at91sam9g20.c
- copied unchanged from r213583, head/sys/arm/at91/at91sam9g20.c
projects/sv/sys/arm/at91/board_qila9g20.c
- copied unchanged from r213583, head/sys/arm/at91/board_qila9g20.c
projects/sv/sys/arm/at91/board_sam9g20ek.c
- copied unchanged from r213583, head/sys/arm/at91/board_sam9g20ek.c
projects/sv/sys/arm/at91/std.qila9g20
- copied unchanged from r213583, head/sys/arm/at91/std.qila9g20
projects/sv/sys/arm/at91/std.sam9g20ek
- copied unchanged from r213583, head/sys/arm/at91/std.sam9g20ek
projects/sv/sys/arm/conf/QILA9G20
- copied unchanged from r213583, head/sys/arm/conf/QILA9G20
projects/sv/sys/arm/conf/QILA9G20.hints
- copied unchanged from r213583, head/sys/arm/conf/QILA9G20.hints
projects/sv/sys/arm/conf/SAM9G20EK
- copied unchanged from r213583, head/sys/arm/conf/SAM9G20EK
projects/sv/sys/arm/conf/SAM9G20EK.hints
- copied unchanged from r213583, head/sys/arm/conf/SAM9G20EK.hints
projects/sv/sys/dev/usb/controller/xhci.c
- copied unchanged from r213583, head/sys/dev/usb/controller/xhci.c
projects/sv/sys/dev/usb/controller/xhci.h
- copied unchanged from r213583, head/sys/dev/usb/controller/xhci.h
projects/sv/sys/dev/usb/controller/xhci_pci.c
- copied unchanged from r213583, head/sys/dev/usb/controller/xhci_pci.c
projects/sv/sys/dev/usb/controller/xhcireg.h
- copied unchanged from r213583, head/sys/dev/usb/controller/xhcireg.h
projects/sv/sys/kern/vfs_mountroot.c
- copied unchanged from r213583, head/sys/kern/vfs_mountroot.c
projects/sv/sys/mips/cavium/octe/ethernet-mv88e61xx.c
- copied unchanged from r213583, head/sys/mips/cavium/octe/ethernet-mv88e61xx.c
projects/sv/sys/mips/cavium/octe/ethernet-mv88e61xx.h
- copied unchanged from r213583, head/sys/mips/cavium/octe/ethernet-mv88e61xx.h
projects/sv/sys/modules/usb/xhci/
- copied from r213583, head/sys/modules/usb/xhci/
projects/sv/tools/build/options/WITH_GPIO
- copied unchanged from r213583, head/tools/build/options/WITH_GPIO
projects/sv/tools/regression/usr.bin/tr/regress.0c.out
- copied unchanged from r213583, head/tools/regression/usr.bin/tr/regress.0c.out
projects/sv/tools/regression/usr.bin/tr/regress.0d.out
- copied unchanged from r213583, head/tools/regression/usr.bin/tr/regress.0d.out
projects/sv/tools/tools/nanobsd/rescue/Pkg/
- copied from r213583, head/tools/tools/nanobsd/rescue/Pkg/
projects/sv/tools/tools/nanobsd/rescue/build.sh
- copied unchanged from r213583, head/tools/tools/nanobsd/rescue/build.sh
projects/sv/usr.bin/man/
- copied from r213583, head/usr.bin/man/
Replaced:
projects/sv/sys/kern/Makefile
- copied unchanged from r213583, head/sys/kern/Makefile
Deleted:
projects/sv/contrib/llvm/tools/llvm2cpp/
projects/sv/contrib/llvm/tools/llvmc/driver/
projects/sv/contrib/llvm/tools/llvmc/example/
projects/sv/contrib/llvm/tools/llvmc/examples/
projects/sv/contrib/llvm/tools/llvmc/plugins/
projects/sv/contrib/llvm/utils/lit/ExampleTests/
projects/sv/contrib/llvm/utils/lit/ExampleTests.ObjDir/
projects/sv/contrib/llvm/utils/unittest/googletest/src/
projects/sv/lib/libc/amd64/gen/ldexp.c
projects/sv/lib/libc/i386/gen/ldexp.c
projects/sv/lib/libc/i386/string/strlen.S
projects/sv/sys/arm/at91/at91_pio_sam9.h
projects/sv/sys/arm/at91/at91sam9.c
projects/sv/sys/arm/at91/at91sam9_machdep.c
projects/sv/sys/dev/mii/axphyreg.h
projects/sv/tools/tools/nanobsd/rescue/AMD64
projects/sv/tools/tools/nanobsd/rescue/I386
projects/sv/tools/tools/nanobsd/rescue/isoamd64.sh
projects/sv/tools/tools/nanobsd/rescue/isoi386.sh
Modified:
projects/sv/ObsoleteFiles.inc
projects/sv/UPDATING
projects/sv/bin/chflags/chflags.1
projects/sv/bin/ps/keyword.c
projects/sv/bin/ps/ps.1
projects/sv/bin/rm/rm.1
projects/sv/bin/rm/rm.c
projects/sv/bin/stty/stty.1
projects/sv/contrib/binutils/bfd/targets.c
projects/sv/contrib/binutils/include/coff/internal.h
projects/sv/contrib/ee/ee.c
projects/sv/contrib/ee/ee_version.h
projects/sv/contrib/llvm/Makefile.rules
projects/sv/contrib/llvm/autoconf/configure.ac
projects/sv/contrib/llvm/configure
projects/sv/contrib/llvm/include/llvm/ADT/SmallVector.h
projects/sv/contrib/llvm/lib/CodeGen/MachineCSE.cpp
projects/sv/contrib/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
projects/sv/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp
projects/sv/contrib/llvm/tools/clang/lib/Basic/Version.cpp
projects/sv/contrib/llvm/tools/clang/lib/Driver/Driver.cpp
projects/sv/contrib/tzdata/asia
projects/sv/contrib/tzdata/zone.tab
projects/sv/crypto/openssh/session.c
projects/sv/etc/Makefile
projects/sv/etc/defaults/rc.conf
projects/sv/etc/rc.d/defaultroute
projects/sv/games/caesar/caesar.6
projects/sv/games/fortune/datfiles/fortunes
projects/sv/gnu/usr.bin/Makefile
projects/sv/gnu/usr.bin/binutils/libbfd/Makefile.amd64
projects/sv/gnu/usr.bin/groff/tmac/mdoc.local
projects/sv/lib/clang/include/clang/Basic/Version.inc
projects/sv/lib/libarchive/libarchive-formats.5
projects/sv/lib/libc/gen/confstr.3
projects/sv/lib/libc/gen/getcap.3
projects/sv/lib/libc/gen/stringlist.3
projects/sv/lib/libc/gen/sysctl.3
projects/sv/lib/libc/i386/string/Makefile.inc
projects/sv/lib/libc/locale/localeconv.3
projects/sv/lib/libc/locale/setlocale.3
projects/sv/lib/libc/net/getnetent.3
projects/sv/lib/libc/net/getproto.c
projects/sv/lib/libc/net/getprotoent.3
projects/sv/lib/libc/net/getprotoent.c
projects/sv/lib/libc/net/getprotoname.c
projects/sv/lib/libc/net/nsdispatch.3
projects/sv/lib/libc/net/nsdispatch.c
projects/sv/lib/libc/posix1e/acl_add_flag_np.3
projects/sv/lib/libc/posix1e/acl_add_perm.3
projects/sv/lib/libc/posix1e/acl_get.3
projects/sv/lib/libc/posix1e/acl_set.3
projects/sv/lib/libc/posix1e/acl_set_entry_type_np.3
projects/sv/lib/libc/posix1e/acl_set_tag_type.3
projects/sv/lib/libc/regex/re_format.7
projects/sv/lib/libc/stdlib/malloc.3
projects/sv/lib/libc/stdlib/rand.3
projects/sv/lib/libc/stdlib/random.3
projects/sv/lib/libc/stdlib/strtod.3
projects/sv/lib/libc/sys/aio_read.2
projects/sv/lib/libc/sys/aio_write.2
projects/sv/lib/libc/sys/clock_gettime.2
projects/sv/lib/libc/sys/gettimeofday.2
projects/sv/lib/libc/sys/kldstat.2
projects/sv/lib/libc/sys/kldsym.2
projects/sv/lib/libc/sys/kqueue.2
projects/sv/lib/libc/sys/modstat.2
projects/sv/lib/libc/sys/recv.2
projects/sv/lib/libc/sys/sched_setscheduler.2
projects/sv/lib/libc/uuid/uuid.3
projects/sv/lib/libcam/cam_cdbparse.3
projects/sv/lib/libdisk/libdisk.3
projects/sv/lib/libelf/elf_begin.3
projects/sv/lib/libgeom/geom_xml2tree.c
projects/sv/lib/libgssapi/gssapi.3
projects/sv/lib/libjail/jail.3
projects/sv/lib/libpmc/pmc.p4.3
projects/sv/lib/libpmc/pmc.westmere.3
projects/sv/lib/libpmc/pmc.westmereuc.3
projects/sv/lib/libradius/radius.conf.5
projects/sv/lib/libstand/libstand.3
projects/sv/lib/libtacplus/libtacplus.3
projects/sv/lib/libthr/Makefile
projects/sv/lib/libthr/thread/thr_exit.c
projects/sv/lib/libthr/thread/thr_mutex.c
projects/sv/lib/libthr/thread/thr_private.h
projects/sv/lib/libutil/realhostname.3
projects/sv/lib/libutil/realhostname_sa.3
projects/sv/lib/libvgl/simple.c
projects/sv/lib/msun/amd64/s_logbl.S
projects/sv/lib/msun/i387/e_exp.S
projects/sv/lib/msun/i387/e_fmod.S
projects/sv/lib/msun/i387/e_log.S
projects/sv/lib/msun/i387/e_log10.S
projects/sv/lib/msun/i387/e_remainder.S
projects/sv/lib/msun/i387/e_sqrt.S
projects/sv/lib/msun/i387/e_sqrtl.S
projects/sv/lib/msun/i387/s_ceil.S
projects/sv/lib/msun/i387/s_copysign.S
projects/sv/lib/msun/i387/s_cos.S
projects/sv/lib/msun/i387/s_finite.S
projects/sv/lib/msun/i387/s_floor.S
projects/sv/lib/msun/i387/s_logb.S
projects/sv/lib/msun/i387/s_logbl.S
projects/sv/lib/msun/i387/s_rint.S
projects/sv/lib/msun/i387/s_rintl.S
projects/sv/lib/msun/i387/s_scalbn.S
projects/sv/lib/msun/i387/s_significand.S
projects/sv/lib/msun/i387/s_sin.S
projects/sv/lib/msun/i387/s_tan.S
projects/sv/libexec/ftpd/ftpd.8
projects/sv/libexec/getty/gettytab.5
projects/sv/libexec/rtld-elf/powerpc/reloc.c
projects/sv/libexec/rtld-elf/rtld.1
projects/sv/libexec/tftpd/tftpd.8
projects/sv/release/picobsd/build/picobsd
projects/sv/release/powerpc/mkisoimages.sh
projects/sv/sbin/camcontrol/camcontrol.8
projects/sv/sbin/ccdconfig/ccdconfig.8
projects/sv/sbin/devd/devd.conf.5
projects/sv/sbin/geom/class/journal/gjournal.8
projects/sv/sbin/geom/class/raid3/graid3.8
projects/sv/sbin/hastd/control.c
projects/sv/sbin/hastd/hastd.c
projects/sv/sbin/hastd/hooks.c
projects/sv/sbin/hastd/hooks.h
projects/sv/sbin/hastd/primary.c
projects/sv/sbin/ipfw/ipfw.8
projects/sv/sbin/mknod/mknod.8
projects/sv/sbin/mount/mount.c
projects/sv/share/man/man3/fpgetround.3
projects/sv/share/man/man4/acpi_hp.4
projects/sv/share/man/man4/ata.4
projects/sv/share/man/man4/aue.4
projects/sv/share/man/man4/bpf.4
projects/sv/share/man/man4/bt.4
projects/sv/share/man/man4/bwi.4
projects/sv/share/man/man4/bwn.4
projects/sv/share/man/man4/cd.4
projects/sv/share/man/man4/ch.4
projects/sv/share/man/man4/cpuctl.4
projects/sv/share/man/man4/dc.4
projects/sv/share/man/man4/ddb.4
projects/sv/share/man/man4/de.4
projects/sv/share/man/man4/digi.4
projects/sv/share/man/man4/igmp.4
projects/sv/share/man/man4/inet.4
projects/sv/share/man/man4/ipw.4
projects/sv/share/man/man4/iscsi_initiator.4
projects/sv/share/man/man4/isp.4
projects/sv/share/man/man4/iwi.4
projects/sv/share/man/man4/iwn.4
projects/sv/share/man/man4/joy.4
projects/sv/share/man/man4/keyboard.4
projects/sv/share/man/man4/led.4
projects/sv/share/man/man4/lpbb.4
projects/sv/share/man/man4/mac_biba.4
projects/sv/share/man/man4/mac_lomac.4
projects/sv/share/man/man4/mac_portacl.4
projects/sv/share/man/man4/malo.4
projects/sv/share/man/man4/meteor.4
projects/sv/share/man/man4/mk48txx.4
projects/sv/share/man/man4/mld.4
projects/sv/share/man/man4/mps.4
projects/sv/share/man/man4/mtio.4
projects/sv/share/man/man4/mwl.4
projects/sv/share/man/man4/netintro.4
projects/sv/share/man/man4/ng_UI.4
projects/sv/share/man/man4/ng_async.4
projects/sv/share/man/man4/ng_cisco.4
projects/sv/share/man/man4/ng_frame_relay.4
projects/sv/share/man/man4/ng_gif.4
projects/sv/share/man/man4/ng_iface.4
projects/sv/share/man/man4/ng_l2cap.4
projects/sv/share/man/man4/ng_lmi.4
projects/sv/share/man/man4/ng_pppoe.4
projects/sv/share/man/man4/ng_rfc1490.4
projects/sv/share/man/man4/ng_tee.4
projects/sv/share/man/man4/ng_tty.4
projects/sv/share/man/man4/ng_vjc.4
projects/sv/share/man/man4/pcn.4
projects/sv/share/man/man4/psm.4
projects/sv/share/man/man4/pt.4
projects/sv/share/man/man4/pts.4
projects/sv/share/man/man4/pty.4
projects/sv/share/man/man4/ral.4
projects/sv/share/man/man4/random.4
projects/sv/share/man/man4/rl.4
projects/sv/share/man/man4/rum.4
projects/sv/share/man/man4/run.4
projects/sv/share/man/man4/screen.4
projects/sv/share/man/man4/send.4
projects/sv/share/man/man4/ses.4
projects/sv/share/man/man4/sf.4
projects/sv/share/man/man4/sis.4
projects/sv/share/man/man4/sk.4
projects/sv/share/man/man4/smb.4
projects/sv/share/man/man4/snd_hda.4
projects/sv/share/man/man4/ste.4
projects/sv/share/man/man4/sym.4
projects/sv/share/man/man4/syscons.4
projects/sv/share/man/man4/ti.4
projects/sv/share/man/man4/tl.4
projects/sv/share/man/man4/tx.4
projects/sv/share/man/man4/uath.4
projects/sv/share/man/man4/upgt.4
projects/sv/share/man/man4/ural.4
projects/sv/share/man/man4/urtw.4
projects/sv/share/man/man4/vr.4
projects/sv/share/man/man4/wb.4
projects/sv/share/man/man4/wi.4
projects/sv/share/man/man4/wpi.4
projects/sv/share/man/man4/xl.4
projects/sv/share/man/man5/elf.5
projects/sv/share/man/man5/link.5
projects/sv/share/man/man5/make.conf.5
projects/sv/share/man/man5/passwd.5
projects/sv/share/man/man5/quota.user.5
projects/sv/share/man/man5/resolver.5
projects/sv/share/man/man7/firewall.7
projects/sv/share/man/man7/sdoc.7
projects/sv/share/man/man8/picobsd.8
projects/sv/share/man/man8/rc.8
projects/sv/share/man/man8/rc.sendmail.8
projects/sv/share/man/man9/DB_COMMAND.9
projects/sv/share/man/man9/MD5.9
projects/sv/share/man/man9/VOP_READDIR.9
projects/sv/share/man/man9/fail.9
projects/sv/share/man/man9/ieee80211_ddb.9
projects/sv/share/man/man9/ieee80211_radiotap.9
projects/sv/share/man/man9/make_dev.9
projects/sv/share/man/man9/mbuf.9
projects/sv/share/man/man9/style.9
projects/sv/share/man/man9/timeout.9
projects/sv/share/man/man9/uio.9
projects/sv/share/misc/committers-src.dot
projects/sv/share/mk/bsd.own.mk
projects/sv/share/termcap/termcap.5
projects/sv/sys/amd64/amd64/busdma_machdep.c
projects/sv/sys/amd64/amd64/identcpu.c
projects/sv/sys/amd64/amd64/machdep.c
projects/sv/sys/amd64/amd64/mp_machdep.c
projects/sv/sys/amd64/conf/GENERIC
projects/sv/sys/amd64/include/specialreg.h
projects/sv/sys/amd64/linux32/linux32_proto.h
projects/sv/sys/amd64/linux32/linux32_syscall.h
projects/sv/sys/amd64/linux32/linux32_sysent.c
projects/sv/sys/amd64/linux32/syscalls.master
projects/sv/sys/arm/at91/at91.c
projects/sv/sys/arm/at91/at91_machdep.c
projects/sv/sys/arm/at91/at91_mci.c
projects/sv/sys/arm/at91/at91_pio.c
projects/sv/sys/arm/at91/at91_pio_rm9200.h
projects/sv/sys/arm/at91/at91_pioreg.h
projects/sv/sys/arm/at91/at91_pit.c
projects/sv/sys/arm/at91/at91_pmc.c
projects/sv/sys/arm/at91/at91_pmcreg.h
projects/sv/sys/arm/at91/at91_pmcvar.h
projects/sv/sys/arm/at91/at91_twi.c
projects/sv/sys/arm/at91/at91_twireg.h
projects/sv/sys/arm/at91/at91rm92reg.h
projects/sv/sys/arm/at91/at91sam9g20reg.h
projects/sv/sys/arm/at91/at91var.h
projects/sv/sys/arm/at91/board_hl201.c
projects/sv/sys/arm/at91/board_kb920x.c
projects/sv/sys/arm/at91/files.at91
projects/sv/sys/arm/at91/files.at91sam9
projects/sv/sys/arm/at91/if_ate.c
projects/sv/sys/arm/at91/if_atereg.h
projects/sv/sys/arm/at91/if_macb.c
projects/sv/sys/arm/at91/std.at91sam9
projects/sv/sys/arm/at91/std.kb920x
projects/sv/sys/arm/at91/uart_cpu_at91rm9200usart.c
projects/sv/sys/arm/at91/uart_dev_at91usart.c
projects/sv/sys/boot/common/loader.8
projects/sv/sys/boot/i386/gptboot/Makefile
projects/sv/sys/cddl/compat/opensolaris/kern/opensolaris_kmem.c
projects/sv/sys/compat/linux/linux_futex.c
projects/sv/sys/compat/ndis/subr_ntoskrnl.c
projects/sv/sys/compat/x86bios/x86bios.c
projects/sv/sys/conf/files
projects/sv/sys/conf/files.powerpc
projects/sv/sys/conf/options
projects/sv/sys/conf/options.arm
projects/sv/sys/contrib/octeon-sdk/cvmx-helper-board.c
projects/sv/sys/dev/aac/aac.c
projects/sv/sys/dev/aac/aac_cam.c
projects/sv/sys/dev/aac/aacreg.h
projects/sv/sys/dev/aac/aacvar.h
projects/sv/sys/dev/acpica/acpi_hpet.c
projects/sv/sys/dev/ata/chipsets/ata-via.c
projects/sv/sys/dev/bce/if_bce.c
projects/sv/sys/dev/bce/if_bcereg.h
projects/sv/sys/dev/bge/if_bge.c
projects/sv/sys/dev/bge/if_bgereg.h
projects/sv/sys/dev/ciss/ciss.c
projects/sv/sys/dev/dc/dcphy.c
projects/sv/sys/dev/dc/pnphy.c
projects/sv/sys/dev/gpio/gpiobus.c
projects/sv/sys/dev/gpio/gpiobusvar.h
projects/sv/sys/dev/gpio/gpioc.c
projects/sv/sys/dev/gpio/gpioiic.c
projects/sv/sys/dev/gpio/gpioled.c
projects/sv/sys/dev/hwpmc/pmc_events.h
projects/sv/sys/dev/mii/acphy.c
projects/sv/sys/dev/mii/amphy.c
projects/sv/sys/dev/mii/atphy.c
projects/sv/sys/dev/mii/axphy.c
projects/sv/sys/dev/mii/bmtphy.c
projects/sv/sys/dev/mii/brgphy.c
projects/sv/sys/dev/mii/ciphy.c
projects/sv/sys/dev/mii/e1000phy.c
projects/sv/sys/dev/mii/exphy.c
projects/sv/sys/dev/mii/gentbi.c
projects/sv/sys/dev/mii/icsphy.c
projects/sv/sys/dev/mii/inphy.c
projects/sv/sys/dev/mii/ip1000phy.c
projects/sv/sys/dev/mii/jmphy.c
projects/sv/sys/dev/mii/lxtphy.c
projects/sv/sys/dev/mii/mii.c
projects/sv/sys/dev/mii/mlphy.c
projects/sv/sys/dev/mii/nsgphy.c
projects/sv/sys/dev/mii/nsphy.c
projects/sv/sys/dev/mii/nsphyter.c
projects/sv/sys/dev/mii/pnaphy.c
projects/sv/sys/dev/mii/qsphy.c
projects/sv/sys/dev/mii/rgephy.c
projects/sv/sys/dev/mii/rlphy.c
projects/sv/sys/dev/mii/rlswitch.c
projects/sv/sys/dev/mii/ruephy.c
projects/sv/sys/dev/mii/smcphy.c
projects/sv/sys/dev/mii/tdkphy.c
projects/sv/sys/dev/mii/tlphy.c
projects/sv/sys/dev/mii/truephy.c
projects/sv/sys/dev/mii/ukphy.c
projects/sv/sys/dev/mii/ukphy_subr.c
projects/sv/sys/dev/mii/xmphy.c
projects/sv/sys/dev/mps/mps.c
projects/sv/sys/dev/mps/mps_sas.c
projects/sv/sys/dev/mps/mpsvar.h
projects/sv/sys/dev/ral/rt2560.c
projects/sv/sys/dev/usb/controller/usb_controller.c
projects/sv/sys/dev/usb/net/if_axe.c
projects/sv/sys/dev/usb/net/usb_ethernet.c
projects/sv/sys/dev/usb/serial/u3g.c
projects/sv/sys/dev/usb/storage/umass.c
projects/sv/sys/dev/usb/usb.h
projects/sv/sys/dev/usb/usb_controller.h
projects/sv/sys/dev/usb/usb_dev.c
projects/sv/sys/dev/usb/usb_device.c
projects/sv/sys/dev/usb/usb_device.h
projects/sv/sys/dev/usb/usb_generic.c
projects/sv/sys/dev/usb/usb_handle_request.c
projects/sv/sys/dev/usb/usb_hub.c
projects/sv/sys/dev/usb/usb_hub.h
projects/sv/sys/dev/usb/usb_msctest.c
projects/sv/sys/dev/usb/usb_msctest.h
projects/sv/sys/dev/usb/usb_parse.c
projects/sv/sys/dev/usb/usb_request.c
projects/sv/sys/dev/usb/usb_request.h
projects/sv/sys/dev/usb/usb_transfer.c
projects/sv/sys/dev/usb/usb_transfer.h
projects/sv/sys/dev/usb/usbdevs
projects/sv/sys/dev/usb/usbdi.h
projects/sv/sys/dev/usb/usbdi_util.h
projects/sv/sys/dev/usb/wlan/if_rum.c
projects/sv/sys/fs/msdosfs/msdosfs_vnops.c
projects/sv/sys/fs/nwfs/nwfs_vfsops.c
projects/sv/sys/fs/smbfs/smbfs_vfsops.c
projects/sv/sys/gdb/gdb_cons.c
projects/sv/sys/geom/vinum/geom_vinum_move.c
projects/sv/sys/geom/vinum/geom_vinum_rename.c
projects/sv/sys/i386/i386/busdma_machdep.c
projects/sv/sys/i386/i386/identcpu.c
projects/sv/sys/i386/i386/locore.s
projects/sv/sys/i386/i386/mp_machdep.c
projects/sv/sys/i386/i386/pmap.c
projects/sv/sys/i386/i386/support.s
projects/sv/sys/i386/include/pmap.h
projects/sv/sys/i386/include/specialreg.h
projects/sv/sys/ia64/ia64/busdma_machdep.c
projects/sv/sys/kern/kern_conf.c
projects/sv/sys/kern/kern_malloc.c
projects/sv/sys/kern/kern_ntptime.c
projects/sv/sys/kern/kern_proc.c
projects/sv/sys/kern/kern_shutdown.c
projects/sv/sys/kern/link_elf.c
projects/sv/sys/kern/link_elf_obj.c
projects/sv/sys/kern/p1003_1b.c
projects/sv/sys/kern/subr_kdb.c
projects/sv/sys/kern/vfs_mount.c
projects/sv/sys/mips/atheros/ar71xx_gpio.c
projects/sv/sys/mips/atheros/ar71xxreg.h
projects/sv/sys/mips/cavium/files.octeon1
projects/sv/sys/mips/cavium/octe/cavium-ethernet.h
projects/sv/sys/mips/cavium/octe/ethernet-common.c
projects/sv/sys/mips/cavium/octe/ethernet-headers.h
projects/sv/sys/mips/cavium/octe/ethernet-mdio.c
projects/sv/sys/mips/cavium/octe/octe.c
projects/sv/sys/mips/cavium/std.octeon1
projects/sv/sys/mips/cavium/uart_bus_octeonusart.c
projects/sv/sys/mips/cavium/uart_cpu_octeonusart.c
projects/sv/sys/mips/cavium/uart_dev_oct16550.c
projects/sv/sys/mips/conf/OCTEON1
projects/sv/sys/mips/mips/locore.S
projects/sv/sys/mips/rmi/board.c
projects/sv/sys/mips/rmi/board.h
projects/sv/sys/mips/rmi/dev/nlge/if_nlge.c
projects/sv/sys/mips/rmi/dev/nlge/if_nlge.h
projects/sv/sys/mips/rmi/dev/xlr/rge.c
projects/sv/sys/mips/rmi/fmn.c
projects/sv/sys/mips/rmi/msgring.h
projects/sv/sys/mips/rmi/rmi_mips_exts.h
projects/sv/sys/mips/rmi/xlr_machdep.c
projects/sv/sys/mips/rmi/xlr_pci.c
projects/sv/sys/modules/ixgb/Makefile
projects/sv/sys/modules/ixgbe/Makefile
projects/sv/sys/modules/mem/Makefile
projects/sv/sys/modules/usb/Makefile
projects/sv/sys/net/if_tun.c
projects/sv/sys/net80211/ieee80211_scan_sta.c
projects/sv/sys/netinet/igmp.c
projects/sv/sys/netinet/ipfw/dn_sched.h
projects/sv/sys/netinet/ipfw/dn_sched_qfq.c
projects/sv/sys/netinet/ipfw/dn_sched_wf2q.c
projects/sv/sys/netinet/ipfw/ip_dn_glue.c
projects/sv/sys/netinet/ipfw/ip_dn_io.c
projects/sv/sys/netinet/ipfw/ip_dn_private.h
projects/sv/sys/netinet/ipfw/ip_dummynet.c
projects/sv/sys/netinet/ipfw/ip_fw_pfil.c
projects/sv/sys/pci/if_rl.c
projects/sv/sys/powerpc/aim/machdep.c
projects/sv/sys/powerpc/aim/mmu_oea.c
projects/sv/sys/powerpc/aim/mmu_oea64.c
projects/sv/sys/powerpc/aim/trap.c
projects/sv/sys/powerpc/include/altivec.h
projects/sv/sys/powerpc/include/memdev.h
projects/sv/sys/powerpc/include/pcb.h
projects/sv/sys/powerpc/include/pmap.h
projects/sv/sys/powerpc/include/trap_aim.h
projects/sv/sys/powerpc/include/vm.h
projects/sv/sys/powerpc/ofw/ofw_syscons.c
projects/sv/sys/powerpc/powerpc/bus_machdep.c
projects/sv/sys/powerpc/powerpc/busdma_machdep.c
projects/sv/sys/powerpc/powerpc/mem.c
projects/sv/sys/powerpc/powerpc/mmu_if.m
projects/sv/sys/powerpc/powerpc/pmap_dispatch.c
projects/sv/sys/sparc64/include/endian.h
projects/sv/sys/sparc64/sparc64/bus_machdep.c
projects/sv/sys/sun4v/include/endian.h
projects/sv/sys/sys/conf.h
projects/sv/sys/sys/mutex.h
projects/sv/sys/sys/param.h
projects/sv/sys/sys/sched.h
projects/sv/sys/sys/time.h
projects/sv/sys/sys/user.h
projects/sv/sys/ufs/ffs/ffs_softdep.c
projects/sv/sys/vm/vm_map.c
projects/sv/tools/build/mk/OptionalObsoleteFiles.inc
projects/sv/tools/regression/usr.bin/tr/regress.sh
projects/sv/tools/tools/mctest/mctest.cc
projects/sv/tools/tools/mctest/mctest_run.sh
projects/sv/tools/tools/nanobsd/rescue/common
projects/sv/tools/tools/nanobsd/rescue/isoamd64.conf
projects/sv/tools/tools/nanobsd/rescue/isoi386.conf
projects/sv/tools/tools/netrate/juggle/juggle.c
projects/sv/tools/tools/netrate/tcpconnect/tcpconnect.c
projects/sv/usr.bin/Makefile
projects/sv/usr.bin/calendar/calendars/calendar.freebsd
projects/sv/usr.bin/chat/chat.8
projects/sv/usr.bin/cksum/cksum.1
projects/sv/usr.bin/colldef/colldef.1
projects/sv/usr.bin/csup/cpasswd.1
projects/sv/usr.bin/csup/rcsparse.c
projects/sv/usr.bin/gencat/gencat.1
projects/sv/usr.bin/getopt/getopt.1
projects/sv/usr.bin/kdump/mksubr
projects/sv/usr.bin/login/login.c
projects/sv/usr.bin/make/main.c
projects/sv/usr.bin/netstat/inet.c
projects/sv/usr.bin/nl/nl.1
projects/sv/usr.bin/tar/pathmatch.c
projects/sv/usr.bin/tr/str.c
projects/sv/usr.bin/vmstat/vmstat.8
projects/sv/usr.sbin/Makefile
projects/sv/usr.sbin/burncd/burncd.8
projects/sv/usr.sbin/ckdist/ckdist.1
projects/sv/usr.sbin/crunch/crunchgen/crunchgen.1
projects/sv/usr.sbin/dconschat/dconschat.8
projects/sv/usr.sbin/flowctl/flowctl.8
projects/sv/usr.sbin/freebsd-update/freebsd-update.8
projects/sv/usr.sbin/i2c/i2c.8
projects/sv/usr.sbin/jail/jail.8
projects/sv/usr.sbin/lpr/lpq/lpq.1
projects/sv/usr.sbin/lpr/lprm/lprm.1
projects/sv/usr.sbin/mergemaster/mergemaster.8
projects/sv/usr.sbin/mixer/mixer.8
projects/sv/usr.sbin/mlxcontrol/mlxcontrol.8
projects/sv/usr.sbin/pc-sysinstall/pc-sysinstall/pc-sysinstall.8
projects/sv/usr.sbin/portsnap/portsnap/portsnap.8
projects/sv/usr.sbin/pw/pw.8
projects/sv/usr.sbin/services_mkdb/services_mkdb.8
projects/sv/usr.sbin/sysinstall/dist.c
projects/sv/usr.sbin/sysinstall/dist.h
projects/sv/usr.sbin/sysinstall/install.c
projects/sv/usr.sbin/sysinstall/menus.c
projects/sv/usr.sbin/sysinstall/sysinstall.8
projects/sv/usr.sbin/vidcontrol/vidcontrol.1
Directory Properties:
projects/sv/ (props changed)
projects/sv/cddl/contrib/opensolaris/ (props changed)
projects/sv/contrib/bind9/ (props changed)
projects/sv/contrib/bzip2/ (props changed)
projects/sv/contrib/ee/ (props changed)
projects/sv/contrib/expat/ (props changed)
projects/sv/contrib/file/ (props changed)
projects/sv/contrib/gdb/ (props changed)
projects/sv/contrib/gdtoa/ (props changed)
projects/sv/contrib/gnu-sort/ (props changed)
projects/sv/contrib/groff/ (props changed)
projects/sv/contrib/less/ (props changed)
projects/sv/contrib/libpcap/ (props changed)
projects/sv/contrib/llvm/ (props changed)
projects/sv/contrib/llvm/tools/clang/ (props changed)
projects/sv/contrib/ncurses/ (props changed)
projects/sv/contrib/netcat/ (props changed)
projects/sv/contrib/ntp/ (props changed)
projects/sv/contrib/one-true-awk/ (props changed)
projects/sv/contrib/openbsm/ (props changed)
projects/sv/contrib/openpam/ (props changed)
projects/sv/contrib/pf/ (props changed)
projects/sv/contrib/sendmail/ (props changed)
projects/sv/contrib/tcpdump/ (props changed)
projects/sv/contrib/tcsh/ (props changed)
projects/sv/contrib/top/ (props changed)
projects/sv/contrib/top/install-sh (props changed)
projects/sv/contrib/tzcode/stdtime/ (props changed)
projects/sv/contrib/tzcode/zic/ (props changed)
projects/sv/contrib/tzdata/ (props changed)
projects/sv/contrib/wpa/ (props changed)
projects/sv/crypto/openssh/ (props changed)
projects/sv/crypto/openssl/ (props changed)
projects/sv/lib/libc/ (props changed)
projects/sv/lib/libc/stdtime/ (props changed)
projects/sv/lib/libutil/ (props changed)
projects/sv/lib/libz/ (props changed)
projects/sv/sbin/ (props changed)
projects/sv/sbin/ipfw/ (props changed)
projects/sv/share/mk/bsd.arch.inc.mk (props changed)
projects/sv/share/zoneinfo/ (props changed)
projects/sv/sys/ (props changed)
projects/sv/sys/amd64/include/xen/ (props changed)
projects/sv/sys/cddl/contrib/opensolaris/ (props changed)
projects/sv/sys/contrib/dev/acpica/ (props changed)
projects/sv/sys/contrib/pf/ (props changed)
projects/sv/sys/contrib/x86emu/ (props changed)
projects/sv/sys/dev/usb/controller/ (props changed)
projects/sv/sys/dev/xen/xenpci/ (props changed)
projects/sv/usr.bin/calendar/ (props changed)
projects/sv/usr.bin/csup/ (props changed)
projects/sv/usr.bin/procstat/ (props changed)
projects/sv/usr.sbin/zic/ (props changed)
Modified: projects/sv/ObsoleteFiles.inc
==============================================================================
--- projects/sv/ObsoleteFiles.inc Fri Oct 8 15:59:02 2010 (r213583)
+++ projects/sv/ObsoleteFiles.inc Fri Oct 8 16:33:25 2010 (r213584)
@@ -23,8 +23,13 @@ OLD_FILES+=usr/share/man/man3/ascftime.3
OLD_FILES+=usr/share/man/man3/cfree.3.gz
OLD_FILES+=usr/share/man/man3/cftime.3.gz
OLD_FILES+=usr/share/man/man3/getpw.3.gz
+# 20100801: tzdata2010k import
+OLD_FILES+=usr/share/zoneinfo/Pacific/Ponape
+OLD_FILES+=usr/share/zoneinfo/Pacific/Truk
# 20100725: acpi_aiboost(4) removal.
OLD_FILES+=usr/share/man/man4/acpi_aiboost.4.gz
+# 20100724: nfsclient/nfs_lock.h moved to nfs/nfs_lock.h
+OLD_FILES+=usr/include/nfsclient/nfs_lock.h
# 20100720: new clang import which bumps version from 2.0 to 2.8
OLD_FILES+=usr/include/clang/2.0/emmintrin.h
OLD_FILES+=usr/include/clang/2.0/mm_malloc.h
Modified: projects/sv/UPDATING
==============================================================================
--- projects/sv/UPDATING Fri Oct 8 15:59:02 2010 (r213583)
+++ projects/sv/UPDATING Fri Oct 8 16:33:25 2010 (r213584)
@@ -22,6 +22,16 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 9.
machines to maximize performance. (To disable malloc debugging, run
ln -s aj /etc/malloc.conf.)
+20101002:
+ The man(1) utility has been replaced by a new version that no longer
+ uses /etc/manpath.config. Please consult man.conf(5) for how to
+ migrate local entries to the new format.
+
+20100928:
+ The copyright strings printed by login(1) and sshd(8) at the time of a
+ new connection have been removed to follow other operating systems and
+ upstream sshd.
+
20100915:
A workaround for a fixed ld bug has been removed in kernel code,
so make sure that your system ld is built from sources after
Modified: projects/sv/bin/chflags/chflags.1
==============================================================================
--- projects/sv/bin/chflags/chflags.1 Fri Oct 8 15:59:02 2010 (r213583)
+++ projects/sv/bin/chflags/chflags.1 Fri Oct 8 16:33:25 2010 (r213584)
@@ -98,7 +98,6 @@ will also be printed, in octal notation.
The flags are specified as an octal number or a comma separated list
of keywords.
The following keywords are currently defined:
-.Pp
.Bl -tag -offset indent -width ".Cm opaque"
.It Cm arch , archived
set the archived flag (super-user only)
Modified: projects/sv/bin/ps/keyword.c
==============================================================================
--- projects/sv/bin/ps/keyword.c Fri Oct 8 15:59:02 2010 (r213583)
+++ projects/sv/bin/ps/keyword.c Fri Oct 8 16:33:25 2010 (r213584)
@@ -187,6 +187,8 @@ static VAR var[] = {
UINT, UIDFMT, 0},
{"svuid", "SVUID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_svuid),
UINT, UIDFMT, 0},
+ {"tdaddr", "TDADDR", NULL, 0, kvar, NULL, sizeof(void *) * 2,
+ KOFF(ki_tdaddr), KPTR, "lx", 0},
{"tdev", "TDEV", NULL, 0, tdev, NULL, 5, 0, CHAR, NULL, 0},
{"tdnam", "TDNAM", NULL, LJUST, tdnam, NULL, COMMLEN, 0, CHAR, NULL, 0},
{"time", "TIME", NULL, USER, cputime, NULL, 9, 0, CHAR, NULL, 0},
Modified: projects/sv/bin/ps/ps.1
==============================================================================
--- projects/sv/bin/ps/ps.1 Fri Oct 8 15:59:02 2010 (r213583)
+++ projects/sv/bin/ps/ps.1 Fri Oct 8 16:33:25 2010 (r213584)
@@ -591,6 +591,8 @@ symbolic process state (alias
saved gid from a setgid executable
.It Cm svuid
saved UID from a setuid executable
+.It Cm tdaddr
+thread address
.It Cm tdev
control terminal device number
.It Cm time
Modified: projects/sv/bin/rm/rm.1
==============================================================================
--- projects/sv/bin/rm/rm.1 Fri Oct 8 15:59:02 2010 (r213583)
+++ projects/sv/bin/rm/rm.1 Fri Oct 8 16:33:25 2010 (r213584)
@@ -32,7 +32,7 @@
.\" @(#)rm.1 8.5 (Berkeley) 12/5/94
.\" $FreeBSD$
.\"
-.Dd December 26, 2006
+.Dd October 8, 2010
.Dt RM 1
.Os
.Sh NAME
@@ -88,9 +88,13 @@ yet provides almost the same level of pr
Overwrite regular files before deleting them.
Files are overwritten three times, first with the byte pattern 0xff,
then 0x00, and then 0xff again, before they are deleted.
-Files with multiple links will not be overwritten nor deleted unless
+Files with multiple links will not be overwritten nor deleted
+and a warning will be issued.
+If the
.Fl f
-is specified, a warning is generated instead.
+option is specified, files with multiple links will also be overwritten
+and deleted.
+No warning will be issued.
.Pp
Specifying this flag for a read only file will cause
.Nm
@@ -225,8 +229,8 @@ command appeared in
.Sh BUGS
The
.Fl P
-option assumes that the underlying file system is a fixed-block file
-system.
-UFS is a fixed-block file system, LFS is not.
+option assumes that the underlying file system updates existing blocks
+in-place and does not store new data in a new location.
+This is true for UFS but not for ZFS, which is using a Copy-On-Write strategy.
In addition, only regular files are overwritten, other types of files
are not.
Modified: projects/sv/bin/rm/rm.c
==============================================================================
--- projects/sv/bin/rm/rm.c Fri Oct 8 15:59:02 2010 (r213583)
+++ projects/sv/bin/rm/rm.c Fri Oct 8 16:33:25 2010 (r213584)
@@ -402,8 +402,8 @@ rm_file(char **argv)
* This is a cheap way to *really* delete files. Note that only regular
* files are deleted, directories (and therefore names) will remain.
* Also, this assumes a fixed-block file system (like FFS, or a V7 or a
- * System V file system). In a logging file system, you'll have to have
- * kernel support.
+ * System V file system). In a logging or COW file system, you'll have to
+ * have kernel support.
*/
int
rm_overwrite(char *file, struct stat *sbp)
Modified: projects/sv/bin/stty/stty.1
==============================================================================
--- projects/sv/bin/stty/stty.1 Fri Oct 8 15:59:02 2010 (r213583)
+++ projects/sv/bin/stty/stty.1 Fri Oct 8 16:33:25 2010 (r213584)
@@ -419,7 +419,6 @@ Non-Canonical mode input processing
(-icanon).
.El
.Ss Combination Modes:
-.Pp
.Bl -tag -width Fl
.It Ar saved settings
Set the current terminal
Copied: projects/sv/contrib/binutils/bfd/coff-x86_64.c (from r213583, head/contrib/binutils/bfd/coff-x86_64.c)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/sv/contrib/binutils/bfd/coff-x86_64.c Fri Oct 8 16:33:25 2010 (r213584, copy of r213583, head/contrib/binutils/bfd/coff-x86_64.c)
@@ -0,0 +1,785 @@
+/* BFD back-end for AMD 64 COFF files.
+ Copyright 2006, 2007 Free Software Foundation, Inc.
+
+ This file is part of BFD, the Binary File Descriptor library.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
+
+ Written by Kai Tietz, OneVision Software GmbH&CoKg. */
+
+#ifndef COFF_WITH_pex64
+#define COFF_WITH_pex64
+#endif
+
+#include "sysdep.h"
+#include "bfd.h"
+#include "libbfd.h"
+#include "coff/x86_64.h"
+#include "coff/internal.h"
+#include "coff/pe.h"
+#include "libcoff.h"
+#include "libiberty.h"
+
+#define BADMAG(x) AMD64BADMAG(x)
+
+#ifdef COFF_WITH_pex64
+# undef AOUTSZ
+# define AOUTSZ PEPAOUTSZ
+# define PEAOUTHDR PEPAOUTHDR
+#endif
+
+#define COFF_DEFAULT_SECTION_ALIGNMENT_POWER (2)
+
+/* The page size is a guess based on ELF. */
+
+#define COFF_PAGE_SIZE 0x1000
+
+/* For some reason when using AMD COFF the value stored in the .text
+ section for a reference to a common symbol is the value itself plus
+ any desired offset. Ian Taylor, Cygnus Support. */
+
+/* If we are producing relocatable output, we need to do some
+ adjustments to the object file that are not done by the
+ bfd_perform_relocation function. This function is called by every
+ reloc type to make any required adjustments. */
+
+static bfd_reloc_status_type
+coff_amd64_reloc (bfd *abfd,
+ arelent *reloc_entry,
+ asymbol *symbol,
+ void * data,
+ asection *input_section ATTRIBUTE_UNUSED,
+ bfd *output_bfd,
+ char **error_message ATTRIBUTE_UNUSED)
+{
+ symvalue diff;
+
+#if !defined(COFF_WITH_PE)
+ if (output_bfd == NULL)
+ return bfd_reloc_continue;
+#endif
+
+ if (bfd_is_com_section (symbol->section))
+ {
+#if !defined(COFF_WITH_PE)
+ /* We are relocating a common symbol. The current value in the
+ object file is ORIG + OFFSET, where ORIG is the value of the
+ common symbol as seen by the object file when it was compiled
+ (this may be zero if the symbol was undefined) and OFFSET is
+ the offset into the common symbol (normally zero, but may be
+ non-zero when referring to a field in a common structure).
+ ORIG is the negative of reloc_entry->addend, which is set by
+ the CALC_ADDEND macro below. We want to replace the value in
+ the object file with NEW + OFFSET, where NEW is the value of
+ the common symbol which we are going to put in the final
+ object file. NEW is symbol->value. */
+ diff = symbol->value + reloc_entry->addend;
+#else
+ /* In PE mode, we do not offset the common symbol. */
+ diff = reloc_entry->addend;
+#endif
+ }
+ else
+ {
+ /* For some reason bfd_perform_relocation always effectively
+ ignores the addend for a COFF target when producing
+ relocatable output. This seems to be always wrong for 386
+ COFF, so we handle the addend here instead. */
+#if defined(COFF_WITH_PE)
+ if (output_bfd == NULL)
+ {
+ reloc_howto_type *howto = reloc_entry->howto;
+
+ /* Although PC relative relocations are very similar between
+ PE and non-PE formats, but they are off by 1 << howto->size
+ bytes. For the external relocation, PE is very different
+ from others. See md_apply_fix3 () in gas/config/tc-amd64.c.
+ When we link PE and non-PE object files together to
+ generate a non-PE executable, we have to compensate it
+ here. */
+ if(howto->pc_relative && howto->pcrel_offset)
+ diff = -(1 << howto->size);
+ else if(symbol->flags & BSF_WEAK)
+ diff = reloc_entry->addend - symbol->value;
+ else
+ diff = -reloc_entry->addend;
+ }
+ else
+#endif
+ diff = reloc_entry->addend;
+ }
+
+#if defined(COFF_WITH_PE)
+ /* FIXME: How should this case be handled? */
+ if (reloc_entry->howto->type == R_AMD64_IMAGEBASE
+ && output_bfd != NULL
+ && bfd_get_flavour (output_bfd) == bfd_target_coff_flavour)
+ diff -= pe_data (output_bfd)->pe_opthdr.ImageBase;
+#endif
+
+#define DOIT(x) \
+ x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + diff) & howto->dst_mask))
+
+ if (diff != 0)
+ {
+ reloc_howto_type *howto = reloc_entry->howto;
+ unsigned char *addr = (unsigned char *) data + reloc_entry->address;
+
+ switch (howto->size)
+ {
+ case 0:
+ {
+ char x = bfd_get_8 (abfd, addr);
+ DOIT (x);
+ bfd_put_8 (abfd, x, addr);
+ }
+ break;
+
+ case 1:
+ {
+ short x = bfd_get_16 (abfd, addr);
+ DOIT (x);
+ bfd_put_16 (abfd, (bfd_vma) x, addr);
+ }
+ break;
+
+ case 2:
+ {
+ long x = bfd_get_32 (abfd, addr);
+ DOIT (x);
+ bfd_put_32 (abfd, (bfd_vma) x, addr);
+ }
+ break;
+ case 4:
+ {
+ long long x = bfd_get_64 (abfd, addr);
+ DOIT (x);
+ bfd_put_64 (abfd, (bfd_vma) x, addr);
+ }
+ break;
+
+ default:
+ abort ();
+ }
+ }
+
+ /* Now let bfd_perform_relocation finish everything up. */
+ return bfd_reloc_continue;
+}
+
+#if defined(COFF_WITH_PE)
+/* Return TRUE if this relocation should appear in the output .reloc
+ section. */
+
+static bfd_boolean
+in_reloc_p (bfd *abfd ATTRIBUTE_UNUSED, reloc_howto_type *howto)
+{
+ return ! howto->pc_relative && howto->type != R_AMD64_IMAGEBASE;
+}
+#endif /* COFF_WITH_PE */
+
+#ifndef PCRELOFFSET
+#define PCRELOFFSET TRUE
+#endif
+
+static reloc_howto_type howto_table[] =
+{
+ EMPTY_HOWTO (0),
+ HOWTO (R_AMD64_DIR64, /* type 1*/
+ 0, /* rightshift */
+ 4, /* size (0 = byte, 1 = short, 2 = long, 4 = long long) */
+ 64, /* bitsize */
+ FALSE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_bitfield, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "R_X86_64_64", /* name */
+ TRUE, /* partial_inplace */
+ 0xffffffffffffffffll, /* src_mask */
+ 0xffffffffffffffffll, /* dst_mask */
+ TRUE), /* pcrel_offset */
+ HOWTO (R_AMD64_DIR32, /* type 2 */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 32, /* bitsize */
+ FALSE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_bitfield, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "R_X86_64_32", /* name */
+ TRUE, /* partial_inplace */
+ 0xffffffff, /* src_mask */
+ 0xffffffff, /* dst_mask */
+ TRUE), /* pcrel_offset */
+ /* PE IMAGE_REL_AMD64_ADDR32NB relocation (3). */
+ HOWTO (R_AMD64_IMAGEBASE, /* type */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 32, /* bitsize */
+ FALSE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_bitfield, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "rva32", /* name */
+ TRUE, /* partial_inplace */
+ 0xffffffff, /* src_mask */
+ 0xffffffff, /* dst_mask */
+ FALSE), /* pcrel_offset */
+ /* 32-bit longword PC relative relocation (4). */
+ HOWTO (R_AMD64_PCRLONG, /* type 4 */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 32, /* bitsize */
+ TRUE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_signed, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "R_X86_64_PC32", /* name */
+ TRUE, /* partial_inplace */
+ 0xffffffff, /* src_mask */
+ 0xffffffff, /* dst_mask */
+ PCRELOFFSET), /* pcrel_offset */
+
+ HOWTO (R_AMD64_PCRLONG_1, /* type 5 */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 32, /* bitsize */
+ TRUE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_signed, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "DISP32+1", /* name */
+ TRUE, /* partial_inplace */
+ 0xffffffff, /* src_mask */
+ 0xffffffff, /* dst_mask */
+ PCRELOFFSET), /* pcrel_offset */
+ HOWTO (R_AMD64_PCRLONG_2, /* type 6 */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 32, /* bitsize */
+ TRUE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_signed, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "DISP32+2", /* name */
+ TRUE, /* partial_inplace */
+ 0xffffffff, /* src_mask */
+ 0xffffffff, /* dst_mask */
+ PCRELOFFSET), /* pcrel_offset */
+ HOWTO (R_AMD64_PCRLONG_3, /* type 7 */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 32, /* bitsize */
+ TRUE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_signed, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "DISP32+3", /* name */
+ TRUE, /* partial_inplace */
+ 0xffffffff, /* src_mask */
+ 0xffffffff, /* dst_mask */
+ PCRELOFFSET), /* pcrel_offset */
+ HOWTO (R_AMD64_PCRLONG_4, /* type 8 */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 32, /* bitsize */
+ TRUE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_signed, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "DISP32+4", /* name */
+ TRUE, /* partial_inplace */
+ 0xffffffff, /* src_mask */
+ 0xffffffff, /* dst_mask */
+ PCRELOFFSET), /* pcrel_offset */
+ HOWTO (R_AMD64_PCRLONG_5, /* type 9 */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 32, /* bitsize */
+ TRUE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_signed, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "DISP32+5", /* name */
+ TRUE, /* partial_inplace */
+ 0xffffffff, /* src_mask */
+ 0xffffffff, /* dst_mask */
+ PCRELOFFSET), /* pcrel_offset */
+ EMPTY_HOWTO (10), /* R_AMD64_SECTION 10 */
+#if defined(COFF_WITH_PE)
+ /* 32-bit longword section relative relocation (11). */
+ HOWTO (R_AMD64_SECREL, /* type */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 32, /* bitsize */
+ FALSE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_bitfield, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "secrel32", /* name */
+ TRUE, /* partial_inplace */
+ 0xffffffff, /* src_mask */
+ 0xffffffff, /* dst_mask */
+ TRUE), /* pcrel_offset */
+#else
+ EMPTY_HOWTO (11),
+#endif
+ EMPTY_HOWTO (12),
+ EMPTY_HOWTO (13),
+#ifndef DONT_EXTEND_AMD64
+ HOWTO (R_AMD64_PCRQUAD,
+ 0, /* rightshift */
+ 4, /* size (0 = byte, 1 = short, 2 = long) */
+ 64, /* bitsize */
+ TRUE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_signed, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "R_X86_64_PC64", /* name */
+ TRUE, /* partial_inplace */
+ 0xffffffffffffffffll, /* src_mask */
+ 0xffffffffffffffffll, /* dst_mask */
+ PCRELOFFSET), /* pcrel_offset */
+#else
+ EMPTY_HOWTO (14),
+#endif
+ /* Byte relocation (15). */
+ HOWTO (R_RELBYTE, /* type */
+ 0, /* rightshift */
+ 0, /* size (0 = byte, 1 = short, 2 = long) */
+ 8, /* bitsize */
+ FALSE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_bitfield, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "R_X86_64_8", /* name */
+ TRUE, /* partial_inplace */
+ 0x000000ff, /* src_mask */
+ 0x000000ff, /* dst_mask */
+ PCRELOFFSET), /* pcrel_offset */
+ /* 16-bit word relocation (16). */
+ HOWTO (R_RELWORD, /* type */
+ 0, /* rightshift */
+ 1, /* size (0 = byte, 1 = short, 2 = long) */
+ 16, /* bitsize */
+ FALSE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_bitfield, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "R_X86_64_16", /* name */
+ TRUE, /* partial_inplace */
+ 0x0000ffff, /* src_mask */
+ 0x0000ffff, /* dst_mask */
+ PCRELOFFSET), /* pcrel_offset */
+ /* 32-bit longword relocation (17). */
+ HOWTO (R_RELLONG, /* type */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 32, /* bitsize */
+ FALSE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_bitfield, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "R_X86_64_32S", /* name */
+ TRUE, /* partial_inplace */
+ 0xffffffff, /* src_mask */
+ 0xffffffff, /* dst_mask */
+ PCRELOFFSET), /* pcrel_offset */
+ /* Byte PC relative relocation (18). */
+ HOWTO (R_PCRBYTE, /* type */
+ 0, /* rightshift */
+ 0, /* size (0 = byte, 1 = short, 2 = long) */
+ 8, /* bitsize */
+ TRUE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_signed, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "R_X86_64_PC8", /* name */
+ TRUE, /* partial_inplace */
+ 0x000000ff, /* src_mask */
+ 0x000000ff, /* dst_mask */
+ PCRELOFFSET), /* pcrel_offset */
+ /* 16-bit word PC relative relocation (19). */
+ HOWTO (R_PCRWORD, /* type */
+ 0, /* rightshift */
+ 1, /* size (0 = byte, 1 = short, 2 = long) */
+ 16, /* bitsize */
+ TRUE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_signed, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "R_X86_64_PC16", /* name */
+ TRUE, /* partial_inplace */
+ 0x0000ffff, /* src_mask */
+ 0x0000ffff, /* dst_mask */
+ PCRELOFFSET), /* pcrel_offset */
+ /* 32-bit longword PC relative relocation (20). */
+ HOWTO (R_PCRLONG, /* type */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 32, /* bitsize */
+ TRUE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_signed, /* complain_on_overflow */
+ coff_amd64_reloc, /* special_function */
+ "R_X86_64_PC32", /* name */
+ TRUE, /* partial_inplace */
+ 0xffffffff, /* src_mask */
+ 0xffffffff, /* dst_mask */
+ PCRELOFFSET) /* pcrel_offset */
+};
+
+/* Turn a howto into a reloc nunmber */
+
+#define SELECT_RELOC(x,howto) { x.r_type = howto->type; }
+#define I386 1 /* Customize coffcode.h */
+#define AMD64 1
+
+#define RTYPE2HOWTO(cache_ptr, dst) \
+ ((cache_ptr)->howto = \
+ ((dst)->r_type < ARRAY_SIZE (howto_table)) \
+ ? howto_table + (dst)->r_type \
+ : NULL)
+
+/* For 386 COFF a STYP_NOLOAD | STYP_BSS section is part of a shared
+ library. On some other COFF targets STYP_BSS is normally
+ STYP_NOLOAD. */
+#define BSS_NOLOAD_IS_SHARED_LIBRARY
+
+/* Compute the addend of a reloc. If the reloc is to a common symbol,
+ the object file contains the value of the common symbol. By the
+ time this is called, the linker may be using a different symbol
+ from a different object file with a different value. Therefore, we
+ hack wildly to locate the original symbol from this file so that we
+ can make the correct adjustment. This macro sets coffsym to the
+ symbol from the original file, and uses it to set the addend value
+ correctly. If this is not a common symbol, the usual addend
+ calculation is done, except that an additional tweak is needed for
+ PC relative relocs.
+ FIXME: This macro refers to symbols and asect; these are from the
+ calling function, not the macro arguments. */
+
+#define CALC_ADDEND(abfd, ptr, reloc, cache_ptr) \
+ { \
+ coff_symbol_type *coffsym = NULL; \
+ \
+ if (ptr && bfd_asymbol_bfd (ptr) != abfd) \
+ coffsym = (obj_symbols (abfd) \
+ + (cache_ptr->sym_ptr_ptr - symbols)); \
+ else if (ptr) \
+ coffsym = coff_symbol_from (abfd, ptr); \
+ \
+ if (coffsym != NULL \
+ && coffsym->native->u.syment.n_scnum == 0) \
+ cache_ptr->addend = - coffsym->native->u.syment.n_value; \
+ else if (ptr && bfd_asymbol_bfd (ptr) == abfd \
+ && ptr->section != NULL) \
+ cache_ptr->addend = - (ptr->section->vma + ptr->value); \
+ else \
+ cache_ptr->addend = 0; \
+ if (ptr && howto_table[reloc.r_type].pc_relative) \
+ cache_ptr->addend += asect->vma; \
+ }
+
+/* We use the special COFF backend linker. For normal AMD64 COFF, we
+ can use the generic relocate_section routine. For PE, we need our
+ own routine. */
+
+#if !defined(COFF_WITH_PE)
+
+#define coff_relocate_section _bfd_coff_generic_relocate_section
+
+#else /* COFF_WITH_PE */
+
+/* The PE relocate section routine. The only difference between this
+ and the regular routine is that we don't want to do anything for a
+ relocatable link. */
+
+static bfd_boolean
+coff_pe_amd64_relocate_section (bfd *output_bfd,
+ struct bfd_link_info *info,
+ bfd *input_bfd,
+ asection *input_section,
+ bfd_byte *contents,
+ struct internal_reloc *relocs,
+ struct internal_syment *syms,
+ asection **sections)
+{
+ if (info->relocatable)
+ return TRUE;
+
+ return _bfd_coff_generic_relocate_section (output_bfd, info, input_bfd,input_section, contents,relocs, syms, sections);
+}
+
+#define coff_relocate_section coff_pe_amd64_relocate_section
+
+#endif /* COFF_WITH_PE */
+
+/* Convert an rtype to howto for the COFF backend linker. */
+
+static reloc_howto_type *
+coff_amd64_rtype_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
+ asection *sec,
+ struct internal_reloc *rel,
+ struct coff_link_hash_entry *h,
+ struct internal_syment *sym,
+ bfd_vma *addendp)
+{
+ reloc_howto_type *howto;
+
+ if (rel->r_type > ARRAY_SIZE (howto_table))
+ {
+ bfd_set_error (bfd_error_bad_value);
+ return NULL;
+ }
+ if (rel->r_type >= R_AMD64_PCRLONG_1 && rel->r_type <= R_AMD64_PCRLONG_5)
+ {
+ rel->r_vaddr += (bfd_vma)(rel->r_type-R_AMD64_PCRLONG);
+ rel->r_type = R_AMD64_PCRLONG;
+ }
+ howto = howto_table + rel->r_type;
+
+#if defined(COFF_WITH_PE)
+ /* Cancel out code in _bfd_coff_generic_relocate_section. */
+ *addendp = 0;
+#endif
+
+ if (howto->pc_relative)
+ *addendp += sec->vma;
+
+ if (sym != NULL && sym->n_scnum == 0 && sym->n_value != 0)
+ {
+ /* This is a common symbol. The section contents include the
+ size (sym->n_value) as an addend. The relocate_section
+ function will be adding in the final value of the symbol. We
+ need to subtract out the current size in order to get the
+ correct result. */
+ BFD_ASSERT (h != NULL);
+
+#if !defined(COFF_WITH_PE)
+ /* I think we *do* want to bypass this. If we don't, I have
+ seen some data parameters get the wrong relocation address.
+ If I link two versions with and without this section bypassed
+ and then do a binary comparison, the addresses which are
+ different can be looked up in the map. The case in which
+ this section has been bypassed has addresses which correspond
+ to values I can find in the map. */
+ *addendp -= sym->n_value;
+#endif
+ }
+
+#if !defined(COFF_WITH_PE)
+ /* If the output symbol is common (in which case this must be a
+ relocatable link), we need to add in the final size of the
+ common symbol. */
+ if (h != NULL && h->root.type == bfd_link_hash_common)
+ *addendp += h->root.u.c.size;
+#endif
+
+#if defined(COFF_WITH_PE)
+ if (howto->pc_relative)
+ {
+ *addendp -= 4;
+
+ /* If the symbol is defined, then the generic code is going to
+ add back the symbol value in order to cancel out an
+ adjustment it made to the addend. However, we set the addend
+ to 0 at the start of this function. We need to adjust here,
+ to avoid the adjustment the generic code will make. FIXME:
+ This is getting a bit hackish. */
+ if (sym != NULL && sym->n_scnum != 0)
+ *addendp -= sym->n_value;
+ }
+
+ if (rel->r_type == R_AMD64_IMAGEBASE
+ && (bfd_get_flavour (sec->output_section->owner) == bfd_target_coff_flavour))
+ *addendp -= pe_data (sec->output_section->owner)->pe_opthdr.ImageBase;
+
+ if (rel->r_type == R_AMD64_SECREL)
+ {
+ bfd_vma osect_vma;
+
+ if (h && (h->type == bfd_link_hash_defined || h->type == bfd_link_hash_defweak))
+ osect_vma = h->root.u.def.section->output_section->vma;
+ else
+ {
+ asection *sec;
+ int i;
+
+ /* Sigh, the only way to get the section to offset against
+ is to find it the hard way. */
+ for (sec = abfd->sections, i = 1; i < sym->n_scnum; i++)
+ sec = sec->next;
+
+ osect_vma = sec->output_section->vma;
+ }
+
+ *addendp -= osect_vma;
+ }
+#endif
+
+ return howto;
+}
+
+#define coff_bfd_reloc_type_lookup coff_amd64_reloc_type_lookup
+#define coff_bfd_reloc_name_lookup coff_amd64_reloc_name_lookup
+
+static reloc_howto_type *
+coff_amd64_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED, bfd_reloc_code_real_type code)
+{
+ switch (code)
+ {
+ case BFD_RELOC_RVA:
+ return howto_table + R_AMD64_IMAGEBASE;
+ case BFD_RELOC_32:
+ return howto_table + R_AMD64_DIR32;
+ case BFD_RELOC_64:
+ return howto_table + R_AMD64_DIR64;
+ case BFD_RELOC_64_PCREL:
+#ifndef DONT_EXTEND_AMD64
+ return howto_table + R_AMD64_PCRQUAD;
+#else
+ /* Fall through. */
+#endif
+ case BFD_RELOC_32_PCREL:
+ return howto_table + R_AMD64_PCRLONG;
+ case BFD_RELOC_X86_64_32S:
+ return howto_table + R_RELLONG;
+ case BFD_RELOC_16:
+ return howto_table + R_RELWORD;
+ case BFD_RELOC_16_PCREL:
+ return howto_table + R_PCRWORD;
+ case BFD_RELOC_8:
+ return howto_table + R_RELBYTE;
+ case BFD_RELOC_8_PCREL:
+ return howto_table + R_PCRBYTE;
+#ifdef notyet
+#if defined(COFF_WITH_PE)
+ case BFD_RELOC_32_SECREL:
+ return howto_table + R_AMD64_SECREL;
+#endif
+#endif
+ default:
+ BFD_FAIL ();
+ return 0;
+ }
+}
+
+static reloc_howto_type *
+coff_amd64_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED,
+ const char *r_name)
+{
+ unsigned int i;
+
+ for (i = 0; i < sizeof (howto_table) / sizeof (howto_table[0]); i++)
+ if (howto_table[i].name != NULL
+ && strcasecmp (howto_table[i].name, r_name) == 0)
+ return &howto_table[i];
+
+ return NULL;
+}
+
+#define coff_rtype_to_howto coff_amd64_rtype_to_howto
+
+#ifdef TARGET_UNDERSCORE
+
+/* If amd64 gcc uses underscores for symbol names, then it does not use
+ a leading dot for local labels, so if TARGET_UNDERSCORE is defined
+ we treat all symbols starting with L as local. */
+
+static bfd_boolean
+coff_amd64_is_local_label_name (bfd *abfd, const char *name)
+{
+ if (name[0] == 'L')
+ return TRUE;
+
+ return _bfd_coff_is_local_label_name (abfd, name);
+}
+
+#define coff_bfd_is_local_label_name coff_amd64_is_local_label_name
+
+#endif /* TARGET_UNDERSCORE */
+
+#include "coffcode.h"
+
+#ifdef PE
+#define amd64coff_object_p pe_bfd_object_p
+#else
+#define amd64coff_object_p coff_object_p
+#endif
+
+const bfd_target
+#ifdef TARGET_SYM
+ TARGET_SYM =
+#else
+ x86_64coff_vec =
+#endif
+{
+#ifdef TARGET_NAME
+ TARGET_NAME,
+#else
+ "coff-x86-64", /* Name. */
+#endif
+ bfd_target_coff_flavour,
+ BFD_ENDIAN_LITTLE, /* Data byte order is little. */
+ BFD_ENDIAN_LITTLE, /* Header byte order is little. */
+
+ (HAS_RELOC | EXEC_P | /* Object flags. */
+ HAS_LINENO | HAS_DEBUG |
+ HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
+
+ (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* Section flags. */
+#if defined(COFF_WITH_PE)
+ | SEC_LINK_ONCE | SEC_LINK_DUPLICATES | SEC_READONLY
+#endif
+ | SEC_CODE | SEC_DATA),
+
+#ifdef TARGET_UNDERSCORE
+ TARGET_UNDERSCORE, /* Leading underscore. */
+#else
+ 0, /* Leading underscore. */
+#endif
+ '/', /* Ar_pad_char. */
+ 15, /* Ar_max_namelen. */
+
+ bfd_getl64, bfd_getl_signed_64, bfd_putl64,
+ bfd_getl32, bfd_getl_signed_32, bfd_putl32,
+ bfd_getl16, bfd_getl_signed_16, bfd_putl16, /* Data. */
+ bfd_getl64, bfd_getl_signed_64, bfd_putl64,
+ bfd_getl32, bfd_getl_signed_32, bfd_putl32,
+ bfd_getl16, bfd_getl_signed_16, bfd_putl16, /* Hdrs. */
+
+ /* Note that we allow an object file to be treated as a core file as well. */
+ { _bfd_dummy_target, amd64coff_object_p, /* BFD_check_format. */
+ bfd_generic_archive_p, amd64coff_object_p },
+ { bfd_false, coff_mkobject, _bfd_generic_mkarchive, /* bfd_set_format. */
+ bfd_false },
+ { bfd_false, coff_write_object_contents, /* bfd_write_contents. */
+ _bfd_write_archive_contents, bfd_false },
+
+ BFD_JUMP_TABLE_GENERIC (coff),
+ BFD_JUMP_TABLE_COPY (coff),
+ BFD_JUMP_TABLE_CORE (_bfd_nocore),
+ BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff),
+ BFD_JUMP_TABLE_SYMBOLS (coff),
+ BFD_JUMP_TABLE_RELOCS (coff),
+ BFD_JUMP_TABLE_WRITE (coff),
+ BFD_JUMP_TABLE_LINK (coff),
+ BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),
+
+ NULL,
+
+ COFF_SWAP_TABLE
+};
Copied: projects/sv/contrib/binutils/bfd/efi-app-x86_64.c (from r213583, head/contrib/binutils/bfd/efi-app-x86_64.c)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/sv/contrib/binutils/bfd/efi-app-x86_64.c Fri Oct 8 16:33:25 2010 (r213584, copy of r213583, head/contrib/binutils/bfd/efi-app-x86_64.c)
@@ -0,0 +1,34 @@
+/* BFD back-end for Intel64 UEFI application files.
+ Copyright 2007 Free Software Foundation, Inc.
+
+This file is part of BFD, the Binary File Descriptor library.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
+
+#include "sysdep.h"
+#include "bfd.h"
+
+#define TARGET_SYM bfd_efi_app_x86_64_vec
+#define TARGET_NAME "efi-app-x86_64"
+#define COFF_IMAGE_WITH_PE
+#define COFF_WITH_PE
+#define COFF_WITH_pep
+#define PCRELOFFSET TRUE
+#define TARGET_UNDERSCORE '_'
+#define COFF_LONG_SECTION_NAMES
+#define PEI_TARGET_SUBSYSTEM IMAGE_SUBSYSTEM_EFI_APPLICATION
+#define PEI_FORCE_MINIMUM_ALIGNMENT
+
+#include "coff-x86_64.c"
Modified: projects/sv/contrib/binutils/bfd/targets.c
==============================================================================
--- projects/sv/contrib/binutils/bfd/targets.c Fri Oct 8 15:59:02 2010 (r213583)
+++ projects/sv/contrib/binutils/bfd/targets.c Fri Oct 8 16:33:25 2010 (r213584)
@@ -510,6 +510,7 @@ extern const bfd_target armpei_little_ve
extern const bfd_target b_out_vec_big_host;
extern const bfd_target b_out_vec_little_host;
extern const bfd_target bfd_efi_app_ia32_vec;
+extern const bfd_target bfd_efi_app_x86_64_vec;
extern const bfd_target bfd_efi_app_ia64_vec;
extern const bfd_target bfd_elf32_avr_vec;
extern const bfd_target bfd_elf32_big_generic_vec;
@@ -794,6 +795,7 @@ static const bfd_target * const _bfd_tar
&b_out_vec_big_host,
&b_out_vec_little_host,
&bfd_efi_app_ia32_vec,
+ &bfd_efi_app_x86_64_vec,
#ifdef BFD64
&bfd_efi_app_ia64_vec,
#endif
Modified: projects/sv/contrib/binutils/include/coff/internal.h
==============================================================================
--- projects/sv/contrib/binutils/include/coff/internal.h Fri Oct 8 15:59:02 2010 (r213583)
+++ projects/sv/contrib/binutils/include/coff/internal.h Fri Oct 8 16:33:25 2010 (r213584)
@@ -1,7 +1,8 @@
/* Internal format of COFF object file data structures, for GNU BFD.
This file is part of BFD, the Binary File Descriptor library.
- Copyright 2001 Free Software Foundation, Inc.
+ Copyright 1999, 2000, 2001, 2002, 2003, 2004. 2005, 2006, 2007, 2009
+ Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -15,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
#ifndef GNU_COFF_INTERNAL_H
#define GNU_COFF_INTERNAL_H 1
@@ -57,10 +58,19 @@ struct internal_extra_pe_filehdr
bfd_vma nt_signature; /* required NT signature, 0x4550 */
};
+#define GO32_STUBSIZE 2048
+
struct internal_filehdr
*** DIFF OUTPUT TRUNCATED AT 1000 LINES ***
More information about the svn-src-projects
mailing list