From owner-svn-src-projects@FreeBSD.ORG Sun Oct 17 00:12:11 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E98E8106564A; Sun, 17 Oct 2010 00:12:11 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D3D3F8FC1A; Sun, 17 Oct 2010 00:12:11 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9H0CBA2096010; Sun, 17 Oct 2010 00:12:11 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9H0CBBF096005; Sun, 17 Oct 2010 00:12:11 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010170012.o9H0CBBF096005@svn.freebsd.org> From: Jeff Roberson Date: Sun, 17 Oct 2010 00:12:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r213940 - in projects/ofed/base/contrib/ofed: dapl dapl/config dapl/dapl dapl/dapl/common dapl/dapl/include dapl/dapl/openib_cma dapl/dapl/openib_cma/linux dapl/dapl/openib_common dapl/... X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Oct 2010 00:12:12 -0000 Author: jeff Date: Sun Oct 17 00:12:11 2010 New Revision: 213940 URL: http://svn.freebsd.org/changeset/base/213940 Log: - Add base files for dapl 2.0.26, libibcm 1.0.5, and librdmacm 1.0.11 Sponsored by: Isilon Systems, iX Systems, and Panasas. Added: projects/ofed/base/contrib/ofed/dapl/ projects/ofed/base/contrib/ofed/dapl/AUTHORS projects/ofed/base/contrib/ofed/dapl/COPYING projects/ofed/base/contrib/ofed/dapl/ChangeLog projects/ofed/base/contrib/ofed/dapl/Makefile.am (contents, props changed) projects/ofed/base/contrib/ofed/dapl/Makefile.in projects/ofed/base/contrib/ofed/dapl/README projects/ofed/base/contrib/ofed/dapl/aclocal.m4 projects/ofed/base/contrib/ofed/dapl/config/ projects/ofed/base/contrib/ofed/dapl/config.h.in projects/ofed/base/contrib/ofed/dapl/config/compile (contents, props changed) projects/ofed/base/contrib/ofed/dapl/config/config.guess (contents, props changed) projects/ofed/base/contrib/ofed/dapl/config/config.sub (contents, props changed) projects/ofed/base/contrib/ofed/dapl/config/depcomp (contents, props changed) projects/ofed/base/contrib/ofed/dapl/config/install-sh (contents, props changed) projects/ofed/base/contrib/ofed/dapl/config/ltmain.sh projects/ofed/base/contrib/ofed/dapl/config/missing (contents, props changed) projects/ofed/base/contrib/ofed/dapl/configure (contents, props changed) projects/ofed/base/contrib/ofed/dapl/configure.in projects/ofed/base/contrib/ofed/dapl/dapl/ projects/ofed/base/contrib/ofed/dapl/dapl.spec projects/ofed/base/contrib/ofed/dapl/dapl.spec.in projects/ofed/base/contrib/ofed/dapl/dapl/common/ projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_adapter_util.h (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_cno_util.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_cno_util.h (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_cookie.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_cookie.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_cr_accept.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_cr_callback.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_cr_handoff.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_cr_query.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_cr_reject.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_cr_util.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_cr_util.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_csp.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_debug.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_connect.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_create.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_create_with_srq.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_disconnect.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_dup_connect.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_free.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_get_status.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_modify.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_post_rdma_read.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_post_rdma_read_to_rmr.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_post_rdma_write.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_post_recv.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_post_send.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_post_send_invalidate.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_query.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_recv_query.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_reset.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_set_watermark.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_util.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ep_util.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_evd_connection_callb.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_evd_cq_async_error_callb.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_evd_dequeue.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_evd_dto_callb.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_evd_free.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_evd_post_se.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_evd_qp_async_error_callb.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_evd_resize.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_evd_un_async_error_callb.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_evd_util.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_evd_util.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_get_consumer_context.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_get_handle_type.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_hash.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_hash.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_hca_util.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_hca_util.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ia_close.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ia_ha.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ia_open.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ia_query.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ia_util.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ia_util.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_init.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_llist.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_lmr_free.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_lmr_query.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_lmr_sync_rdma_read.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_lmr_sync_rdma_write.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_lmr_util.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_lmr_util.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_mr_util.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_mr_util.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_name_service.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_name_service.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_provider.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_provider.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_psp_create.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_psp_create_any.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_psp_free.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_psp_query.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_pz_create.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_pz_free.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_pz_query.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_pz_util.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_pz_util.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ring_buffer_util.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_ring_buffer_util.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_rmr_bind.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_rmr_create.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_rmr_free.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_rmr_query.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_rmr_util.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_rmr_util.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_rsp_create.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_rsp_free.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_rsp_query.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_set_consumer_context.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_sp_util.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_sp_util.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_srq_create.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_srq_free.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_srq_post_recv.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_srq_query.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_srq_resize.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_srq_set_lw.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_srq_util.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_srq_util.h projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_timer_util.c projects/ofed/base/contrib/ofed/dapl/dapl/common/dapl_timer_util.h projects/ofed/base/contrib/ofed/dapl/dapl/include/ projects/ofed/base/contrib/ofed/dapl/dapl/include/dapl.h (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/include/dapl_debug.h projects/ofed/base/contrib/ofed/dapl/dapl/include/dapl_ipoib_names.h projects/ofed/base/contrib/ofed/dapl/dapl/include/dapl_vendor.h projects/ofed/base/contrib/ofed/dapl/dapl/openib_cma/ projects/ofed/base/contrib/ofed/dapl/dapl/openib_cma/cm.c projects/ofed/base/contrib/ofed/dapl/dapl/openib_cma/dapl_ib_util.h projects/ofed/base/contrib/ofed/dapl/dapl/openib_cma/device.c projects/ofed/base/contrib/ofed/dapl/dapl/openib_cma/linux/ projects/ofed/base/contrib/ofed/dapl/dapl/openib_cma/linux/openib_osd.h projects/ofed/base/contrib/ofed/dapl/dapl/openib_common/ projects/ofed/base/contrib/ofed/dapl/dapl/openib_common/cq.c projects/ofed/base/contrib/ofed/dapl/dapl/openib_common/dapl_ib_common.h projects/ofed/base/contrib/ofed/dapl/dapl/openib_common/dapl_ib_dto.h projects/ofed/base/contrib/ofed/dapl/dapl/openib_common/ib_extensions.c projects/ofed/base/contrib/ofed/dapl/dapl/openib_common/mem.c projects/ofed/base/contrib/ofed/dapl/dapl/openib_common/qp.c projects/ofed/base/contrib/ofed/dapl/dapl/openib_common/util.c projects/ofed/base/contrib/ofed/dapl/dapl/openib_scm/ projects/ofed/base/contrib/ofed/dapl/dapl/openib_scm/cm.c projects/ofed/base/contrib/ofed/dapl/dapl/openib_scm/dapl_ib_util.h projects/ofed/base/contrib/ofed/dapl/dapl/openib_scm/device.c projects/ofed/base/contrib/ofed/dapl/dapl/openib_scm/linux/ projects/ofed/base/contrib/ofed/dapl/dapl/openib_scm/linux/openib_osd.h projects/ofed/base/contrib/ofed/dapl/dapl/openib_ucm/ projects/ofed/base/contrib/ofed/dapl/dapl/openib_ucm/cm.c projects/ofed/base/contrib/ofed/dapl/dapl/openib_ucm/dapl_ib_util.h projects/ofed/base/contrib/ofed/dapl/dapl/openib_ucm/device.c projects/ofed/base/contrib/ofed/dapl/dapl/openib_ucm/linux/ projects/ofed/base/contrib/ofed/dapl/dapl/openib_ucm/linux/openib_osd.h projects/ofed/base/contrib/ofed/dapl/dapl/udapl/ projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_cno_create.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_cno_free.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_cno_modify_agent.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_cno_query.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_cno_wait.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_evd_clear_unwaitable.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_evd_create.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_evd_disable.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_evd_enable.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_evd_modify_cno.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_evd_query.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_evd_set_unwaitable.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_evd_wait.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_init.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/dapl_lmr_create.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/libdaplofa.map (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/udapl/libdaploscm.map (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dapl/udapl/libdaploucm.map projects/ofed/base/contrib/ofed/dapl/dapl/udapl/linux/ projects/ofed/base/contrib/ofed/dapl/dapl/udapl/linux/dapl_osd.c projects/ofed/base/contrib/ofed/dapl/dapl/udapl/linux/dapl_osd.h projects/ofed/base/contrib/ofed/dapl/dat/ projects/ofed/base/contrib/ofed/dapl/dat/common/ projects/ofed/base/contrib/ofed/dapl/dat/common/dat_api.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dat/common/dat_dictionary.c projects/ofed/base/contrib/ofed/dapl/dat/common/dat_dictionary.h projects/ofed/base/contrib/ofed/dapl/dat/common/dat_dr.c projects/ofed/base/contrib/ofed/dapl/dat/common/dat_dr.h projects/ofed/base/contrib/ofed/dapl/dat/common/dat_init.c projects/ofed/base/contrib/ofed/dapl/dat/common/dat_init.h projects/ofed/base/contrib/ofed/dapl/dat/common/dat_sr.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dat/common/dat_sr.h projects/ofed/base/contrib/ofed/dapl/dat/common/dat_strerror.c projects/ofed/base/contrib/ofed/dapl/dat/include/ projects/ofed/base/contrib/ofed/dapl/dat/include/dat2/ projects/ofed/base/contrib/ofed/dapl/dat/include/dat2/dat.h (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dat/include/dat2/dat_error.h projects/ofed/base/contrib/ofed/dapl/dat/include/dat2/dat_ib_extensions.h (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dat/include/dat2/dat_platform_specific.h projects/ofed/base/contrib/ofed/dapl/dat/include/dat2/dat_redirection.h (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dat/include/dat2/dat_registry.h projects/ofed/base/contrib/ofed/dapl/dat/include/dat2/dat_vendor_specific.h projects/ofed/base/contrib/ofed/dapl/dat/include/dat2/udat.h (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dat/include/dat2/udat_config.h projects/ofed/base/contrib/ofed/dapl/dat/include/dat2/udat_redirection.h (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dat/include/dat2/udat_vendor_specific.h projects/ofed/base/contrib/ofed/dapl/dat/udat/ projects/ofed/base/contrib/ofed/dapl/dat/udat/libdat2.map (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dat/udat/linux/ projects/ofed/base/contrib/ofed/dapl/dat/udat/linux/dat_osd.c projects/ofed/base/contrib/ofed/dapl/dat/udat/linux/dat_osd.h projects/ofed/base/contrib/ofed/dapl/dat/udat/udat.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/dat/udat/udat_api.c projects/ofed/base/contrib/ofed/dapl/dat/udat/udat_sr_parser.c projects/ofed/base/contrib/ofed/dapl/dat/udat/udat_sr_parser.h projects/ofed/base/contrib/ofed/dapl/man/ projects/ofed/base/contrib/ofed/dapl/man/dapltest.1 projects/ofed/base/contrib/ofed/dapl/man/dat.conf.5 projects/ofed/base/contrib/ofed/dapl/man/dtest.1 (contents, props changed) projects/ofed/base/contrib/ofed/dapl/test/ projects/ofed/base/contrib/ofed/dapl/test/dapltest/ projects/ofed/base/contrib/ofed/dapl/test/dapltest/Makefile.am (contents, props changed) projects/ofed/base/contrib/ofed/dapl/test/dapltest/Makefile.in projects/ofed/base/contrib/ofed/dapl/test/dapltest/README projects/ofed/base/contrib/ofed/dapl/test/dapltest/cmd/ projects/ofed/base/contrib/ofed/dapl/test/dapltest/cmd/dapl_fft_cmd.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/cmd/dapl_getopt.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/cmd/dapl_limit_cmd.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/cmd/dapl_main.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/cmd/dapl_netaddr.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/cmd/dapl_params.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/cmd/dapl_performance_cmd.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/cmd/dapl_qos_util.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/cmd/dapl_quit_cmd.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/cmd/dapl_server_cmd.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/cmd/dapl_transaction_cmd.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/common/ projects/ofed/base/contrib/ofed/dapl/test/dapltest/common/dapl_endian.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/common/dapl_global.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/common/dapl_performance_cmd_util.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/common/dapl_quit_cmd_util.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/common/dapl_transaction_cmd_util.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/ projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_bpool.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_client_info.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_common.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_execute.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_fft_cmd.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_fft_util.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_getopt.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_global.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_limit_cmd.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_mdep.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_memlist.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_params.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_performance_cmd.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_performance_stats.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_performance_test.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_proto.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_quit_cmd.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_server_cmd.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_server_info.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_tdep.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_tdep_print.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_test_data.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_transaction_cmd.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_transaction_stats.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_transaction_test.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/include/dapl_version.h projects/ofed/base/contrib/ofed/dapl/test/dapltest/mdep/ projects/ofed/base/contrib/ofed/dapl/test/dapltest/mdep/linux/ projects/ofed/base/contrib/ofed/dapl/test/dapltest/mdep/linux/dapl_mdep_user.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/mdep/linux/dapl_mdep_user.h (contents, props changed) projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/ projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_bpool.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_client.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_client_info.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_cnxn.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_execute.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_fft_connmgt.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_fft_endpoint.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_fft_hwconn.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_fft_mem.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_fft_pz.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_fft_queryinfo.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_fft_test.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_fft_util.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_limit.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_memlist.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_performance_client.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_performance_server.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_performance_stats.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_performance_util.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_quit_util.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_server.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_server_info.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_test_data.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_test_util.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_thread.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_transaction_stats.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_transaction_test.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_transaction_util.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/test/dapl_util.c projects/ofed/base/contrib/ofed/dapl/test/dapltest/udapl/ projects/ofed/base/contrib/ofed/dapl/test/dapltest/udapl/udapl_tdep.c projects/ofed/base/contrib/ofed/dapl/test/dtest/ projects/ofed/base/contrib/ofed/dapl/test/dtest/Makefile.am (contents, props changed) projects/ofed/base/contrib/ofed/dapl/test/dtest/Makefile.in projects/ofed/base/contrib/ofed/dapl/test/dtest/README projects/ofed/base/contrib/ofed/dapl/test/dtest/dtest.c (contents, props changed) projects/ofed/base/contrib/ofed/dapl/test/dtest/dtestcm.c projects/ofed/base/contrib/ofed/dapl/test/dtest/dtestx.c (contents, props changed) projects/ofed/base/contrib/ofed/libibcm/ projects/ofed/base/contrib/ofed/libibcm/AUTHORS projects/ofed/base/contrib/ofed/libibcm/COPYING projects/ofed/base/contrib/ofed/libibcm/ChangeLog projects/ofed/base/contrib/ofed/libibcm/INSTALL projects/ofed/base/contrib/ofed/libibcm/Makefile.am projects/ofed/base/contrib/ofed/libibcm/Makefile.in projects/ofed/base/contrib/ofed/libibcm/NEWS projects/ofed/base/contrib/ofed/libibcm/README projects/ofed/base/contrib/ofed/libibcm/aclocal.m4 projects/ofed/base/contrib/ofed/libibcm/config/ projects/ofed/base/contrib/ofed/libibcm/config.h.in projects/ofed/base/contrib/ofed/libibcm/config/compile (contents, props changed) projects/ofed/base/contrib/ofed/libibcm/config/config.guess (contents, props changed) projects/ofed/base/contrib/ofed/libibcm/config/config.sub (contents, props changed) projects/ofed/base/contrib/ofed/libibcm/config/depcomp (contents, props changed) projects/ofed/base/contrib/ofed/libibcm/config/install-sh (contents, props changed) projects/ofed/base/contrib/ofed/libibcm/config/ltmain.sh projects/ofed/base/contrib/ofed/libibcm/config/missing (contents, props changed) projects/ofed/base/contrib/ofed/libibcm/configure (contents, props changed) projects/ofed/base/contrib/ofed/libibcm/configure.in projects/ofed/base/contrib/ofed/libibcm/include/ projects/ofed/base/contrib/ofed/libibcm/include/infiniband/ projects/ofed/base/contrib/ofed/libibcm/include/infiniband/cm.h projects/ofed/base/contrib/ofed/libibcm/include/infiniband/cm_abi.h projects/ofed/base/contrib/ofed/libibcm/libibcm.spec projects/ofed/base/contrib/ofed/libibcm/libibcm.spec.in projects/ofed/base/contrib/ofed/libibcm/src/ projects/ofed/base/contrib/ofed/libibcm/src/cm.c projects/ofed/base/contrib/ofed/libibcm/src/libibcm.map projects/ofed/base/contrib/ofed/librdmacm/ projects/ofed/base/contrib/ofed/librdmacm/AUTHORS projects/ofed/base/contrib/ofed/librdmacm/COPYING projects/ofed/base/contrib/ofed/librdmacm/ChangeLog projects/ofed/base/contrib/ofed/librdmacm/INSTALL projects/ofed/base/contrib/ofed/librdmacm/Makefile.am projects/ofed/base/contrib/ofed/librdmacm/Makefile.in projects/ofed/base/contrib/ofed/librdmacm/NEWS projects/ofed/base/contrib/ofed/librdmacm/README projects/ofed/base/contrib/ofed/librdmacm/aclocal.m4 projects/ofed/base/contrib/ofed/librdmacm/config/ projects/ofed/base/contrib/ofed/librdmacm/config.h.in projects/ofed/base/contrib/ofed/librdmacm/config/compile (contents, props changed) projects/ofed/base/contrib/ofed/librdmacm/config/config.guess (contents, props changed) projects/ofed/base/contrib/ofed/librdmacm/config/config.sub (contents, props changed) projects/ofed/base/contrib/ofed/librdmacm/config/depcomp (contents, props changed) projects/ofed/base/contrib/ofed/librdmacm/config/install-sh (contents, props changed) projects/ofed/base/contrib/ofed/librdmacm/config/ltmain.sh projects/ofed/base/contrib/ofed/librdmacm/config/missing (contents, props changed) projects/ofed/base/contrib/ofed/librdmacm/configure (contents, props changed) projects/ofed/base/contrib/ofed/librdmacm/configure.in projects/ofed/base/contrib/ofed/librdmacm/examples/ projects/ofed/base/contrib/ofed/librdmacm/examples/cmatose.c projects/ofed/base/contrib/ofed/librdmacm/examples/mckey.c projects/ofed/base/contrib/ofed/librdmacm/examples/rping.c projects/ofed/base/contrib/ofed/librdmacm/examples/udaddy.c projects/ofed/base/contrib/ofed/librdmacm/include/ projects/ofed/base/contrib/ofed/librdmacm/include/rdma/ projects/ofed/base/contrib/ofed/librdmacm/include/rdma/rdma_cma.h projects/ofed/base/contrib/ofed/librdmacm/include/rdma/rdma_cma_abi.h projects/ofed/base/contrib/ofed/librdmacm/librdmacm.spec projects/ofed/base/contrib/ofed/librdmacm/librdmacm.spec.in projects/ofed/base/contrib/ofed/librdmacm/man/ projects/ofed/base/contrib/ofed/librdmacm/man/mckey.1 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_accept.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_ack_cm_event.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_bind_addr.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_cm.7 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_connect.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_create_event_channel.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_create_id.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_create_qp.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_destroy_event_channel.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_destroy_id.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_destroy_qp.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_disconnect.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_event_str.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_free_devices.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_get_cm_event.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_get_devices.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_get_dst_port.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_get_local_addr.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_get_peer_addr.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_get_src_port.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_join_multicast.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_leave_multicast.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_listen.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_migrate_id.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_notify.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_reject.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_resolve_addr.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_resolve_route.3 projects/ofed/base/contrib/ofed/librdmacm/man/rdma_set_option.3 projects/ofed/base/contrib/ofed/librdmacm/man/rping.1 projects/ofed/base/contrib/ofed/librdmacm/man/ucmatose.1 projects/ofed/base/contrib/ofed/librdmacm/man/udaddy.1 projects/ofed/base/contrib/ofed/librdmacm/src/ projects/ofed/base/contrib/ofed/librdmacm/src/cma.c projects/ofed/base/contrib/ofed/librdmacm/src/librdmacm.map Added: projects/ofed/base/contrib/ofed/dapl/AUTHORS ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/ofed/base/contrib/ofed/dapl/AUTHORS Sun Oct 17 00:12:11 2010 (r213940) @@ -0,0 +1,17 @@ +This is an incomplete list of people who have contributed to the +DAPL project: + + Caitlin Bestler + Philip Christopher + Jay Danielsen + Arlin Davis + Tom Duffy + Matthew Finlay + Jimmy Hill + James Lentini + Gil Rubin + Steve Sears + Randy Smith + Stan Smith + Anthony Topper + Steve Wise Added: projects/ofed/base/contrib/ofed/dapl/COPYING ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/ofed/base/contrib/ofed/dapl/COPYING Sun Oct 17 00:12:11 2010 (r213940) @@ -0,0 +1,36 @@ +# +# Copyright (c) 2002-2005, Network Appliance, Inc. All rights reserved. +# Copyright (c) 2005 Voltaire Inc. All rights reserved. +# Copyright (c) 2005 Intel Corporation. All rights reserved. +# Copyright (c) 2004-2005, Mellanox Technologies, Inc. All rights reserved. +# Copyright (c) 2003 Topspin Corporation. All rights reserved. +# Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved. +# +# This Software is licensed under one of the following licenses: +# +# 1) under the terms of the "Common Public License 1.0" a copy of which is +# in the file LICENSE.txt in the root directory. The license is also +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/cpl.php. +# +# 2) under the terms of the "The BSD License" a copy of which is in the file +# LICENSE2.txt in the root directory. The license is also available from +# the Open Source Initiative, see +# http://www.opensource.org/licenses/bsd-license.php. +# +# 3) under the terms of the "GNU General Public License (GPL) Version 2" a +# copy of which is in the file LICENSE3.txt in the root directory. The +# license is also available from the Open Source Initiative, see +# http://www.opensource.org/licenses/gpl-license.php. +# +# Licensee has the right to choose one of the above licenses. +# +# Redistributions of source code must retain the above copyright +# notice and one of the license notices. +# +# Redistributions in binary form must reproduce both the above copyright +# notice, one of the license notices in the documentation +# and/or other materials provided with the distribution. +# + + Added: projects/ofed/base/contrib/ofed/dapl/ChangeLog ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/ofed/base/contrib/ofed/dapl/ChangeLog Sun Oct 17 00:12:11 2010 (r213940) @@ -0,0 +1,4397 @@ +commit 73dfb32ace6aff2fdb21e54689342fd551822286 +Author: Arlin Davis +Date: Tue Dec 22 14:00:33 2009 -0800 + + openib_common: add check for both gid and global routing in RTR + + check for valid gid pointer along with global route setting + during transition to RTR. Add more GID information to + debug print statement in qp modify call. + + Signed-off-by: Arlin Davis + +commit 7aab18fd8ff3f201b0a4b6c76896667b29f103c4 +Author: Arlin Davis +Date: Fri Dec 4 12:31:22 2009 -0800 + + openib_common: remote memory read privilege set multi times + + duplicate setting of read privilege in dapls_convert_privileges + + Signed-off-by: Arlin Davis + +commit 016e2c40b8ac2fe18993e9fb7122ecb9b439e5eb +Author: Arlin Davis +Date: Fri Dec 4 12:25:30 2009 -0800 + + ucm, scm: DAPL_GLOBAL_ROUTING enabled causes segv + + socket cm and ud cm providers support QP modify with is_global + set and GRH. New v2 providers didn't pass GID information + in modify_qp RTR call and incorrectly byte swapped the already + network order GID. Add debug print of GID during global modify. + + Signed-off-by: Arlin Davis + +commit 7b0c596c7b4ad619f65da9f79dcbc4376e651dde +Author: Arlin Davis +Date: Tue Nov 24 22:16:58 2009 -0800 + + Release 2.0.25-1 + + Signed-off-by: Arlin Davis + +commit 3197bffff478ad7ff5eff9220fa0528e42e6b56e +Author: Arlin Davis +Date: Tue Nov 24 22:15:46 2009 -0800 + + winof scm: initialize opt for NODELAY setsockopt + + Signed-off-by: Arlin Davis + +commit 8559ec069329249592f367b5b8f61427cbad0a46 +Author: Arlin Davis +Date: Tue Nov 24 11:29:46 2009 -0800 + + Release 2.0.25 + + Signed-off-by: Arlin Davis + +commit 0983c66cbd9511128c1fa221470c4c983903e420 +Author: Arlin Davis +Date: Tue Nov 24 08:58:44 2009 -0800 + + winof cma: windows definition for EADDRNOTAVAIL missing + + Signed-off-by: stan smith + +commit 4fbbcfa1d7bf7a843b27e351d35f3ffbc2ac4db8 +Author: Arlin Davis +Date: Tue Nov 24 08:54:26 2009 -0800 + + scm: client side setsockopt NODELAY fails if data arrives before setting + + Move setsockopt before connect to avoid race with data. + Seems to fail on windows. Not seen on linux. + + Signed-off-by: Arlin Davis + +commit 9dfa9a06d55101fed0773028ce7ab85330514c67 +Author: Arlin Davis +Date: Wed Nov 18 09:52:40 2009 -0800 + + cma: setup_listener Cannot assign requested address + + Colliding with RDS port of 18634. rdma_cm can return + either EADDRINUSE or EADDRNOTAVAIL if the bind fails. + Add check for either and return proper DAT_CONN_QUAL_IN_USE. + + Signed-off-by: Arlin Davis + +commit 0698fb56d533a5225cbc3a5a4b8ab2e2d56b7502 +Author: Arlin Davis +Date: Wed Nov 18 09:43:38 2009 -0800 + + common: seg fault in dapl_evd_wait with multi-thread application using CNO's. + + If we are dealing with event streams besides a CQ event stream, + be conservative and set producer side locking. Otherwise, no. + Check for CNO is missing, CNO is not considered CQ event stream. + + Signed-off-by: Arlin Davis + +commit 4d26a280572a58248b0796e4d5ed01ea5d67be46 +Author: Arlin Davis +Date: Wed Nov 18 09:37:48 2009 -0800 + + ucm: inbound DREQ/DREP handshake should transition QP. + + During release, when receiving a disconnect request from remote peer + instead of a disconnect call from the client, the QP didn't get properly + set in ERR state and didn't flush the queue during disconnect processing. + + Signed-off-by: Arlin Davis + +commit 87965cd15bbfa38b00ed2d77a4ea5a76f76cf4a3 +Author: Arlin Davis +Date: Mon Nov 2 08:24:53 2009 -0800 + + winof: Remove duplicate include of comp_channel.cpp from cm.c as it is included in opensm_ucb/device.c. + + Signed-off-by: stan smith + +commit 737fa288b72fad19a1fc3e762eb9f2c471ce6ddd +Author: Arlin Davis +Date: Fri Oct 30 13:19:21 2009 -0800 + + Release 2.0.24 + + Signed-off-by: Arlin Davis + +commit 9fe7506ff9ddf1ae6297cfc6a9dd4d6a57e1939e +Author: Arlin Davis +Date: Fri Oct 30 12:57:22 2009 -0800 + + winof: Utilize WinOF version of inet_ntop() for Windows OSes which do not support inet_ntop(). + + Signed-off-by: stan smith + +commit d56c645a2bf234e9e0cf215b112c2aa9d5e01945 +Author: Arlin Davis +Date: Fri Oct 30 07:17:26 2009 -0800 + + ucm: windows build issue with new CQ completion channel + + Signed-off-by: Arlin Davis + +commit 2d2e7e1e185c08542ee31b0e77561a1eeb4bde6c +Author: Arlin Davis +Date: Fri Oct 30 06:35:33 2009 -0800 + + winof: add ucm provider to windows build + + Signed-off-by: Arlin Davis + +commit 94b2206093607214e0a9709651460692e8196e1c +Author: Arlin Davis +Date: Fri Oct 30 06:32:56 2009 -0800 + + winof: add missing build files for ibal, scm + + Signed-off-by: Arlin Davis + +commit 66b76d7a8035b9164b69781d7630a0c77ce1bb5a +Author: Arlin Davis +Date: Wed Oct 28 09:52:50 2009 -0800 + + scm: connection peer resets under heavy load, incorrect event on error + + Under heavy load, we get a peer reset from the remote stack. In this + case retry the socket connection for this QP setup. + + Add debugging with PID's and socket ports to help isolate + these types of socket scaling issues. + + Report correct UD event during error, check remote_ah creation. + + Fix dapl_poll return codes for single event type only. + + Signed-off-by: Arlin Davis + +commit f8108a9bda0200355107fdd6c43cb5885f47d648 +Author: Arlin Davis +Date: Wed Oct 28 09:47:37 2009 -0800 + + ucm: increase default reply and rtu timeout values. + + Signed-off-by: Arlin Davis + +commit 9c13d0d01c78eeb5071e802fbb53811cdb377059 +Author: Arlin Davis +Date: Wed Oct 28 07:48:20 2009 -0800 + + ucm: change some debug message levels and add check for valid UD REPLY during retries. + + Signed-off-by: Arlin Davis + +commit 1c404bb3dcc0a45e21ef3aa973d59714413beae0 +Author: Arlin Davis +Date: Tue Oct 27 10:37:45 2009 -0800 + + ucm: increase timers during subsequent retries + + check/process create_ah errors during connect phase + cleanup some debug messaging. + + Signed-off-by: Arlin Davis + +commit cd8c48586f53e846de4fbe10994b73ba457f6406 +Author: Arlin Davis +Date: Mon Oct 19 10:38:36 2009 -0700 + + ucm, scm: address handles need destroyed when freeing Endpoints with UD QP's. + + Signed-off-by: Arlin Davis + +commit ce19f5744c0dd9461c09d999b309e8f0e2242767 +Author: Arlin Davis +Date: Fri Oct 16 14:42:00 2009 -0700 + + openib_common: ignore pd free errors, clear pd_handle and return. + + some older adapters have some issues + with pd free so just clear handle and return + + Signed-off-by: Arlin Davis + +commit 81f5ac17d9039e2edcd8324f7d5ed5f66fcff9f2 +Author: Arlin Davis +Date: Fri Oct 16 08:52:21 2009 -0700 + + ucm: using UD type QP's, ucm reports wrong reject event when user rejects AH resolution request. + + During rejects, both usr and ucm internal, the qp_type does not get initialized + so the check for UD type QP messages fail on active side and the wrong + event gets generated. Initialize saddr.ib information before sending reject + back to active side. + + Signed-off-by: Arlin Davis + +commit f0214e5a7a81a68819d308cb921eb75f5246207d +Author: Arlin Davis +Date: Fri Oct 16 07:57:25 2009 -0700 + + ucm, scm, cma: Fix CNO support on DTO type EVD's + + EVD wait_object should be used for CNO processing + and not the direct CQ event channels. Add proper + checking for DTO type EVD's with CNO at wait + and wakeup. + + UCM missing support for collective EVD's under a + CNO. Add support to create common channel for + collective EVD's during device open. Add support + in cm_thread to check this channel. Also, + during disconnect, move QP to error to properly + flush queue instead of moving to reset and init. + + Signed-off-by: Arlin Davis + +commit 960950a7d9f5437dd831bd56ca2ad0c06cb4e324 +Author: Arlin Davis +Date: Thu Oct 15 09:19:45 2009 -0700 + + ucm: fix lock init bug in ucm_cm_find + + the lock should be setup as pointer to lock + not lock structure. Cleanup lock and list + in cm_find function and cm_print function. + + Add debug aid by passing process id in + msg resv area. cleanup cr references + and change to cm for consistency. + + Signed-off-by: Arlin Davis + +commit f86fec772f2d82eaf60228d288b295e0b7b86c59 +Author: Arlin Davis +Date: Wed Oct 14 10:03:47 2009 -0700 + + ucm: fix build problem with latest windows ucm changes + + define dapls_thread_signal as inline + + Signed-off-by: Arlin Davis + +commit 87b6c8ba92f3063a35d49bdb49d6cd0a5100a36c +Author: Sean Hefty +Date: Wed Oct 14 09:34:22 2009 -0700 + + Signed-off-by: Sean Hefty + +commit 9fdd8d74f2cba83e9cf513256933f5241495c1da +Author: Sean Hefty +Date: Wed Oct 14 09:34:18 2009 -0700 + + The HCA should not be closed until all resources have been released. + This results in a hang on windows, since closing the device frees + the event processing thread. + + Signed-off-by: Sean Hefty + +commit f9833db469f2d686842bb1d52d1ea53b74fa72a8 +Author: Sean Hefty +Date: Wed Oct 14 09:34:13 2009 -0700 + + Fix build warning when compiling on 32-bit systems. + + Signed-off-by: Sean Hefty + +commit c80515bd4b1bd11a125dc17e3f7db44240ee1fff +Author: Sean Hefty +Date: Wed Oct 14 09:34:07 2009 -0700 + + Trying to deregister the same memory region twice leads to an + application crash on windows. + + Signed-off-by: Sean Hefty + +commit 6aa2c0d901daa9cfca7e771c1df2ead074d230bd +Author: Arlin Davis +Date: Wed Oct 14 07:59:23 2009 -0700 + + dat: reduce debug message level when parsing for location of dat.conf + + Don't output failover to default /etc/dat.conf from + sysconfdir at ERROR level. Reduce to DAT_OS_DBG_TYPE_SR. + + Signed-off-by: Arlin Davis + +commit e4038e078747201b57203f16ba793b7fc22c12f2 +Author: Arlin Davis +Date: Thu Oct 8 16:23:22 2009 -0700 + + ucm: update ucm provider for windows environment + + add dapls_thread_signal abstraction and a new + cm_thread function specific for windows. + + Signed-off-by: Sean Hefty + Signed-off-by: Arlin Davis + +commit d80ce42390eb57b9c4f816b4df063f90bd5699bc +Author: Arlin Davis +Date: Thu Oct 8 16:02:52 2009 -0700 + + ucm: add timer/retry CM logic to the ucm provider + + add reply, rtu and retry count options via + environment variables. Times in msecs. + DAPL_UCM_RETRY 10 + DAPL_UCM_REP_TIME 400 + DAPL_UCM_RTU_TIME 200 + + Add RTU_PENDING and DISC_RECV states + + Add check timer code to the cm_thread + and the option to the select abstaction + to take timeout values in msecs. + DREQ, REQ, and REPLY will all be timed + and retried. + + Split out reply code and disconnect_final + code to better facilitate retry timers. + Add checking for duplicate messages. + + Added new UD extension events for errors. + DAT_IB_UD_CONNECTION_REJECT_EVENT + DAT_IB_UD_CONNECTION_ERROR_EVENT + + Signed-off-by: Arlin Davis + +commit 1186bfc949f4bb7278c30c2c59b7fcb6d5142638 +Author: Arlin Davis +Date: Fri Oct 2 14:49:52 2009 -0700 + + Release 2.0.23 + + Signed-off-by: Arlin Davis + +commit a5f1220cfd96983c9c89a595d80fab7ddcb1a954 +Author: Arlin Davis +Date: Fri Oct 2 14:48:15 2009 -0700 + + cma: cannot reuse the cm_id and qp for new connection, must reallocate a new one. + + When merging common code base the dapls_ib_reinit_ep mistakely + modified QP to reset then init for all providers. Will + not work for rdma_cm (cma provider) since the cm_id cannot + be reused. Add build check for _OPENIB_CMA_ to pull in correct + free and reallocate method for reinit_ep. + + Signed-off-by: Arlin Davis + +commit 7b07435495de0938e59be064fe8642cfd739f1ac +Author: Arlin Davis +Date: Fri Oct 2 13:50:12 2009 -0700 + + scm, cma: update DAPL cm protocol revision with latest address/port changes + + CM protocol changed, roll revision to 6. + The socket cm could be competing with address space if + application is using sockets above to exchange information + like dapltest, and MPI consumers. Adjust port on listen + and connect to reduce the chance of port collision with + application above. + + Signed-off-by: Arlin Davis + +commit 9cc1e76b672f7ff1231b4d113bd4dd1a016d1410 +Author: Arlin Davis +Date: Fri Oct 2 12:47:37 2009 -0700 + + ucm: modify IB address format to align better with sockaddr_in6 + + Restructure the dcm_addr union to map the IB side + closer to sockaddr6 and initialize family to + AF_INET6 to insure callee allocates enough memory + for ucm dat_ia_address type. Put qpn in flowinfo + and gid in sin6_addr. Change the test suites + to print address information based on AF_INET + or AF_INET6 instead of using specific IB address + union from the provider. + + Signed-off-by: Arlin Davis + +commit f50dbe6e82bd471845adf27829b2e07234a0a86a +Author: Sean Hefty +Date: Wed Sep 30 14:29:03 2009 -0700 + + Add definition for getpid similar to that used by the other dtest apps. + + Signed-off-by: Sean Hefty + +commit 51147412fad72c00115b595955760e80ff0be7d5 +Author: Sean Hefty +Date: Wed Sep 30 14:28:57 2009 -0700 + + WinOF provides a common implementation of gettimeofday that should + be used instead. + + Signed-off-by: Sean Hefty + +commit 732fc84cee036126282715ea157bdb619fc11ec7 +Author: Sean Hefty +Date: Wed Sep 30 14:27:50 2009 -0700 + + The completion manager was updated to provide an abstraction that + better mimicked how fd's were used. Update dapl to use this + abstraction, rather than the older completion manager api. + + This helps minimize changes between linux and windows. + + Signed-off-by: Sean Hefty + +commit fc1855b7738838d3865389405f017b87d223f743 +Author: Arlin Davis +Date: Wed Sep 30 14:26:47 2009 -0700 + + dtestcm: remove IB verb definitions + + Remove gid and qp_type references from test app. + Print address infomation in sockaddr and + ucm provider format with qpn and lid. + + Signed-off-by: Arlin Davis + +commit 36a885d4267be7b3c6c1086372d321121ae03dee +Author: Arlin Davis +Date: Wed Sep 30 10:44:14 2009 -0700 + + dtest, dtestx: remove IB verb definitions + + remove gid and qp_type checking from test suite. + Print address infomation in sockaddr and + ucm provider format with qpn and lid. + + Signed-off-by: Arlin Davis + +commit 23445bbbd3a09f7f5e666a000d5c7c3b22dd95b3 +Author: Arlin Davis +Date: Mon Sep 28 10:59:36 2009 -0700 + + scm: tighten up socket options to insure similiar behavior on Windows and Linux. + + Add IPPROTO_TCP to create socket. Specify device IP address + when binding instead of INADDR_ANY and remove setsocketopt + REUSEADDR on the listen socket to avoid any issues with + portability. Don't want duplicate port bindings. + + Signed-off-by: Arlin Davis + +commit b31b64d60abe7c6c1a83484db97176d225076b30 +Author: Arlin Davis +Date: Mon Sep 28 10:46:26 2009 -0700 + + cma: improve serialization of destroy and event processing + + WinOF testing with slightly different scheduler and verbs + showed some issues with cleanup. Add better protection around + destroy and event processing thread. + + Remove destroy flag and add refs counting to conn objects + to block destroy until all references are cleared. Add + locking aroung ref counting and passive and active + event processing. + + Signed-off-by: Arlin Davis + +commit a4adf463695ba75beaa1fe79d514346bf5fe2cb5 +Author: Arlin Davis +Date: Mon Sep 28 10:42:52 2009 -0700 + + scm: improve serialization of destroy and state changes + + WinOF testing with slightly different scheduler and verbs + showed some issues with cleanup. Add better protection around + destroy and move state change before socket send to insure + correct state in multi-thread environment targeting the same + device on send and recv. + + Change DCM_RTU_PENDING to DCM_REP_PENDING and + and add static definition to local routines for better + readability. + + Signed-off-by: Arlin Davis + +commit 29358ccc587db55fe5f5a1b14eed9e0e31f5f02c +Author: Arlin Davis +Date: Thu Sep 17 08:56:06 2009 -0700 + + common: no cleanup/release code for timer thread + + dapl_set_timer() creates a thread to process timers for dat_ep_connect + but provides no mechanism to destroy/exit during dapl library unload. + Timers are initialized in library init code and should be released + in the fini code. Add a dapl_timer_release call to the dapl_fini + function to check state of timer thread and destroy before exiting. + + Signed-off-by: Arlin Davis + +commit e287ce12f5b0108ef83186aae305f25af8cdd02c +Author: Arlin Davis +Date: Thu Sep 17 08:53:29 2009 -0700 + + scm, cma: dapli_thread doesn't always get teminated on library close. + + DAPL doesn't actually wait for the async processing thread to exit before + allowing the library to close. It will wait up to 10 seconds, which under + heavy load isn't enough time. Since the thread is created by an application + level thread, it will continue to run as long as the application runs. But + if the application closes the library, then all library data and code is + invalid, which can result in the thread running something that's not + library code and accessing freed memory. + + With this change, I was able to run mpi ping-pong, 16 ranks on a single + system (scm provider) without crashes 1300 times. + + Signed-off-by: Sean Hefty + +commit 5bffe521c6ad7a5ce10457a5d7b25814522a0cde +Author: Arlin Davis +Date: Wed Sep 9 13:10:35 2009 -0700 + + ucm: tighten up locking with CM processing, state changes + + tighten up locking on CM processing and state changes + and reduce the send completion threshold to 50 from 100 + to replenish the request message faster. + + Signed-off-by: Arlin Davis + +commit e38daa8448bc3b73c53e54ffc9ac47b9cfc2af89 +Author: Arlin Davis +Date: Wed Sep 9 09:44:03 2009 -0700 + + ucm: For UD type QP's, return CR p_data with CONN_EST event on passive side. + + Intel MPI uses the p_data provided with CONN_EST as a reference to the + UD pair and remote rank. The ucm provider was overwriting the CR p_data + with the ACCEPT p_data. Change to save CR p_data but also provide + storage for user provided ACCEPT p_data in case the REPLY is lost + and needs retransmitted. + + p_data size was provided to event processing in network order + instead of host order. + + For new QP's create new address handles and do not use + existing AH's created for the CM. Different PD's are + associated with each. + + Signed-off-by: Arlin Davis + +commit 0bc6a0954bc1a1a61e1b1cbc5c280f69ed168453 +Author: Arlin Davis +Date: Tue Sep 8 09:14:46 2009 -0700 + + ucm: cleanup extra cr/lf + + Signed-off-by: Arlin Davis + +commit 6e7df65a884b4e068135e64dcb3ec660f4c7ab14 +Author: Arlin Davis +Date: Tue Sep 8 09:11:37 2009 -0700 + + ucm: fix issues with UD QP's. + + private data size not in host order when processing + connection events. + + ud extentions event should include original ia_addr + and qpn used during connection and not the IB qpn. + + ucm QP service resource cleanup in wrong order. + + cleanup extra cr/lf device.c + + Signed-off-by: Arlin Davis + +commit e7c3090945c13f80abb929643fc975465afeeb53 +Author: Arlin Davis +Date: Thu Sep 3 10:45:56 2009 -0700 + + winof: Convert windows version of dapl and dat libaries to use private heaps. + + This allows for better support of memory registration caching by upper + level libaries (MPI) that use SecureMemoryCacheCallback. + + It also makes it easier to debug heap corruption issues. + + Signed-off-by: Sean Hefty + +commit bc3c8a34558880c8d09a03e3eb7c3f50d7762c67 +Author: Arlin Davis +Date: Wed Sep 2 14:01:51 2009 -0700 + + dtest, dtestx: modifications for UD QP testing with ucm provider. + + remote_addr is wrong for IP remote address. + + The dtestx requires the server connect back to the client + for the UD test. With the ucm provider you need to provide + the QPN and the LID which you cannot get until the dtest + client starts. So, for now, don't support UD testing + on UCM providers. + + Signed-off-by: Arlin Davis + +commit e4555143ca71ebe18d8c9f027e2e7a5282088a30 +Author: Arlin Davis +Date: Wed Sep 2 13:54:59 2009 -0700 + + scm, ucm: UD QP support was broken when porting to common openib code base. + + create remote_ah was moved out of modify_qp_state function but not + included in the RTU and ACCEPT code for UD QP's. qp type check + should be on daddr not saddr in ucm cm code. + + QP number must be converted to host order before supplying remote_ah, + and qp number to consumer. + + Modify QP state to RTR for UD QP mask setting incorrect. + + Signed-off-by: Arlin Davis + +commit 375d368494bb2f9bb44c82073abc60e01ac28615 +Author: Arlin Davis +Date: Tue Sep 1 13:02:24 2009 -0700 + + cma: cleanup warning with unused local variable, ret, in disconnect + + Signed-off-by: Arlin Davis + +commit 72d1c0c984919809ecd94b2e4ede31ec56668518 +Author: Arlin Davis +Date: Tue Sep 1 12:36:31 2009 -0700 + + cma: remove debug message after rdma_disconnect failure + + DAPL automatically calls rdma_disconnect() when a disconnect request is + received. If the user also calls disconnect, that calls rdma_disconnect() as + well, but the connection has already been disconnected by DAPL and is no longer + valid. The result is that the user's call to rdma_disconnect() will fail. Do + not display an error message if this occurs. + + Locking could be added to prevent calling rdma_disconnect() multiple times, but + since the librdmacm provides synchronization to trap this, we might as well take + advantage of it. + + Signed-off-by: Sean Hefty + +commit 290c568030da6df398a4afb932b5d4f9bd585c26 +Author: Arlin Davis +Date: Tue Sep 1 12:27:43 2009 -0700 + + scm: socket errno check needs O/S dependent wrapper + + Intel MPI checks the uDAPL error code when calling dat_psp_create() to see if + the port number that it provides is in use or not. Convert winsock error codes + to unix errno values. + + This fixes the following error reported by Intel MPI: + 'DAPL provider is not found and fallback device is not enabled' + + Signed-off-by: Sean Hefty + +commit 03b6d1b58ae03058a509c54ffe27147cc44d1851 +Author: Arlin Davis +Date: Tue Sep 1 12:13:16 2009 -0700 + + dapltest: update script files for WinOF + + Cleanup 64-bit paths now that WinOF is always installed into '\Program Files\WinOF'. + + Signed-off-by: Arlin Davis + +commit e38585be89e9fa8f139002a3fe1a82eb86438f93 +Author: Arlin Davis +Date: Tue Sep 1 12:10:21 2009 -0700 + + cma: conditional check for new rdma_cm definition. + + RDMA_CM_EVENT_TIMEWAIT_EXIT is new to OFED 1.4 + add conditional check so dapl can build and run + against older OFED 1.3 stacks + + Signed-off-by: Arlin Davis + +commit 83af586b77aa905b63de6dd6010cd60e91487a9e +Author: Arlin Davis +Date: Thu Aug 20 09:13:43 2009 -0700 + + Release 2.0.22 + + Signed-off-by: Arlin Davis + +commit 48bc0dc95093ccbfe5e01cef4877c128e2caaf77 +Author: Arlin Davis +Date: Thu Aug 20 09:12:47 2009 -0700 + + dapltest: add mdep processor yield and use with dapltest + + Be thread scheduler friendly and release the current thread thus allowing other threads to run. + + Signed off by Stan Smith stan.smith@intel.com + +commit e13f255a06b9d2a2ed4eec9a62f9fe105d0c26d7 +Author: Arlin Davis +Date: Tue Aug 18 10:15:15 2009 -0700 + + ucm: Add new provider using a DAPL based IB-UD cm mechanism for MPI implementations. + + New provider uses it's own CM protocol on top of IB-UD queue pairs. + During device open, this provider creates a UD queue pair and + returns local address information via dat_ia_query. This 24 byte + opaque address must be exchange out-of-band before connecting to a + server via dat_ep_connect. This provider is targeted for MPI + implementations that already exchange address information + during mpi_init phase. + + Future release may provide some ARP mechanism via multicast. + + dtest, dtestx, and dtestcm was modified to report the lid and qpn + information on the server side so you can provide appropriate + destination address information for the client test suite. + + dapltest will not work with this provider. + + Signed-off-by: Arlin Davis + +commit 38d224dd95896c7e60f0bc0ffa52b26ab78f489b +Author: Arlin Davis +Date: Tue Aug 4 20:54:12 2009 -0700 + + Release 2.0.21 + + Signed-off-by: Arlin Davis + +commit ed4999a26043c9c3c73c792b21d24ced1df1553c +Author: Arlin Davis +Date: Tue Aug 4 20:49:09 2009 -0700 + + scm: Fix disconnect. QP's need to move to ERROR state in + order to flush work requests and notify consumer. Moving to + RESET removed all requests but did not notify consumer. + + Signed-off-by: Arlin Davis + +commit 512f1d7a480f06a1fa491d21870e560ad111c4d0 +Author: Arlin Davis +Date: Tue Aug 4 20:48:03 2009 -0700 + + modify dtest.c to cleanup CNO wait code and consolidate into + collect_event() call. After waking up from CNO wait the + consumer must check all EVD's. The EVD's under the CNO + could be dropped if already triggered or could come in any order. + DT_RetToString changed to DT_RetToStr and DT_EventToSTr + changed to DT_EventToStr for consistency. + + Signed-off-by: Arlin Davis + +commit 024e36975d37a1556bf68145e1573f637d269bfc +Author: Arlin Davis +Date: Tue Aug 4 20:47:17 2009 -0700 + + CNO events, once triggered will not be returned during the cno wait. + Check for triggered state before going to sleep in cno_wait. Reset + triggered EVD reference after reporting. + + Signed-off-by: Arlin Davis + +commit 6d6c72a49158d10825929111d6b4df1c6d2bb589 +Author: Arlin Davis +Date: Sun Aug 2 14:21:09 2009 -0700 + + CNO support broken in both CMA and SCM providers. + + CQ thread/callback mechanism was removed by mistake. Still + need indirect DTO callbacks when CNO is attached to EVD's. + + Add CQ event channel to cma provider's thread and add + to select for rdma_cm and async channels. + + For scm provider there is not easy way to add this channel + to the select across sockets on windows. So, for portablity + reasons 2 thread is started to process the ASYNC and + CQ channels for events. + + Must disable EVD (evd_endabled=FALSE) during destroy + to prevent EVD events firing for CNOs and re-arming CQ while + CQ is being destroyed. + + Change dtest to check EVD after CNO timesout. + + Signed-off-by: Arlin Davis + +commit 6fe8bd1d8f44777211e816b72e0b2a6d22900207 +Author: Arlin Davis +Date: Thu Jul 30 08:02:30 2009 -0700 + + common osd: include winsock2.h for IPv6 definitions. + + Signed-off-by: Arlin Davis + +commit bd26383900d18962aeeff54fa59922009091ecfc +Author: Arlin Davis +Date: Wed Jul 29 08:02:15 2009 -0700 + + common osd: include w2tcpip.h for sockaddr_in6 definitions. + + Signed-off-by: Arlin Davis + +commit f25544f14554200a6714accef5f761b0269b5819 +Author: Sean Hefty +Date: Mon Jul 27 15:07:33 2009 -0700 + + DAPL introduced the concept of directly waiting on the CQ for + events by adding a compile time flag and special handling in the common + code. Rather than using the compile time flag and modifying the + common code, let the provider implement the best way to wait for + CQ events. + + This simplifies the code and allows the common openib providers to + optimize for Linux and Windows platforms independently, rather than + assuming a specific implementation for signaling events. + + Signed-off-by: Sean Hefty + +commit 1548405a377d2bd17938df69419e9bcf3364d91a +Author: Arlin Davis +Date: Thu Jul 16 12:41:22 2009 -0700 + + dapltest: Implement a malloc() threshold for the completion reaping. + + change byte vector allocation to stack in functions: + DT_handle_send_op, DT_handle_rdma_op & DT_handle_recv_op. + + When allocation size is under the threshold, use a stack local + allocation instead of malloc/free. Move redundant bzero() to + be called only in the case of using local stack allocation as + DT_Mdep_malloc() already does a bzero(). Consolidate error handling + return and free()check to a single point by using goto. + + Signed-off-by: Stan Smith + +commit f6311ca7295230bf9efbcddc639fa8e1065b1f3d +Author: Arlin Davis +Date: Thu Jul 16 12:32:09 2009 -0700 + + scm: handle connected state when freeing CM objects + + The QP could be freed before being disconnected + so the provider needs process disconnect before freeing + the CM object. The disconnect clean will finish + the destroy process during the disc callback. + + Signed-off-by: Arlin Davis + +commit 4387359106ce398b29847982883016f7fd48b372 +Author: Arlin Davis +Date: Wed Jul 8 12:49:43 2009 -0700 + + scm, dtest: changes for winof gettimeofday and FD_SETSIZE settings. + + scm changes to set FD_SETSIZE with expected value and + prevent windows override. + + dtest: remove gettimeofday implementation for windows + specific implemenation etc\user\gtod.c + + general EOL cleanup + + Signed-off-by: Arlin Davis + +commit 3542a83d8a31f5ac68adf3aa44e3ebf1265068df +Author: Arlin Davis +Date: Mon Jul 6 09:24:07 2009 -0700 + + scm: set TCP_NODELAY sockopt on the server side for sends. + + scm provider sends small messages from both server and client + sides. Set NODELAY on both sides to avoid send delays either + way. + + Signed-off-by: Arlin Davis + +commit 9d591180392856935b9c3befbab2243dd8daf628 +Author: Arlin Davis +Date: Thu Jul 2 14:16:52 2009 -0700 + + windows: remove obsolete files in dapl/udapl source tree + + SOURCES,makefile,udapl.r,udapl_exports.src,udapl_sources.c + + Signed-off-by: Arlin Davis + +commit 85c238ee0a41dd0a4a24b3d422f34674b0183161 +Author: Arlin Davis +Date: Thu Jul 2 14:11:20 2009 -0700 *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-projects@FreeBSD.ORG Sun Oct 17 00:14:41 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DC641065670; Sun, 17 Oct 2010 00:14:41 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4BD908FC08; Sun, 17 Oct 2010 00:14:41 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9H0EfvU096107; Sun, 17 Oct 2010 00:14:41 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9H0Ef6w096105; Sun, 17 Oct 2010 00:14:41 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010170014.o9H0Ef6w096105@svn.freebsd.org> From: Jeff Roberson Date: Sun, 17 Oct 2010 00:14:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r213941 - projects/ofed/head/sys/ofed/drivers/infiniband/core X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Oct 2010 00:14:41 -0000 Author: jeff Date: Sun Oct 17 00:14:41 2010 New Revision: 213941 URL: http://svn.freebsd.org/changeset/base/213941 Log: - Implement the rdma address resolution function which converts an ip address into an ethernet mac or ib gid. The resolution function accepts an optional source address to select the interface to route to. We verify that this is a valid path for the destination and issue an arp request if the dest is not yet resolved. Sponsored by: Isilon Systems, iX Systems, and Panasas. Reviewed by: kmacy Modified: projects/ofed/head/sys/ofed/drivers/infiniband/core/addr.c Modified: projects/ofed/head/sys/ofed/drivers/infiniband/core/addr.c ============================================================================== --- projects/ofed/head/sys/ofed/drivers/infiniband/core/addr.c Sun Oct 17 00:12:11 2010 (r213940) +++ projects/ofed/head/sys/ofed/drivers/infiniband/core/addr.c Sun Oct 17 00:14:41 2010 (r213941) @@ -105,11 +105,11 @@ int rdma_copy_addr(struct rdma_dev_addr const unsigned char *dst_dev_addr) { dev_addr->dev_type = dev->if_type; - memcpy(dev_addr->src_dev_addr, IF_LLADDR(dev), MAX_ADDR_LEN); + memcpy(dev_addr->src_dev_addr, IF_LLADDR(dev), dev->if_addrlen); memcpy(dev_addr->broadcast, __DECONST(char *, dev->if_broadcastaddr), - MAX_ADDR_LEN); + dev->if_addrlen); if (dst_dev_addr) - memcpy(dev_addr->dst_dev_addr, dst_dev_addr, MAX_ADDR_LEN); + memcpy(dev_addr->dst_dev_addr, dst_dev_addr, dev->if_addrlen); dev_addr->bound_dev_if = dev->if_index; return 0; } @@ -132,7 +132,7 @@ int rdma_translate_ip(struct sockaddr *a switch (addr->sa_family) { case AF_INET: - dev = ip_dev_find(&init_net, + dev = ip_dev_find(NULL, ((struct sockaddr_in *) addr)->sin_addr.s_addr); if (!dev) @@ -142,7 +142,7 @@ int rdma_translate_ip(struct sockaddr *a dev_put(dev); break; -#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) +#if defined(INET6) case AF_INET6: read_lock(&dev_base_lock); for_each_netdev(&init_net, dev) { @@ -246,7 +246,7 @@ out: return ret; } -#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) +#if defined(INET6) static int addr6_resolve(struct sockaddr_in6 *src_in, struct sockaddr_in6 *dst_in, struct rdma_dev_addr *addr) @@ -310,32 +310,119 @@ static int addr6_resolve(struct sockaddr #endif #else - -static int addr6_resolve(struct sockaddr_in6 *src_in, - struct sockaddr_in6 *dst_in, - struct rdma_dev_addr *addr) -{ - return -EADDRNOTAVAIL; -} - -static int addr4_resolve(struct sockaddr_in *src_in, - struct sockaddr_in *dst_in, - struct rdma_dev_addr *addr) -{ - /* XXX This will have to be filled in after ipoib is functional. */ - return -EADDRNOTAVAIL; -} +#include +#ifdef INET6 +#include +#endif static int addr_resolve(struct sockaddr *src_in, struct sockaddr *dst_in, struct rdma_dev_addr *addr) { - if (src_in->sa_family == AF_INET) { - return addr4_resolve((struct sockaddr_in *) src_in, - (struct sockaddr_in *) dst_in, addr); - } else - return addr6_resolve((struct sockaddr_in6 *) src_in, - (struct sockaddr_in6 *) dst_in, addr); + struct ifaddr *ifa; + struct ifnet *ifp; + struct llentry *lle; + struct rtentry *rte; + u_char edst[MAX_ADDR_LEN]; + int multi; + int bcast; + int error; + + /* + * Determine whether the address is unicast, multicast, or broadcast + * and whether the source interface is valid. + */ + multi = 0; + bcast = 0; + ifp = NULL; + switch (dst_in->sa_family) { + case AF_INET: + if (((struct sockaddr_in *)dst_in)->sin_addr.s_addr == + INADDR_BROADCAST) + bcast = 1; + if (IN_MULTICAST(( + (struct sockaddr_in *)dst_in)->sin_addr.s_addr)) + multi = 1; + if (((struct sockaddr_in *)src_in)->sin_addr.s_addr == + INADDR_ANY) + src_in = NULL; + break; +#ifdef INET6 + case AF_INET6: + if (IN6_IS_ADDR_MULTICAST( + &((struct sockaddr_in6 *)dst_in)->sin6_addr)) + multi = 1; + if (IN6_IS_ADDR_UNSPECIFIED( + &((struct sockaddr_in6 *)src_in)->sin6_addr)) + src_in = NULL; + break; +#endif + default: + return -EINVAL; + } + /* + * If we have a source address to use look it up first and verify + * that it is a local interface. + */ + if (src_in) { + ifa = ifa_ifwithdstaddr(src_in); + if (ifa == NULL) + return -ENETUNREACH; + ifp = ifa->ifa_ifp; + ifa_free(ifa); + if (bcast || multi) + goto mcast; + } + /* + * Make sure the route exists and has a valid link. + */ + rte = rtalloc1(dst_in, 1, 0); + if (rte == NULL || rte->rt_ifp == NULL || !RT_LINK_IS_UP(rte->rt_ifp)) { + if (rte) + RTFREE(rte); + return -EHOSTUNREACH; + } + /* + * If it's not multicast or broadcast and the route doesn't match the + * requested interface return unreachable. + */ + if (multi || bcast) { + RTFREE(rte); + } else if (ifp && ifp != rte->rt_ifp) { + RTFREE(rte); + return -ENETUNREACH; + } + if (ifp == NULL) + ifp = rte->rt_ifp; +mcast: + if (bcast) + return rdma_copy_addr(addr, ifp, ifp->if_broadcastaddr); + if (multi) { + struct sockaddr *llsa; + + error = ifp->if_resolvemulti(ifp, &llsa, dst_in); + if (error) + return -error; + error = rdma_copy_addr(addr, ifp, + LLADDR((struct sockaddr_dl *)llsa)); + free(llsa, M_IFMADDR); + return error; + } + /* + * Resolve the link local address. + */ + if (dst_in->sa_family == AF_INET) + error = arpresolve(ifp, rte, NULL, dst_in, edst, &lle); +#ifdef INET6 + else + error = nd6_storelladdr(ifp, NULL, dst_in, (u_char *)edst, &lle); +#endif + RTFREE(rte); + if (error == 0) + return rdma_copy_addr(addr, ifp, edst); + if (error == EWOULDBLOCK) + return -ENODATA; + return -error; } #endif From owner-svn-src-projects@FreeBSD.ORG Sun Oct 17 00:15:12 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D855106566C; Sun, 17 Oct 2010 00:15:12 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4B93F8FC0A; Sun, 17 Oct 2010 00:15:12 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9H0FC92096167; Sun, 17 Oct 2010 00:15:12 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9H0FCQu096164; Sun, 17 Oct 2010 00:15:12 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010170015.o9H0FCQu096164@svn.freebsd.org> From: Jeff Roberson Date: Sun, 17 Oct 2010 00:15:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r213942 - projects/ofed/head/sys/ofed/drivers/infiniband/ulp/ipoib X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Oct 2010 00:15:12 -0000 Author: jeff Date: Sun Oct 17 00:15:12 2010 New Revision: 213942 URL: http://svn.freebsd.org/changeset/base/213942 Log: - Enable ip/tcp/udp checksum offload. - Bypass arpresolve() for multicast addresses. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_ib.c projects/ofed/head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c Modified: projects/ofed/head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_ib.c ============================================================================== --- projects/ofed/head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_ib.c Sun Oct 17 00:14:41 2010 (r213941) +++ projects/ofed/head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_ib.c Sun Oct 17 00:15:12 2010 (r213942) @@ -181,7 +181,8 @@ static int ipoib_ib_post_receives(struct return 0; } -static void ipoib_ib_handle_rx_wc(struct ifnet *dev, struct ib_wc *wc) +static void +ipoib_ib_handle_rx_wc(struct ifnet *dev, struct ib_wc *wc) { struct ipoib_dev_priv *priv = dev->if_softc; unsigned int wr_id = wc->wr_id & ~IPOIB_OP_RECV; @@ -242,10 +243,10 @@ static void ipoib_ib_handle_rx_wc(struct m_adj(mb, sizeof(struct ib_grh) - INFINIBAND_ALEN); eh = mtod(mb, struct ipoib_header *); bzero(eh->hwaddr, 4); /* Zero the queue pair, only dgid is in grh */ -/* XXX + if (test_bit(IPOIB_FLAG_CSUM, &priv->flags) && likely(wc->csum_ok)) - mb->ip_summed = CHECKSUM_UNNECESSARY; -*/ + mb->m_pkthdr.csum_flags = CSUM_IP_CHECKED | CSUM_IP_VALID; + dev->if_input(dev, mb); repost: @@ -498,12 +499,10 @@ ipoib_send(struct ifnet *dev, struct mbu return; } -/* XXX NO checksum offload yet. - if (mb->ip_summed == CHECKSUM_PARTIAL) + if (mb->m_pkthdr.csum_flags & (CSUM_IP|CSUM_TCP|CSUM_UDP)) priv->tx_wr.send_flags |= IB_SEND_IP_CSUM; else priv->tx_wr.send_flags &= ~IB_SEND_IP_CSUM; -*/ if (++priv->tx_outstanding == ipoib_sendq_size) { ipoib_dbg(priv, "TX ring full, stopping kernel net queue\n"); Modified: projects/ofed/head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c ============================================================================== --- projects/ofed/head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c Sun Oct 17 00:14:41 2010 (r213941) +++ projects/ofed/head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c Sun Oct 17 00:15:12 2010 (r213942) @@ -904,14 +904,18 @@ ipoib_set_dev_features(struct ipoib_dev_ kfree(device_attr); -#if 0 /* XXX */ + priv->dev->if_hwassist = 0; + priv->dev->if_capabilities = 0; + if (priv->hca_caps & IB_DEVICE_UD_IP_CSUM) { set_bit(IPOIB_FLAG_CSUM, &priv->flags); - priv->dev->features |= NETIF_F_SG | NETIF_F_IP_CSUM; + priv->dev->if_hwassist = CSUM_IP | CSUM_TCP | CSUM_UDP; + priv->dev->if_capabilities = IFCAP_HWCSUM; } +#if 0 if (priv->dev->features & NETIF_F_SG && priv->hca_caps & IB_DEVICE_UD_TSO) - priv->dev->features |= NETIF_F_TSO; + priv->dev->if_capabilities |= IFCAP_TSO4 | CSUM_TSO; #endif return 0; @@ -1160,6 +1164,8 @@ ipoib_output(struct ifnet *ifp, struct m case AF_INET: if (lle != NULL && (lle->la_flags & LLE_VALID)) memcpy(edst, &lle->ll_addr.mac8, sizeof(edst)); + else if (m->m_flags & M_MCAST) + ip_ib_mc_map(((struct sockaddr_in *)dst)->sin_addr.s_addr, ifp->if_broadcastaddr, edst); else error = arpresolve(ifp, rt0, m, dst, edst, &lle); if (error) @@ -1196,6 +1202,8 @@ ipoib_output(struct ifnet *ifp, struct m case AF_INET6: if (lle != NULL && (lle->la_flags & LLE_VALID)) memcpy(edst, &lle->ll_addr.mac8, sizeof(edst)); + else if (m->m_flags & M_MCAST) + ipv6_ib_mc_map(&((struct sockaddr_in6 *)dst)->sin6_addr, ifp->if_broadcastaddr, edst); else error = nd6_storelladdr(ifp, m, dst, (u_char *)edst, &lle); if (error) From owner-svn-src-projects@FreeBSD.ORG Sun Oct 17 00:18:27 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F944106566B; Sun, 17 Oct 2010 00:18:27 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id F23918FC15; Sun, 17 Oct 2010 00:18:26 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9H0IQe1096312; Sun, 17 Oct 2010 00:18:26 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9H0IQxp096311; Sun, 17 Oct 2010 00:18:26 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010170018.o9H0IQxp096311@svn.freebsd.org> From: Jeff Roberson Date: Sun, 17 Oct 2010 00:18:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r213943 - in projects/ofed/head/contrib/ofed: dapl libibcm librdmacm X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Oct 2010 00:18:27 -0000 Author: jeff Date: Sun Oct 17 00:18:26 2010 New Revision: 213943 URL: http://svn.freebsd.org/changeset/base/213943 Log: - Merge in dapl, rdmacm, and ibcm from base. Sponsored by: Isilon Systems, iX Systems, and Panasas. Added: projects/ofed/head/contrib/ofed/dapl/ - copied from r213942, projects/ofed/base/contrib/ofed/dapl/ projects/ofed/head/contrib/ofed/libibcm/ - copied from r213942, projects/ofed/base/contrib/ofed/libibcm/ projects/ofed/head/contrib/ofed/librdmacm/ - copied from r213942, projects/ofed/base/contrib/ofed/librdmacm/ Modified: Directory Properties: projects/ofed/head/contrib/ofed/ (props changed) From owner-svn-src-projects@FreeBSD.ORG Sun Oct 17 19:22:19 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE4B7106566C; Sun, 17 Oct 2010 19:22:19 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A29E78FC1E; Sun, 17 Oct 2010 19:22:19 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9HJMJ0E043233; Sun, 17 Oct 2010 19:22:19 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9HJMJwM043232; Sun, 17 Oct 2010 19:22:19 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010171922.o9HJMJwM043232@svn.freebsd.org> From: Dimitry Andric Date: Sun, 17 Oct 2010 19:22:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r213992 - projects/binutils-2.17 X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Oct 2010 19:22:19 -0000 Author: dim Date: Sun Oct 17 19:22:19 2010 New Revision: 213992 URL: http://svn.freebsd.org/changeset/base/213992 Log: Create projects/binutils-2.17, aimed at importing the last GPLv2 version of binutils into the main tree. Added: - copied from r213991, head/ Directory Properties: projects/binutils-2.17/ (props changed) From owner-svn-src-projects@FreeBSD.ORG Sun Oct 17 22:59:18 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBCFF106566B; Sun, 17 Oct 2010 22:59:18 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D72088FC0C; Sun, 17 Oct 2010 22:59:18 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9HMxIUZ049500; Sun, 17 Oct 2010 22:59:18 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9HMxIwu049485; Sun, 17 Oct 2010 22:59:18 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010172259.o9HMxIwu049485@svn.freebsd.org> From: Jeff Roberson Date: Sun, 17 Oct 2010 22:59:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r213999 - in projects/ofed/head/contrib/ofed: include include/infiniband include/rdma libibcm/include/infiniband libibcm/src libibverbs/include/infiniband librdmacm/src usr.lib usr.lib/... X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Oct 2010 22:59:19 -0000 Author: jeff Date: Sun Oct 17 22:59:18 2010 New Revision: 213999 URL: http://svn.freebsd.org/changeset/base/213999 Log: - bmake the builds for ibcm and rdmacm. - Do some minor porting required for ENODATA. - Add an infiniband/types.h and infiniband/byteorder.h to be used in place of linux/types.h and linux/byteorder.h for userland code. Anyone porting rdma/verbs apps over from linux will have to adjust to these header locations unless we want to add a /usr/include/linux and /usr/include/asm for compatibility. Note this is all ABI compatible. Sponsored by: Isilon Systems, iX Systems, and Panasas. Added: projects/ofed/head/contrib/ofed/include/infiniband/byteorder.h projects/ofed/head/contrib/ofed/include/infiniband/types.h projects/ofed/head/contrib/ofed/include/rdma/ projects/ofed/head/contrib/ofed/include/rdma/Makefile projects/ofed/head/contrib/ofed/usr.lib/libibcm/ projects/ofed/head/contrib/ofed/usr.lib/libibcm/Makefile projects/ofed/head/contrib/ofed/usr.lib/librdmacm/ projects/ofed/head/contrib/ofed/usr.lib/librdmacm/Makefile Modified: projects/ofed/head/contrib/ofed/include/Makefile projects/ofed/head/contrib/ofed/include/infiniband/Makefile projects/ofed/head/contrib/ofed/libibcm/include/infiniband/cm.h projects/ofed/head/contrib/ofed/libibcm/include/infiniband/cm_abi.h projects/ofed/head/contrib/ofed/libibcm/src/cm.c projects/ofed/head/contrib/ofed/libibverbs/include/infiniband/kern-abi.h projects/ofed/head/contrib/ofed/libibverbs/include/infiniband/sa-kern-abi.h projects/ofed/head/contrib/ofed/librdmacm/src/cma.c projects/ofed/head/contrib/ofed/usr.lib/Makefile Modified: projects/ofed/head/contrib/ofed/include/Makefile ============================================================================== --- projects/ofed/head/contrib/ofed/include/Makefile Sun Oct 17 22:10:33 2010 (r213998) +++ projects/ofed/head/contrib/ofed/include/Makefile Sun Oct 17 22:59:18 2010 (r213999) @@ -1,5 +1,5 @@ .include -SUBDIR = infiniband +SUBDIR = infiniband rdma .include Modified: projects/ofed/head/contrib/ofed/include/infiniband/Makefile ============================================================================== --- projects/ofed/head/contrib/ofed/include/infiniband/Makefile Sun Oct 17 22:10:33 2010 (r213998) +++ projects/ofed/head/contrib/ofed/include/infiniband/Makefile Sun Oct 17 22:59:18 2010 (r213999) @@ -1,6 +1,9 @@ .include INCS= +IBINCS= types.h byteorder.h +IBINCSDIR= ${INCLUDEDIR}/infiniband + IBVERBS= ../../libibverbs/include/infiniband VERBINCS= ${IBVERBS}/arch.h ${IBVERBS}/driver.h ${IBVERBS}/kern-abi.h VERBINCS+= ${IBVERBS}/marshall.h ${IBVERBS}/opcode.h @@ -94,7 +97,11 @@ VENDORINCS+= ${VENDOR}/osm_vendor_test.h VENDORINCS+= ${VENDOR}/osm_vendor_umadt.h VENDORINCSDIR= ${INCLUDEDIR}/infiniband/vendor +IBCM= ../../libibcm/include/infiniband +IBCMINCS= ${IBCM}/cm.h ${IBCM}/cm_abi.h +IBCMINCSDIR= ${INCLUDEDIR}/infiniband + INCSGROUPS= INCS VERBINCS COMMONINCS MADINCS UMADINCS COMPLIBINCS IBAINCS -INCSGROUPS+= OPENSMINCS VENDORINCS +INCSGROUPS+= OPENSMINCS VENDORINCS IBCMINCS .include Added: projects/ofed/head/contrib/ofed/include/infiniband/byteorder.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/ofed/head/contrib/ofed/include/infiniband/byteorder.h Sun Oct 17 22:59:18 2010 (r213999) @@ -0,0 +1,84 @@ +/*- + * Copyright (c) 2010 Isilon Systems, Inc. + * Copyright (c) 2010 iX Systems, Inc. + * Copyright (c) 2010 Panasas, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice unmodified, this list of conditions, and the following + * disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef _INFINIBAND_BYTEORDER_H_ +#define _INFINIBAND_BYTEORDER_H_ + +#include +#include + +#if BYTE_ORDER == LITTLE_ENDIAN +#define __LITTLE_ENDIAN +#else +#define __BIG_ENDIAN +#endif + +#define cpu_to_le64 htole64 +#define le64_to_cpu le64toh +#define cpu_to_le32 htole32 +#define le32_to_cpu le32toh +#define cpu_to_le16 htole16 +#define le16_to_cpu le16toh +#define cpu_to_be64 htobe64 +#define be64_to_cpu be64toh +#define cpu_to_be32 htobe32 +#define be32_to_cpu be32toh +#define cpu_to_be16 htobe16 +#define be16_to_cpu be16toh +#define __be16_to_cpu be16toh + +#define cpu_to_le64p(x) htole64(*((uint64_t *)x)) +#define le64_to_cpup(x) le64toh(*((uint64_t *)x)) +#define cpu_to_le32p(x) htole32(*((uint32_t *)x)) +#define le32_to_cpup(x) le32toh(*((uint32_t *)x)) +#define cpu_to_le16p(x) htole16(*((uint16_t *)x)) +#define le16_to_cpup(x) le16toh(*((uint16_t *)x)) +#define cpu_to_be64p(x) htobe64(*((uint64_t *)x)) +#define be64_to_cpup(x) be64toh(*((uint64_t *)x)) +#define cpu_to_be32p(x) htobe32(*((uint32_t *)x)) +#define be32_to_cpup(x) be32toh(*((uint32_t *)x)) +#define cpu_to_be16p(x) htobe16(*((uint16_t *)x)) +#define be16_to_cpup(x) be16toh(*((uint16_t *)x)) + +#define cpu_to_le64s(x) do { *((uint64_t *)x) = cpu_to_le64p((x)) } while (0) +#define le64_to_cpus(x) do { *((uint64_t *)x) = le64_to_cpup((x)) } while (0) +#define cpu_to_le32s(x) do { *((uint32_t *)x) = cpu_to_le32p((x)) } while (0) +#define le32_to_cpus(x) do { *((uint32_t *)x) = le32_to_cpup((x)) } while (0) +#define cpu_to_le16s(x) do { *((uint16_t *)x) = cpu_to_le16p((x)) } while (0) +#define le16_to_cpus(x) do { *((uint16_t *)x) = le16_to_cpup((x)) } while (0) +#define cpu_to_be64s(x) do { *((uint64_t *)x) = cpu_to_be64p((x)) } while (0) +#define be64_to_cpus(x) do { *((uint64_t *)x) = be64_to_cpup((x)) } while (0) +#define cpu_to_be32s(x) do { *((uint32_t *)x) = cpu_to_be32p((x)) } while (0) +#define be32_to_cpus(x) do { *((uint32_t *)x) = be32_to_cpup((x)) } while (0) +#define cpu_to_be16s(x) do { *((uint16_t *)x) = cpu_to_be16p((x)) } while (0) +#define be16_to_cpus(x) do { *((uint16_t *)x) = be16_to_cpup((x)) } while (0) + +#define swab16 bswap16 +#define swab32 bswap32 +#define swab64 bswap64 + +#endif /* _INFINIBAND_BYTEORDER_H_ */ Added: projects/ofed/head/contrib/ofed/include/infiniband/types.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/ofed/head/contrib/ofed/include/infiniband/types.h Sun Oct 17 22:59:18 2010 (r213999) @@ -0,0 +1,63 @@ +/*- + * Copyright (c) 2010 Isilon Systems, Inc. + * Copyright (c) 2010 iX Systems, Inc. + * Copyright (c) 2010 Panasas, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice unmodified, this list of conditions, and the following + * disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef _INFINIBAND_TYPES_H_ +#define _INFINIBAND_TYPES_H_ + +#include +#include + +typedef int8_t s8; +typedef uint8_t u8; +typedef int8_t __s8; +typedef uint8_t __u8; + +typedef int16_t s16; +typedef uint16_t u16; +typedef int16_t __s16; +typedef uint16_t __u16; + +typedef int32_t s32; +typedef uint32_t u32; +typedef int32_t __s32; +typedef uint32_t __u32; + +typedef int64_t s64; +typedef uint64_t u64; +typedef int64_t __s64; +typedef uint64_t __u64; + +typedef uint16_t __le16; +typedef uint16_t __be16; +typedef uint32_t __le32; +typedef uint32_t __be32; +typedef uint64_t __le64; +typedef uint64_t __be64; + +typedef unsigned int uint; + +#endif /* _INFINIBAND_TYPES_H_ */ Added: projects/ofed/head/contrib/ofed/include/rdma/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/ofed/head/contrib/ofed/include/rdma/Makefile Sun Oct 17 22:59:18 2010 (r213999) @@ -0,0 +1,10 @@ +.include + +INCS= +RDMACM= ../../librdmacm/include/rdma +RDMACMINCS= ${RDMACM}/rdma_cma.h ${RDMACM}/rdma_cma_abi.h +RDMACMINCSDIR= ${INCLUDEDIR}/rdma + +INCSGROUPS= RDMACMINCS + +.include Modified: projects/ofed/head/contrib/ofed/libibcm/include/infiniband/cm.h ============================================================================== --- projects/ofed/head/contrib/ofed/libibcm/include/infiniband/cm.h Sun Oct 17 22:10:33 2010 (r213998) +++ projects/ofed/head/contrib/ofed/libibcm/include/infiniband/cm.h Sun Oct 17 22:59:18 2010 (r213999) @@ -38,7 +38,7 @@ #include #include -#include +#include #ifdef __cplusplus extern "C" { Modified: projects/ofed/head/contrib/ofed/libibcm/include/infiniband/cm_abi.h ============================================================================== --- projects/ofed/head/contrib/ofed/libibcm/include/infiniband/cm_abi.h Sun Oct 17 22:10:33 2010 (r213998) +++ projects/ofed/head/contrib/ofed/libibcm/include/infiniband/cm_abi.h Sun Oct 17 22:59:18 2010 (r213999) @@ -36,7 +36,7 @@ #ifndef CM_ABI_H #define CM_ABI_H -#include +#include #include #include Modified: projects/ofed/head/contrib/ofed/libibcm/src/cm.c ============================================================================== --- projects/ofed/head/contrib/ofed/libibcm/src/cm.c Sun Oct 17 22:10:33 2010 (r213998) +++ projects/ofed/head/contrib/ofed/libibcm/src/cm.c Sun Oct 17 22:59:18 2010 (r213999) @@ -300,7 +300,7 @@ int ib_cm_destroy_id(struct ib_cm_id *cm result = write(cm_id->device->fd, msg, size); if (result != size) - return (result >= 0) ? ERR(ENODATA) : -1; + return (result >= 0) ? ERR(ECONNREFUSED) : -1; VALGRIND_MAKE_MEM_DEFINED(resp, sizeof *resp); @@ -331,7 +331,7 @@ int ib_cm_attr_id(struct ib_cm_id *cm_id result = write(cm_id->device->fd, msg, size); if (result != size) - return (result >= 0) ? ERR(ENODATA) : -1; + return (result >= 0) ? ERR(ECONNREFUSED) : -1; VALGRIND_MAKE_MEM_DEFINED(resp, sizeof *resp); @@ -361,7 +361,7 @@ int ib_cm_init_qp_attr(struct ib_cm_id * result = write(cm_id->device->fd, msg, size); if (result != size) - return (result >= 0) ? ERR(ENODATA) : result; + return (result >= 0) ? ERR(ECONNREFUSED) : result; VALGRIND_MAKE_MEM_DEFINED(resp, sizeof *resp); @@ -387,7 +387,7 @@ int ib_cm_listen(struct ib_cm_id *cm_id, result = write(cm_id->device->fd, msg, size); if (result != size) - return (result >= 0) ? ERR(ENODATA) : -1; + return (result >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -446,7 +446,7 @@ int ib_cm_send_req(struct ib_cm_id *cm_i result = write(cm_id->device->fd, msg, size); if (result != size) - return (result >= 0) ? ERR(ENODATA) : -1; + return (result >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -481,7 +481,7 @@ int ib_cm_send_rep(struct ib_cm_id *cm_i result = write(cm_id->device->fd, msg, size); if (result != size) - return (result >= 0) ? ERR(ENODATA) : -1; + return (result >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -506,7 +506,7 @@ static inline int cm_send_private_data(s result = write(cm_id->device->fd, msg, size); if (result != size) - return (result >= 0) ? ERR(ENODATA) : -1; + return (result >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -547,7 +547,7 @@ static int cm_establish(struct ib_cm_id result = write(cm_id->device->fd, msg, size); if (result != size) - return (result >= 0) ? ERR(ENODATA) : -1; + return (result >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -572,7 +572,7 @@ int ib_cm_notify(struct ib_cm_id *cm_id, result = write(cm_id->device->fd, msg, size); if (result != size) - return (result >= 0) ? ERR(ENODATA) : -1; + return (result >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -606,7 +606,7 @@ static inline int cm_send_status(struct result = write(cm_id->device->fd, msg, size); if (result != size) - return (result >= 0) ? ERR(ENODATA) : -1; + return (result >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -656,7 +656,7 @@ int ib_cm_send_mra(struct ib_cm_id *cm_i result = write(cm_id->device->fd, msg, size); if (result != size) - return (result >= 0) ? ERR(ENODATA) : result; + return (result >= 0) ? ERR(ECONNREFUSED) : result; return 0; } @@ -691,7 +691,7 @@ int ib_cm_send_lap(struct ib_cm_id *cm_i result = write(cm_id->device->fd, msg, size); if (result != size) - return (result >= 0) ? ERR(ENODATA) : -1; + return (result >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -731,7 +731,7 @@ int ib_cm_send_sidr_req(struct ib_cm_id result = write(cm_id->device->fd, msg, size); if (result != size) - return (result >= 0) ? ERR(ENODATA) : result; + return (result >= 0) ? ERR(ECONNREFUSED) : result; return 0; } @@ -765,7 +765,7 @@ int ib_cm_send_sidr_rep(struct ib_cm_id result = write(cm_id->device->fd, msg, size); if (result != size) - return (result >= 0) ? ERR(ENODATA) : -1; + return (result >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -875,7 +875,7 @@ int ib_cm_get_event(struct ib_cm_device result = write(device->fd, msg, size); if (result != size) { - result = (result >= 0) ? ERR(ENODATA) : -1; + result = (result >= 0) ? ERR(ECONNREFUSED) : -1; goto done; } Modified: projects/ofed/head/contrib/ofed/libibverbs/include/infiniband/kern-abi.h ============================================================================== --- projects/ofed/head/contrib/ofed/libibverbs/include/infiniband/kern-abi.h Sun Oct 17 22:10:33 2010 (r213998) +++ projects/ofed/head/contrib/ofed/libibverbs/include/infiniband/kern-abi.h Sun Oct 17 22:59:18 2010 (r213999) @@ -35,7 +35,7 @@ #ifndef KERN_ABI_H #define KERN_ABI_H -#include +#include /* * This file must be kept in sync with the kernel's version of Modified: projects/ofed/head/contrib/ofed/libibverbs/include/infiniband/sa-kern-abi.h ============================================================================== --- projects/ofed/head/contrib/ofed/libibverbs/include/infiniband/sa-kern-abi.h Sun Oct 17 22:10:33 2010 (r213998) +++ projects/ofed/head/contrib/ofed/libibverbs/include/infiniband/sa-kern-abi.h Sun Oct 17 22:59:18 2010 (r213999) @@ -33,7 +33,7 @@ #ifndef INFINIBAND_SA_KERN_ABI_H #define INFINIBAND_SA_KERN_ABI_H -#include +#include /* * Obsolete, deprecated names. Will be removed in libibverbs 1.1. Modified: projects/ofed/head/contrib/ofed/librdmacm/src/cma.c ============================================================================== --- projects/ofed/head/contrib/ofed/librdmacm/src/cma.c Sun Oct 17 22:10:33 2010 (r213998) +++ projects/ofed/head/contrib/ofed/librdmacm/src/cma.c Sun Oct 17 22:59:18 2010 (r213999) @@ -432,7 +432,7 @@ static int ucma_destroy_kern_id(int fd, ret = write(fd, msg, size); if (ret != size) - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; VALGRIND_MAKE_MEM_DEFINED(resp, sizeof *resp); @@ -487,7 +487,7 @@ static int ucma_query_route(struct rdma_ ret = write(id->channel->fd, msg, size); if (ret != size) - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; VALGRIND_MAKE_MEM_DEFINED(resp, sizeof *resp); @@ -541,7 +541,7 @@ int rdma_bind_addr(struct rdma_cm_id *id ret = write(id->channel->fd, msg, size); if (ret != size) - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; return ucma_query_route(id); } @@ -568,7 +568,7 @@ int rdma_resolve_addr(struct rdma_cm_id ret = write(id->channel->fd, msg, size); if (ret != size) - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; memcpy(&id->route.addr.dst_addr, dst_addr, daddrlen); return 0; @@ -588,7 +588,7 @@ int rdma_resolve_route(struct rdma_cm_id ret = write(id->channel->fd, msg, size); if (ret != size) - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -614,7 +614,7 @@ static int rdma_init_qp_attr(struct rdma ret = write(id->channel->fd, msg, size); if (ret != size) - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; VALGRIND_MAKE_MEM_DEFINED(resp, sizeof *resp); @@ -889,7 +889,7 @@ int rdma_connect(struct rdma_cm_id *id, ret = write(id->channel->fd, msg, size); if (ret != size) - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -908,7 +908,7 @@ int rdma_listen(struct rdma_cm_id *id, i ret = write(id->channel->fd, msg, size); if (ret != size) - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; return ucma_query_route(id); } @@ -946,7 +946,7 @@ int rdma_accept(struct rdma_cm_id *id, s ret = write(id->channel->fd, msg, size); if (ret != size) { ucma_modify_qp_err(id); - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; } return 0; @@ -972,7 +972,7 @@ int rdma_reject(struct rdma_cm_id *id, c ret = write(id->channel->fd, msg, size); if (ret != size) - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -991,7 +991,7 @@ int rdma_notify(struct rdma_cm_id *id, e cmd->event = event; ret = write(id->channel->fd, msg, size); if (ret != size) - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -1022,7 +1022,7 @@ int rdma_disconnect(struct rdma_cm_id *i ret = write(id->channel->fd, msg, size); if (ret != size) - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -1067,7 +1067,7 @@ int rdma_join_multicast(struct rdma_cm_i ret = write(id->channel->fd, msg, size); if (ret != size) { - ret = (ret >= 0) ? ERR(ENODATA) : -1; + ret = (ret >= 0) ? ERR(ECONNREFUSED) : -1; goto err2; } @@ -1120,7 +1120,7 @@ int rdma_leave_multicast(struct rdma_cm_ ret = write(id->channel->fd, msg, size); if (ret != size) { - ret = (ret >= 0) ? ERR(ENODATA) : -1; + ret = (ret >= 0) ? ERR(ECONNREFUSED) : -1; goto free; } @@ -1221,7 +1221,7 @@ static int ucma_process_conn_resp(struct ret = write(id_priv->id.channel->fd, msg, size); if (ret != size) { - ret = (ret >= 0) ? ERR(ENODATA) : -1; + ret = (ret >= 0) ? ERR(ECONNREFUSED) : -1; goto err; } @@ -1318,7 +1318,7 @@ retry: ret = write(channel->fd, msg, size); if (ret != size) { free(evt); - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; } VALGRIND_MAKE_MEM_DEFINED(resp, sizeof *resp); @@ -1477,7 +1477,7 @@ int rdma_set_option(struct rdma_cm_id *i ret = write(id->channel->fd, msg, size); if (ret != size) - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; return 0; } @@ -1497,7 +1497,7 @@ int rdma_migrate_id(struct rdma_cm_id *i ret = write(channel->fd, msg, size); if (ret != size) - return (ret >= 0) ? ERR(ENODATA) : -1; + return (ret >= 0) ? ERR(ECONNREFUSED) : -1; VALGRIND_MAKE_MEM_DEFINED(resp, sizeof *resp); Modified: projects/ofed/head/contrib/ofed/usr.lib/Makefile ============================================================================== --- projects/ofed/head/contrib/ofed/usr.lib/Makefile Sun Oct 17 22:10:33 2010 (r213998) +++ projects/ofed/head/contrib/ofed/usr.lib/Makefile Sun Oct 17 22:59:18 2010 (r213999) @@ -1,6 +1,6 @@ .include SUBDIR = libibcommon libibmad libibumad libibverbs libmlx4 libmthca -SUBDIR += libopensm libosmcomp libosmvendor +SUBDIR += libopensm libosmcomp libosmvendor libibcm librdmacm .include Added: projects/ofed/head/contrib/ofed/usr.lib/libibcm/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/ofed/head/contrib/ofed/usr.lib/libibcm/Makefile Sun Oct 17 22:59:18 2010 (r213999) @@ -0,0 +1,21 @@ +# $FreeBSD$ + +SHLIBDIR?= /usr/lib + +.include + +IBCMDIR= ../../libibcm +IBSRCDIR= ${IBCMDIR}/src + +.PATH: ${IBSRCDIR} + +LIB= ibcm +SHLIB_MAJOR= 1 +NO_PROFILE= + +SRCS= cm.c + +MAN= +VERSION_MAP= ${IBSRCDIR}/libibcm.map + +.include Added: projects/ofed/head/contrib/ofed/usr.lib/librdmacm/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/ofed/head/contrib/ofed/usr.lib/librdmacm/Makefile Sun Oct 17 22:59:18 2010 (r213999) @@ -0,0 +1,34 @@ +# $FreeBSD$ + +SHLIBDIR?= /usr/lib + +.include + +RDMACMDIR= ../../librdmacm +RDMASRCDIR= ${RDMACMDIR}/src +RDMAMANDIR= ${RDMACMDIR}/man + +.PATH: ${RDMASRCDIR} ${RDMAMANDIR} + +LIB= rdmacm +SHLIB_MAJOR= 1 +NO_PROFILE= + +SRCS= cma.c + +MAN= rdma_get_devices.3 mckey.1 rdma_get_dst_port.3 rdma_accept.3 +MAN+= rdma_get_local_addr.3 rdma_ack_cm_event.3 rdma_get_peer_addr.3 +MAN+= rdma_bind_addr.3 rdma_get_src_port.3 rdma_cm.7 rdma_join_multicast.3 +MAN+= rdma_connect.3 rdma_leave_multicast.3 rdma_create_event_channel.3 +MAN+= rdma_listen.3 rdma_create_id.3 rdma_migrate_id.3 rdma_create_qp.3 +MAN+= rdma_notify.3 rdma_destroy_event_channel.3 rdma_reject.3 +MAN+= rdma_destroy_id.3 rdma_resolve_addr.3 rdma_destroy_qp.3 +MAN+= rdma_resolve_route.3 rdma_disconnect.3 rdma_set_option.3 +MAN+= rdma_event_str.3 rping.1 rdma_free_devices.3 ucmatose.1 +MAN+= rdma_get_cm_event.3 udaddy.1 + +CFLAGS+= -I../../../../sys/ofed/include + +VERSION_MAP= ${RDMASRCDIR}/librdmacm.map + +.include From owner-svn-src-projects@FreeBSD.ORG Mon Oct 18 20:57:43 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2E78106564A; Mon, 18 Oct 2010 20:57:43 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BD9418FC12; Mon, 18 Oct 2010 20:57:43 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IKvhOl085253; Mon, 18 Oct 2010 20:57:43 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9IKvhhi085246; Mon, 18 Oct 2010 20:57:43 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010182057.o9IKvhhi085246@svn.freebsd.org> From: Dimitry Andric Date: Mon, 18 Oct 2010 20:57:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214030 - in projects/binutils-2.17/contrib/binutils: . bfd bfd/po binutils config etc gas gas/config gas/doc gprof/po include include/regs ld/po libiberty X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 20:57:43 -0000 Author: dim Date: Mon Oct 18 20:57:43 2010 New Revision: 214030 URL: http://svn.freebsd.org/changeset/base/214030 Log: Merge ^vendor/binutils/dist@213996 into contrib/binutils. Skip adding any files we do not need, delete some files that were removed upstream, but keep our own customizations and backports from later binutils. Deleted: projects/binutils-2.17/contrib/binutils/bfd/elflink.h projects/binutils-2.17/contrib/binutils/bfd/po/POTFILES.in projects/binutils-2.17/contrib/binutils/config/mh-openedition projects/binutils-2.17/contrib/binutils/config/mh-sysv projects/binutils-2.17/contrib/binutils/config/mt-armpic projects/binutils-2.17/contrib/binutils/config/mt-elfalphapic projects/binutils-2.17/contrib/binutils/config/mt-ia64pic projects/binutils-2.17/contrib/binutils/config/mt-papic projects/binutils-2.17/contrib/binutils/config/mt-ppcpic projects/binutils-2.17/contrib/binutils/config/mt-s390pic projects/binutils-2.17/contrib/binutils/config/mt-sparcpic projects/binutils-2.17/contrib/binutils/config/mt-x86pic projects/binutils-2.17/contrib/binutils/gas/config/obj-generic.c projects/binutils-2.17/contrib/binutils/gas/config/obj-generic.h projects/binutils-2.17/contrib/binutils/gas/doc/gasp.texi projects/binutils-2.17/contrib/binutils/gas/gasp.c projects/binutils-2.17/contrib/binutils/include/callback.h projects/binutils-2.17/contrib/binutils/include/regs/ projects/binutils-2.17/contrib/binutils/include/remote-sim.h projects/binutils-2.17/contrib/binutils/libiberty/configure.in projects/binutils-2.17/contrib/binutils/libiberty/pexecute.c projects/binutils-2.17/contrib/binutils/md5.sum Modified: projects/binutils-2.17/contrib/binutils/binutils/defparse.c projects/binutils-2.17/contrib/binutils/binutils/defparse.h projects/binutils-2.17/contrib/binutils/binutils/defparse.y projects/binutils-2.17/contrib/binutils/binutils/rclex.c projects/binutils-2.17/contrib/binutils/binutils/rcparse.y projects/binutils-2.17/contrib/binutils/binutils/sysinfo.y projects/binutils-2.17/contrib/binutils/binutils/syslex.l projects/binutils-2.17/contrib/binutils/config/ChangeLog projects/binutils-2.17/contrib/binutils/config/acinclude.m4 projects/binutils-2.17/contrib/binutils/config/mh-cxux projects/binutils-2.17/contrib/binutils/config/mh-necv4 projects/binutils-2.17/contrib/binutils/config/mh-sco projects/binutils-2.17/contrib/binutils/config/mh-solaris projects/binutils-2.17/contrib/binutils/config/mh-sysv4 projects/binutils-2.17/contrib/binutils/config/mh-sysv5 projects/binutils-2.17/contrib/binutils/config/mt-v810 projects/binutils-2.17/contrib/binutils/etc/ChangeLog projects/binutils-2.17/contrib/binutils/etc/Makefile.in projects/binutils-2.17/contrib/binutils/gas/itbl-parse.y projects/binutils-2.17/contrib/binutils/gprof/po/Make-in projects/binutils-2.17/contrib/binutils/gprof/po/gprof.pot projects/binutils-2.17/contrib/binutils/ld/po/Make-in projects/binutils-2.17/contrib/binutils/ld/po/POTFILES.in projects/binutils-2.17/contrib/binutils/ld/po/ld.pot Directory Properties: projects/binutils-2.17/contrib/binutils/ (props changed) Modified: projects/binutils-2.17/contrib/binutils/binutils/defparse.c ============================================================================== --- projects/binutils-2.17/contrib/binutils/binutils/defparse.c Mon Oct 18 19:45:24 2010 (r214029) +++ projects/binutils-2.17/contrib/binutils/binutils/defparse.c Mon Oct 18 20:57:43 2010 (r214030) @@ -22,41 +22,43 @@ # define SHARED 273 # define NONSHARED 274 # define NONAME 275 -# define SINGLE 276 -# define MULTIPLE 277 -# define INITINSTANCE 278 -# define INITGLOBAL 279 -# define TERMINSTANCE 280 -# define TERMGLOBAL 281 -# define ID 282 -# define NUMBER 283 +# define PRIVATE 276 +# define SINGLE 277 +# define MULTIPLE 278 +# define INITINSTANCE 279 +# define INITGLOBAL 280 +# define TERMINSTANCE 281 +# define TERMGLOBAL 282 +# define ID 283 +# define NUMBER 284 #line 1 "defparse.y" /* defparse.y - parser for .def files */ -/* Copyright 1995, 1997, 1998, 1999 Free Software Foundation, Inc. +/* Copyright 1995, 1997, 1998, 1999, 2004 + Free Software Foundation, Inc. -This file is part of GNU Binutils. + This file is part of GNU Binutils. -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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "bfd.h" #include "bucomm.h" #include "dlltool.h" -#line 26 "defparse.y" +#line 27 "defparse.y" #ifndef YYSTYPE typedef union { char *id; @@ -71,12 +73,12 @@ typedef union { -#define YYFINAL 96 +#define YYFINAL 98 #define YYFLAG -32768 -#define YYNTBASE 34 +#define YYNTBASE 35 /* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */ -#define YYTRANSLATE(x) ((unsigned)(x) <= 283 ? yytranslate[x] : 55) +#define YYTRANSLATE(x) ((unsigned)(x) <= 284 ? yytranslate[x] : 57) /* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */ static const char yytranslate[] = @@ -85,9 +87,9 @@ static const char yytranslate[] = 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 32, 2, 30, 2, 2, 2, + 2, 2, 2, 2, 33, 2, 31, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 31, 2, 2, 33, 2, 2, 2, 2, 2, + 2, 32, 2, 2, 34, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -109,42 +111,42 @@ static const char yytranslate[] = 2, 2, 2, 2, 2, 2, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29 + 26, 27, 28, 29, 30 }; #if YYDEBUG static const short yyprhs[] = { 0, 0, 3, 5, 9, 14, 17, 20, 24, 28, - 31, 34, 37, 40, 43, 48, 49, 52, 59, 62, - 64, 72, 80, 86, 92, 98, 104, 108, 112, 115, - 117, 120, 124, 126, 128, 129, 132, 133, 135, 137, - 139, 141, 143, 145, 147, 149, 150, 152, 153, 155, - 156, 158, 162, 163, 166, 167, 170, 175, 176, 180, - 181, 182, 186, 188, 190, 192 + 31, 34, 37, 40, 43, 48, 49, 52, 60, 63, + 65, 73, 81, 87, 93, 99, 105, 109, 113, 116, + 118, 121, 125, 127, 129, 130, 133, 134, 136, 138, + 140, 142, 144, 146, 148, 150, 151, 153, 154, 156, + 157, 159, 160, 162, 166, 167, 170, 171, 174, 179, + 180, 184, 185, 186, 190, 192, 194, 196 }; static const short yyrhs[] = { - 34, 35, 0, 35, 0, 3, 49, 52, 0, 4, - 49, 52, 53, 0, 11, 36, 0, 5, 28, 0, - 6, 29, 44, 0, 7, 29, 44, 0, 8, 42, - 0, 9, 42, 0, 10, 40, 0, 12, 38, 0, - 13, 29, 0, 13, 29, 30, 29, 0, 0, 36, - 37, 0, 28, 51, 50, 47, 46, 48, 0, 38, - 39, 0, 39, 0, 28, 31, 28, 30, 28, 30, - 28, 0, 28, 31, 28, 30, 28, 30, 29, 0, - 28, 31, 28, 30, 28, 0, 28, 31, 28, 30, - 29, 0, 28, 30, 28, 30, 28, 0, 28, 30, - 28, 30, 29, 0, 28, 30, 28, 0, 28, 30, - 29, 0, 40, 41, 0, 41, 0, 28, 42, 0, - 42, 43, 45, 0, 45, 0, 32, 0, 0, 32, - 29, 0, 0, 16, 0, 17, 0, 18, 0, 19, - 0, 20, 0, 22, 0, 23, 0, 15, 0, 0, - 21, 0, 0, 9, 0, 0, 28, 0, 28, 30, - 28, 0, 0, 33, 29, 0, 0, 31, 28, 0, - 31, 28, 30, 28, 0, 0, 14, 31, 29, 0, - 0, 0, 53, 43, 54, 0, 24, 0, 25, 0, - 26, 0, 27, 0 + 35, 36, 0, 36, 0, 3, 51, 54, 0, 4, + 51, 54, 55, 0, 11, 37, 0, 5, 29, 0, + 6, 30, 45, 0, 7, 30, 45, 0, 8, 43, + 0, 9, 43, 0, 10, 41, 0, 12, 39, 0, + 13, 30, 0, 13, 30, 31, 30, 0, 0, 37, + 38, 0, 29, 53, 52, 48, 47, 49, 50, 0, + 39, 40, 0, 40, 0, 29, 32, 29, 31, 29, + 31, 29, 0, 29, 32, 29, 31, 29, 31, 30, + 0, 29, 32, 29, 31, 29, 0, 29, 32, 29, + 31, 30, 0, 29, 31, 29, 31, 29, 0, 29, + 31, 29, 31, 30, 0, 29, 31, 29, 0, 29, + 31, 30, 0, 41, 42, 0, 42, 0, 29, 43, + 0, 43, 44, 46, 0, 46, 0, 33, 0, 0, + 33, 30, 0, 0, 16, 0, 17, 0, 18, 0, + 19, 0, 20, 0, 23, 0, 24, 0, 15, 0, + 0, 21, 0, 0, 9, 0, 0, 22, 0, 0, + 29, 0, 29, 31, 29, 0, 0, 34, 30, 0, + 0, 32, 29, 0, 32, 29, 31, 29, 0, 0, + 14, 32, 30, 0, 0, 0, 55, 44, 56, 0, + 25, 0, 26, 0, 27, 0, 28, 0 }; #endif @@ -153,13 +155,13 @@ static const short yyrhs[] = /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const short yyrline[] = { - 0, 43, 44, 47, 49, 50, 51, 52, 53, 54, - 55, 56, 57, 58, 59, 63, 65, 68, 72, 74, - 77, 79, 80, 81, 82, 83, 84, 85, 88, 90, - 93, 97, 99, 102, 104, 106, 107, 110, 112, 113, - 114, 115, 116, 117, 120, 122, 125, 127, 130, 132, - 135, 136, 142, 145, 147, 150, 152, 158, 161, 162, - 165, 167, 170, 172, 173, 174 + 0, 44, 45, 48, 50, 51, 52, 53, 54, 55, + 56, 57, 58, 59, 60, 64, 66, 69, 73, 75, + 78, 80, 81, 82, 83, 84, 85, 86, 89, 91, + 94, 98, 100, 103, 105, 107, 108, 111, 113, 114, + 115, 116, 117, 118, 121, 123, 126, 128, 131, 133, + 136, 138, 141, 142, 148, 151, 153, 156, 158, 164, + 167, 168, 171, 173, 176, 178, 179, 180 }; #endif @@ -172,38 +174,38 @@ static const char *const yytname[] = "$", "error", "$undefined.", "NAME", "LIBRARY", "DESCRIPTION", "STACKSIZE", "HEAPSIZE", "CODE", "DATA", "SECTIONS", "EXPORTS", "IMPORTS", "VERSIONK", "BASE", "CONSTANT", "READ", "WRITE", "EXECUTE", - "SHARED", "NONSHARED", "NONAME", "SINGLE", "MULTIPLE", "INITINSTANCE", - "INITGLOBAL", "TERMINSTANCE", "TERMGLOBAL", "ID", "NUMBER", "'.'", - "'='", "','", "'@'", "start", "command", "explist", "expline", - "implist", "impline", "seclist", "secline", "attr_list", "opt_comma", - "opt_number", "attr", "opt_CONSTANT", "opt_NONAME", "opt_DATA", - "opt_name", "opt_ordinal", "opt_equal_name", "opt_base", "option_list", - "option", 0 + "SHARED", "NONSHARED", "NONAME", "PRIVATE", "SINGLE", "MULTIPLE", + "INITINSTANCE", "INITGLOBAL", "TERMINSTANCE", "TERMGLOBAL", "ID", + "NUMBER", "'.'", "'='", "','", "'@'", "start", "command", "explist", + "expline", "implist", "impline", "seclist", "secline", "attr_list", + "opt_comma", "opt_number", "attr", "opt_CONSTANT", "opt_NONAME", + "opt_DATA", "opt_PRIVATE", "opt_name", "opt_ordinal", "opt_equal_name", + "opt_base", "option_list", "option", 0 }; #endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const short yyr1[] = { - 0, 34, 34, 35, 35, 35, 35, 35, 35, 35, - 35, 35, 35, 35, 35, 36, 36, 37, 38, 38, - 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, - 41, 42, 42, 43, 43, 44, 44, 45, 45, 45, - 45, 45, 45, 45, 46, 46, 47, 47, 48, 48, - 49, 49, 49, 50, 50, 51, 51, 51, 52, 52, - 53, 53, 54, 54, 54, 54 + 0, 35, 35, 36, 36, 36, 36, 36, 36, 36, + 36, 36, 36, 36, 36, 37, 37, 38, 39, 39, + 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, + 42, 43, 43, 44, 44, 45, 45, 46, 46, 46, + 46, 46, 46, 46, 47, 47, 48, 48, 49, 49, + 50, 50, 51, 51, 51, 52, 52, 53, 53, 53, + 54, 54, 55, 55, 56, 56, 56, 56 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const short yyr2[] = { 0, 2, 1, 3, 4, 2, 2, 3, 3, 2, - 2, 2, 2, 2, 4, 0, 2, 6, 2, 1, + 2, 2, 2, 2, 4, 0, 2, 7, 2, 1, 7, 7, 5, 5, 5, 5, 3, 3, 2, 1, 2, 3, 1, 1, 0, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, - 1, 3, 0, 2, 0, 2, 4, 0, 3, 0, - 0, 3, 1, 1, 1, 1 + 1, 0, 1, 3, 0, 2, 0, 2, 4, 0, + 3, 0, 0, 3, 1, 1, 1, 1 }; /* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE @@ -211,81 +213,83 @@ static const short yyr2[] = error. */ static const short yydefact[] = { - 0, 52, 52, 0, 0, 0, 0, 0, 0, 15, - 0, 0, 0, 2, 50, 59, 59, 6, 36, 36, + 0, 54, 54, 0, 0, 0, 0, 0, 0, 15, + 0, 0, 0, 2, 52, 61, 61, 6, 36, 36, 37, 38, 39, 40, 41, 42, 43, 9, 32, 10, 0, 11, 29, 5, 0, 12, 19, 13, 1, 0, - 0, 3, 60, 0, 7, 8, 33, 0, 30, 28, - 57, 16, 0, 0, 18, 0, 51, 0, 4, 35, - 31, 0, 54, 26, 27, 0, 14, 58, 0, 55, - 0, 47, 0, 0, 62, 63, 64, 65, 61, 0, - 53, 46, 45, 24, 25, 22, 23, 56, 44, 49, - 0, 48, 17, 20, 21, 0, 0 + 0, 3, 62, 0, 7, 8, 33, 0, 30, 28, + 59, 16, 0, 0, 18, 0, 53, 0, 4, 35, + 31, 0, 56, 26, 27, 0, 14, 60, 0, 57, + 0, 47, 0, 0, 64, 65, 66, 67, 63, 0, + 55, 46, 45, 24, 25, 22, 23, 58, 44, 49, + 0, 48, 51, 20, 21, 50, 17, 0, 0 }; static const short yydefgoto[] = { 12, 13, 33, 51, 35, 36, 31, 32, 27, 47, - 44, 28, 89, 82, 92, 15, 71, 62, 41, 58, - 78 + 44, 28, 89, 82, 92, 96, 15, 71, 62, 41, + 58, 78 }; static const short yypact[] = { - 32, -22, -22, -19, -13, 22, 30, 30, -6,-32768, - 26, 38, 21,-32768, 29, 46, 46,-32768, 36, 36, + 32, -12, -12, 17, -8, 33, -4, -4, 35,-32768, + 36, 37, 21,-32768, 38, 48, 48,-32768, 39, 39, -32768,-32768,-32768,-32768,-32768,-32768,-32768, -15,-32768, -15, - 30, -6,-32768, 41, -16, 26,-32768, 40,-32768, 43, - 42,-32768,-32768, 45,-32768,-32768,-32768, 30, -15,-32768, - 44,-32768, -9, 48,-32768, 49,-32768, 50, -14,-32768, - -32768, 52, 39, 47,-32768, 51,-32768,-32768, 31, 53, - 55, 61, 33, 35,-32768,-32768,-32768,-32768,-32768, 57, - -32768,-32768, 71,-32768,-32768, 58,-32768,-32768,-32768, 78, - 37,-32768,-32768,-32768,-32768, 89,-32768 + -4, 35,-32768, 41, -25, 36,-32768, 40,-32768, 44, + 34,-32768,-32768, 45,-32768,-32768,-32768, -4, -15,-32768, + 42,-32768, -19, 47,-32768, 49,-32768, 50, 22,-32768, + -32768, 52, 43, 51,-32768, 53,-32768,-32768, 26, 54, + 56, 57, 27, 29,-32768,-32768,-32768,-32768,-32768, 58, + -32768,-32768, 68,-32768,-32768, 59,-32768,-32768,-32768, 79, + 31,-32768, 46,-32768,-32768,-32768,-32768, 89,-32768 }; static const short yypgoto[] = { - -32768, 79,-32768,-32768,-32768, 59,-32768, 62, -7, 34, - 76, 54,-32768,-32768,-32768, 88,-32768,-32768, 80,-32768, - -32768 + -32768, 80,-32768,-32768,-32768, 60,-32768, 62, -7, 55, + 72, 61,-32768,-32768,-32768,-32768, 92,-32768,-32768, 81, + -32768,-32768 }; -#define YYLAST 101 +#define YYLAST 113 static const short yytable[] = { - 29, -34, -34, -34, -34, -34, 14, -34, -34, 17, - -34, -34, -34, -34, 52, 53, 18, 46, 46, 63, - 64, 95, 30, 48, 1, 2, 3, 4, 5, 6, + 29, -34, -34, -34, -34, -34, 52, 53, -34, -34, + 63, 64, 20, 21, 22, 23, 24, 14, 46, 25, + 26, 97, 18, 48, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, - 6, 7, 8, 9, 10, 11, 20, 21, 22, 23, - 24, 19, 25, 26, 34, 74, 75, 76, 77, 39, - 40, 83, 84, 85, 86, 93, 94, 37, 43, 50, - 55, 56, 70, 57, 59, 61, 65, 72, 66, 67, - 69, 73, 81, 79, 80, 87, 88, 91, 90, 96, - 16, 38, 68, 49, 54, 45, 42, 0, 0, 0, - 0, 60 + 6, 7, 8, 9, 10, 11, 17, -34, -34, -34, + -34, 74, 75, 76, 77, 46, 83, 84, 85, 86, + 93, 94, 40, 19, 30, 34, 57, 37, 95, 39, + 50, 55, 43, 56, 61, 59, 65, 70, 81, 66, + 67, 69, 72, 88, 73, 79, 80, 87, 91, 98, + 90, 45, 38, 49, 16, 54, 0, 42, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 60, 0, + 0, 0, 0, 68 }; static const short yycheck[] = { - 7, 16, 17, 18, 19, 20, 28, 22, 23, 28, - 24, 25, 26, 27, 30, 31, 29, 32, 32, 28, - 29, 0, 28, 30, 3, 4, 5, 6, 7, 8, + 7, 16, 17, 18, 19, 20, 31, 32, 23, 24, + 29, 30, 16, 17, 18, 19, 20, 29, 33, 23, + 24, 0, 30, 30, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 13, 16, 17, 18, 19, - 20, 29, 22, 23, 28, 24, 25, 26, 27, 30, - 14, 28, 29, 28, 29, 28, 29, 29, 32, 28, - 30, 28, 33, 31, 29, 31, 28, 30, 29, 29, - 28, 30, 21, 30, 29, 28, 15, 9, 30, 0, - 2, 12, 58, 31, 35, 19, 16, -1, -1, -1, - -1, 47 + 8, 9, 10, 11, 12, 13, 29, 25, 26, 27, + 28, 25, 26, 27, 28, 33, 29, 30, 29, 30, + 29, 30, 14, 30, 29, 29, 32, 30, 22, 31, + 29, 31, 33, 29, 32, 30, 29, 34, 21, 30, + 30, 29, 31, 15, 31, 31, 30, 29, 9, 0, + 31, 19, 12, 31, 2, 35, -1, 16, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 47, -1, + -1, -1, -1, 58 }; /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ -#line 3 "/usr/share/bison/bison.simple" +#line 3 "/usr/share/bison-1.35/bison.simple" /* Skeleton output parser for bison, @@ -598,7 +602,7 @@ yystpcpy (yydest, yysrc) # endif #endif -#line 315 "/usr/share/bison/bison.simple" +#line 315 "/usr/share/bison-1.35/bison.simple" /* The user can define YYPARSE_PARAM as the name of an argument to be passed @@ -992,192 +996,200 @@ yyreduce: switch (yyn) { case 3: -#line 48 "defparse.y" +#line 49 "defparse.y" { def_name (yyvsp[-1].id, yyvsp[0].number); } break; case 4: -#line 49 "defparse.y" +#line 50 "defparse.y" { def_library (yyvsp[-2].id, yyvsp[-1].number); } break; case 6: -#line 51 "defparse.y" +#line 52 "defparse.y" { def_description (yyvsp[0].id);} break; case 7: -#line 52 "defparse.y" +#line 53 "defparse.y" { def_stacksize (yyvsp[-1].number, yyvsp[0].number);} break; case 8: -#line 53 "defparse.y" +#line 54 "defparse.y" { def_heapsize (yyvsp[-1].number, yyvsp[0].number);} break; case 9: -#line 54 "defparse.y" +#line 55 "defparse.y" { def_code (yyvsp[0].number);} break; case 10: -#line 55 "defparse.y" +#line 56 "defparse.y" { def_data (yyvsp[0].number);} break; case 13: -#line 58 "defparse.y" +#line 59 "defparse.y" { def_version (yyvsp[0].number,0);} break; case 14: -#line 59 "defparse.y" +#line 60 "defparse.y" { def_version (yyvsp[-2].number,yyvsp[0].number);} break; case 17: -#line 70 "defparse.y" -{ def_exports (yyvsp[-5].id, yyvsp[-4].id, yyvsp[-3].number, yyvsp[-2].number, yyvsp[-1].number, yyvsp[0].number);} +#line 71 "defparse.y" +{ def_exports (yyvsp[-6].id, yyvsp[-5].id, yyvsp[-4].number, yyvsp[-3].number, yyvsp[-2].number, yyvsp[-1].number, yyvsp[0].number);} break; case 20: -#line 78 "defparse.y" +#line 79 "defparse.y" { def_import (yyvsp[-6].id,yyvsp[-4].id,yyvsp[-2].id,yyvsp[0].id, 0); } break; case 21: -#line 79 "defparse.y" +#line 80 "defparse.y" { def_import (yyvsp[-6].id,yyvsp[-4].id,yyvsp[-2].id, 0,yyvsp[0].number); } break; case 22: -#line 80 "defparse.y" +#line 81 "defparse.y" { def_import (yyvsp[-4].id,yyvsp[-2].id, 0,yyvsp[0].id, 0); } break; case 23: -#line 81 "defparse.y" +#line 82 "defparse.y" { def_import (yyvsp[-4].id,yyvsp[-2].id, 0, 0,yyvsp[0].number); } break; case 24: -#line 82 "defparse.y" +#line 83 "defparse.y" { def_import ( 0,yyvsp[-4].id,yyvsp[-2].id,yyvsp[0].id, 0); } break; case 25: -#line 83 "defparse.y" +#line 84 "defparse.y" { def_import ( 0,yyvsp[-4].id,yyvsp[-2].id, 0,yyvsp[0].number); } break; case 26: -#line 84 "defparse.y" +#line 85 "defparse.y" { def_import ( 0,yyvsp[-2].id, 0,yyvsp[0].id, 0); } break; case 27: -#line 85 "defparse.y" +#line 86 "defparse.y" { def_import ( 0,yyvsp[-2].id, 0, 0,yyvsp[0].number); } break; case 30: -#line 94 "defparse.y" +#line 95 "defparse.y" { def_section (yyvsp[-1].id,yyvsp[0].number);} break; case 35: -#line 106 "defparse.y" +#line 107 "defparse.y" { yyval.number=yyvsp[0].number;} break; case 36: -#line 107 "defparse.y" +#line 108 "defparse.y" { yyval.number=-1;} break; case 37: -#line 111 "defparse.y" +#line 112 "defparse.y" { yyval.number = 1; } break; case 38: -#line 112 "defparse.y" +#line 113 "defparse.y" { yyval.number = 2; } break; case 39: -#line 113 "defparse.y" +#line 114 "defparse.y" { yyval.number = 4; } break; case 40: -#line 114 "defparse.y" +#line 115 "defparse.y" { yyval.number = 8; } break; case 41: -#line 115 "defparse.y" +#line 116 "defparse.y" { yyval.number = 0; } break; case 42: -#line 116 "defparse.y" +#line 117 "defparse.y" { yyval.number = 0; } break; case 43: -#line 117 "defparse.y" +#line 118 "defparse.y" { yyval.number = 0; } break; case 44: -#line 121 "defparse.y" +#line 122 "defparse.y" {yyval.number=1;} break; case 45: -#line 122 "defparse.y" +#line 123 "defparse.y" {yyval.number=0;} break; case 46: -#line 126 "defparse.y" +#line 127 "defparse.y" {yyval.number=1;} break; case 47: -#line 127 "defparse.y" +#line 128 "defparse.y" {yyval.number=0;} break; case 48: -#line 131 "defparse.y" +#line 132 "defparse.y" { yyval.number = 1; } break; case 49: -#line 132 "defparse.y" +#line 133 "defparse.y" { yyval.number = 0; } break; case 50: -#line 135 "defparse.y" -{ yyval.id =yyvsp[0].id; } +#line 137 "defparse.y" +{ yyval.number = 1; } break; case 51: -#line 137 "defparse.y" +#line 138 "defparse.y" +{ yyval.number = 0; } + break; +case 52: +#line 141 "defparse.y" +{ yyval.id =yyvsp[0].id; } + break; +case 53: +#line 143 "defparse.y" { char *name = xmalloc (strlen (yyvsp[-2].id) + 1 + strlen (yyvsp[0].id) + 1); sprintf (name, "%s.%s", yyvsp[-2].id, yyvsp[0].id); yyval.id = name; } break; -case 52: -#line 142 "defparse.y" +case 54: +#line 148 "defparse.y" { yyval.id=""; } break; -case 53: -#line 146 "defparse.y" +case 55: +#line 152 "defparse.y" { yyval.number=yyvsp[0].number;} break; -case 54: -#line 147 "defparse.y" +case 56: +#line 153 "defparse.y" { yyval.number=-1;} break; -case 55: -#line 151 "defparse.y" +case 57: +#line 157 "defparse.y" { yyval.id = yyvsp[0].id; } break; -case 56: -#line 153 "defparse.y" +case 58: +#line 159 "defparse.y" { char *name = xmalloc (strlen (yyvsp[-2].id) + 1 + strlen (yyvsp[0].id) + 1); sprintf (name, "%s.%s", yyvsp[-2].id, yyvsp[0].id); yyval.id = name; } break; -case 57: -#line 158 "defparse.y" +case 59: +#line 164 "defparse.y" { yyval.id = 0; } break; -case 58: -#line 161 "defparse.y" +case 60: +#line 167 "defparse.y" { yyval.number= yyvsp[0].number;} break; -case 59: -#line 162 "defparse.y" +case 61: +#line 168 "defparse.y" { yyval.number=-1;} break; } -#line 705 "/usr/share/bison/bison.simple" +#line 705 "/usr/share/bison-1.35/bison.simple" yyvsp -= yylen; @@ -1408,4 +1420,4 @@ yyreturn: #endif return yyresult; } -#line 176 "defparse.y" +#line 182 "defparse.y" Modified: projects/binutils-2.17/contrib/binutils/binutils/defparse.h ============================================================================== --- projects/binutils-2.17/contrib/binutils/binutils/defparse.h Mon Oct 18 19:45:24 2010 (r214029) +++ projects/binutils-2.17/contrib/binutils/binutils/defparse.h Mon Oct 18 20:57:43 2010 (r214030) @@ -28,14 +28,15 @@ typedef union { # define SHARED 273 # define NONSHARED 274 # define NONAME 275 -# define SINGLE 276 -# define MULTIPLE 277 -# define INITINSTANCE 278 -# define INITGLOBAL 279 -# define TERMINSTANCE 280 -# define TERMGLOBAL 281 -# define ID 282 -# define NUMBER 283 +# define PRIVATE 276 +# define SINGLE 277 +# define MULTIPLE 278 +# define INITINSTANCE 279 +# define INITGLOBAL 280 +# define TERMINSTANCE 281 +# define TERMGLOBAL 282 +# define ID 283 +# define NUMBER 284 extern YYSTYPE yylval; Modified: projects/binutils-2.17/contrib/binutils/binutils/defparse.y ============================================================================== --- projects/binutils-2.17/contrib/binutils/binutils/defparse.y Mon Oct 18 19:45:24 2010 (r214029) +++ projects/binutils-2.17/contrib/binutils/binutils/defparse.y Mon Oct 18 20:57:43 2010 (r214030) @@ -1,22 +1,23 @@ %{ /* defparse.y - parser for .def files */ -/* Copyright 1995, 1997, 1998, 1999 Free Software Foundation, Inc. +/* Copyright 1995, 1997, 1998, 1999, 2004 + Free Software Foundation, Inc. -This file is part of GNU Binutils. + This file is part of GNU Binutils. -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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "bfd.h" #include "bucomm.h" @@ -30,11 +31,11 @@ Foundation, Inc., 59 Temple Place - Suit %token NAME, LIBRARY, DESCRIPTION, STACKSIZE, HEAPSIZE, CODE, DATA %token SECTIONS, EXPORTS, IMPORTS, VERSIONK, BASE, CONSTANT -%token READ WRITE EXECUTE SHARED NONSHARED NONAME +%token READ WRITE EXECUTE SHARED NONSHARED NONAME PRIVATE %token SINGLE MULTIPLE INITINSTANCE INITGLOBAL TERMINSTANCE TERMGLOBAL %token ID %token NUMBER -%type opt_base opt_ordinal opt_NONAME opt_CONSTANT opt_DATA +%type opt_base opt_ordinal opt_NONAME opt_CONSTANT opt_DATA opt_PRIVATE %type attr attr_list opt_number %type opt_name opt_equal_name @@ -66,8 +67,8 @@ explist: ; expline: - ID opt_equal_name opt_ordinal opt_NONAME opt_CONSTANT opt_DATA - { def_exports ($1, $2, $3, $4, $5, $6);} + ID opt_equal_name opt_ordinal opt_NONAME opt_CONSTANT opt_DATA opt_PRIVATE + { def_exports ($1, $2, $3, $4, $5, $6, $7);} ; implist: implist impline @@ -132,6 +133,11 @@ opt_DATA: | { $$ = 0; } ; +opt_PRIVATE: + PRIVATE { $$ = 1; } + | { $$ = 0; } + ; + opt_name: ID { $$ =$1; } | ID '.' ID { Modified: projects/binutils-2.17/contrib/binutils/binutils/rclex.c ============================================================================== --- projects/binutils-2.17/contrib/binutils/binutils/rclex.c Mon Oct 18 19:45:24 2010 (r214029) +++ projects/binutils-2.17/contrib/binutils/binutils/rclex.c Mon Oct 18 20:57:43 2010 (r214030) @@ -1,7 +1,7 @@ /* A lexical scanner generated by flex */ /* Scanner skeleton version: - * $Header: /cvs/src/src/binutils/Attic/rclex.c,v 1.1.12.1 2004/04/09 19:32:15 drow Exp $ + * $Header: /cvs/src/src/binutils/rclex.c,v 1.1.12.1 2004/04/09 19:32:15 drow Exp $ */ #define FLEX_SCANNER Modified: projects/binutils-2.17/contrib/binutils/binutils/rcparse.y ============================================================================== --- projects/binutils-2.17/contrib/binutils/binutils/rcparse.y Mon Oct 18 19:45:24 2010 (r214029) +++ projects/binutils-2.17/contrib/binutils/binutils/rcparse.y Mon Oct 18 20:57:43 2010 (r214030) @@ -1,5 +1,5 @@ %{ /* rcparse.y -- parser for Windows rc files - Copyright 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support. This file is part of GNU Binutils. @@ -52,6 +52,11 @@ static unsigned long style; static unsigned long base_style; static unsigned long default_style; static unsigned long class; +static struct res_id res_text_field; + +/* This is used for COMBOBOX, LISTBOX and EDITTEXT which + do not allow resource 'text' field in control definition. */ +static const struct res_id res_null_text = { 1, {{0, L""}}}; %} @@ -135,11 +140,11 @@ static unsigned long class; %type vertrans %type suboptions memflags_move_discard memflags_move %type memflag -%type id resref +%type id optresidc resref %type exstyle parennumber %type numexpr posnumexpr cnumexpr optcnumexpr cposnumexpr %type acc_options acc_option menuitem_flags menuitem_flag -%type optstringc file_name resname +%type file_name resname %type sizednumexpr sizedposnumexpr %left '|' @@ -533,70 +538,78 @@ controls: ; control: - AUTO3STATE + AUTO3STATE optresidc { default_style = BS_AUTO3STATE | WS_TABSTOP; base_style = BS_AUTO3STATE; class = CTL_BUTTON; + res_text_field = $2; } control_params { - $$ = $3; + $$ = $4; } - | AUTOCHECKBOX + | AUTOCHECKBOX optresidc { default_style = BS_AUTOCHECKBOX | WS_TABSTOP; base_style = BS_AUTOCHECKBOX; class = CTL_BUTTON; + res_text_field = $2; } control_params { - $$ = $3; + $$ = $4; } - | AUTORADIOBUTTON + | AUTORADIOBUTTON optresidc { default_style = BS_AUTORADIOBUTTON | WS_TABSTOP; base_style = BS_AUTORADIOBUTTON; class = CTL_BUTTON; + res_text_field = $2; } control_params { - $$ = $3; + $$ = $4; } - | BEDIT + | BEDIT optresidc { default_style = ES_LEFT | WS_BORDER | WS_TABSTOP; base_style = ES_LEFT | WS_BORDER | WS_TABSTOP; class = CTL_EDIT; + res_text_field = $2; } control_params { - $$ = $3; + $$ = $4; if (dialog.ex == NULL) rcparse_warning (_("BEDIT requires DIALOGEX")); res_string_to_id (&$$->class, "BEDIT"); } - | CHECKBOX + | CHECKBOX optresidc { default_style = BS_CHECKBOX | WS_TABSTOP; base_style = BS_CHECKBOX | WS_TABSTOP; class = CTL_BUTTON; + res_text_field = $2; } control_params { - $$ = $3; + $$ = $4; } | COMBOBOX { + /* This is as per MSDN documentation. With some (???) + versions of MS rc.exe their is no default style. */ default_style = CBS_SIMPLE | WS_TABSTOP; base_style = 0; class = CTL_COMBOBOX; + res_text_field = res_null_text; } control_params { $$ = $3; } - | CONTROL optstringc numexpr cnumexpr control_styleexpr cnumexpr + | CONTROL optresidc numexpr cnumexpr control_styleexpr cnumexpr cnumexpr cnumexpr cnumexpr optcnumexpr opt_control_data { $$ = define_control ($2, $3, $6, $7, $8, $9, $4, style, $10); @@ -607,7 +620,7 @@ control: $$->data = $11; } } - | CONTROL optstringc numexpr cnumexpr control_styleexpr cnumexpr + | CONTROL optresidc numexpr cnumexpr control_styleexpr cnumexpr cnumexpr cnumexpr cnumexpr cnumexpr cnumexpr opt_control_data { $$ = define_control ($2, $3, $6, $7, $8, $9, $4, style, $10); @@ -616,7 +629,7 @@ control: $$->help = $11; $$->data = $12; } - | CONTROL optstringc numexpr ',' QUOTEDSTRING control_styleexpr + | CONTROL optresidc numexpr ',' QUOTEDSTRING control_styleexpr cnumexpr cnumexpr cnumexpr cnumexpr optcnumexpr opt_control_data { $$ = define_control ($2, $3, $7, $8, $9, $10, 0, style, $11); @@ -629,7 +642,7 @@ control: $$->class.named = 1; unicode_from_ascii (&$$->class.u.n.length, &$$->class.u.n.name, $5); } - | CONTROL optstringc numexpr ',' QUOTEDSTRING control_styleexpr + | CONTROL optresidc numexpr ',' QUOTEDSTRING control_styleexpr cnumexpr cnumexpr cnumexpr cnumexpr cnumexpr cnumexpr opt_control_data { $$ = define_control ($2, $3, $7, $8, $9, $10, 0, style, $11); @@ -640,55 +653,60 @@ control: $$->class.named = 1; unicode_from_ascii (&$$->class.u.n.length, &$$->class.u.n.name, $5); } - | CTEXT + | CTEXT optresidc { default_style = SS_CENTER | WS_GROUP; base_style = SS_CENTER; class = CTL_STATIC; + res_text_field = $2; } control_params { - $$ = $3; + $$ = $4; } - | DEFPUSHBUTTON + | DEFPUSHBUTTON optresidc { default_style = BS_DEFPUSHBUTTON | WS_TABSTOP; base_style = BS_DEFPUSHBUTTON | WS_TABSTOP; class = CTL_BUTTON; + res_text_field = $2; } control_params { - $$ = $3; + $$ = $4; } | EDITTEXT { default_style = ES_LEFT | WS_BORDER | WS_TABSTOP; base_style = ES_LEFT | WS_BORDER | WS_TABSTOP; class = CTL_EDIT; + res_text_field = res_null_text; } control_params { $$ = $3; } - | GROUPBOX + | GROUPBOX optresidc { default_style = BS_GROUPBOX; base_style = BS_GROUPBOX; class = CTL_BUTTON; + res_text_field = $2; } control_params { - $$ = $3; + $$ = $4; } - | HEDIT + | HEDIT optresidc { default_style = ES_LEFT | WS_BORDER | WS_TABSTOP; base_style = ES_LEFT | WS_BORDER | WS_TABSTOP; class = CTL_EDIT; + res_text_field = $2; } control_params { - $$ = $3; + $$ = $4; if (dialog.ex == NULL) rcparse_warning (_("IEDIT requires DIALOGEX")); res_string_to_id (&$$->class, "HEDIT"); @@ -716,15 +734,16 @@ control: $$ = define_icon_control ($2, $3, $4, $5, style, $9, $10, $11, dialog.ex); } - | IEDIT + | IEDIT optresidc { default_style = ES_LEFT | WS_BORDER | WS_TABSTOP; base_style = ES_LEFT | WS_BORDER | WS_TABSTOP; class = CTL_EDIT; + res_text_field = $2; } control_params { - $$ = $3; + $$ = $4; if (dialog.ex == NULL) rcparse_warning (_("IEDIT requires DIALOGEX")); res_string_to_id (&$$->class, "IEDIT"); @@ -734,22 +753,24 @@ control: *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-projects@FreeBSD.ORG Mon Oct 18 20:59:46 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A96E310656DF; Mon, 18 Oct 2010 20:59:46 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 97D0A8FC15; Mon, 18 Oct 2010 20:59:46 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IKxkUs085347; Mon, 18 Oct 2010 20:59:46 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9IKxkut085345; Mon, 18 Oct 2010 20:59:46 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010182059.o9IKxkut085345@svn.freebsd.org> From: Dimitry Andric Date: Mon, 18 Oct 2010 20:59:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214031 - projects/binutils-2.17/gnu/usr.bin/binutils/doc X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 20:59:46 -0000 Author: dim Date: Mon Oct 18 20:59:46 2010 New Revision: 214031 URL: http://svn.freebsd.org/changeset/base/214031 Log: Do not build or install gasp.info anymore, as gasp is obsolete. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/doc/Makefile Modified: projects/binutils-2.17/gnu/usr.bin/binutils/doc/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/doc/Makefile Mon Oct 18 20:57:43 2010 (r214030) +++ projects/binutils-2.17/gnu/usr.bin/binutils/doc/Makefile Mon Oct 18 20:59:46 2010 (r214031) @@ -4,10 +4,9 @@ .PATH: ${SRCDIR}/gas/doc ${SRCDIR}/ld ${SRCDIR}/bfd/doc -INFO= as ld gasp binutils +INFO= as ld binutils INFOSECTION= "Programming & development tools." INFOENTRY_as= "* As: (as). The GNU assembler." -INFOENTRY_gasp= "* Gasp: (gasp). The GNU Assembler Macro Preprocessor." INFOENTRY_ld= "* Ld: (ld). The GNU linker." INFOENTRY_binutils= "* Binutils: (binutils). The GNU Binary Utilities." From owner-svn-src-projects@FreeBSD.ORG Mon Oct 18 21:04:56 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56134106566B; Mon, 18 Oct 2010 21:04:56 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2BA158FC13; Mon, 18 Oct 2010 21:04:56 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IL4uDc085577; Mon, 18 Oct 2010 21:04:56 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9IL4uBM085576; Mon, 18 Oct 2010 21:04:56 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010182104.o9IL4uBM085576@svn.freebsd.org> From: Dimitry Andric Date: Mon, 18 Oct 2010 21:04:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214032 - in projects/binutils-2.17/gnu/usr.bin/binutils: gasp gdb gdbreplay X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 21:04:56 -0000 Author: dim Date: Mon Oct 18 21:04:55 2010 New Revision: 214032 URL: http://svn.freebsd.org/changeset/base/214032 Log: Garbage collect gnu/usr.bin/binutils/{gasp,gdb,gdbreplay}, as these have not been connected to the build for 6 years now. Deleted: projects/binutils-2.17/gnu/usr.bin/binutils/gasp/ projects/binutils-2.17/gnu/usr.bin/binutils/gdb/ projects/binutils-2.17/gnu/usr.bin/binutils/gdbreplay/ From owner-svn-src-projects@FreeBSD.ORG Mon Oct 18 22:18:42 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78D4D106566B; Mon, 18 Oct 2010 22:18:42 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 675BB8FC0C; Mon, 18 Oct 2010 22:18:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IMIgt9087666; Mon, 18 Oct 2010 22:18:42 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9IMIgmk087664; Mon, 18 Oct 2010 22:18:42 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010182218.o9IMIgmk087664@svn.freebsd.org> From: Jeff Roberson Date: Mon, 18 Oct 2010 22:18:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214035 - projects/ofed/head/sys/conf X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 22:18:42 -0000 Author: jeff Date: Mon Oct 18 22:18:42 2010 New Revision: 214035 URL: http://svn.freebsd.org/changeset/base/214035 Log: - Enable ipoib_cm.c in the build. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/sys/conf/files Modified: projects/ofed/head/sys/conf/files ============================================================================== --- projects/ofed/head/sys/conf/files Mon Oct 18 21:21:57 2010 (r214034) +++ projects/ofed/head/sys/conf/files Mon Oct 18 22:18:42 2010 (r214035) @@ -2746,9 +2746,9 @@ ofed/drivers/infiniband/core/verbs.c op no-depend \ compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/" -#ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c optional ipoib \ -# no-depend \ -# compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/ipoib/" +ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c optional ipoib \ + no-depend \ + compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/ipoib/" #ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c optional ipoib \ # no-depend \ # compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/ipoib/" From owner-svn-src-projects@FreeBSD.ORG Mon Oct 18 22:19:48 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40EF1106564A; Mon, 18 Oct 2010 22:19:48 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2F6638FC16; Mon, 18 Oct 2010 22:19:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IMJmpF087746; Mon, 18 Oct 2010 22:19:48 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9IMJmlP087744; Mon, 18 Oct 2010 22:19:48 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010182219.o9IMJmlP087744@svn.freebsd.org> From: Jeff Roberson Date: Mon, 18 Oct 2010 22:19:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214036 - projects/ofed/head/sys/ofed/include/linux X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 22:19:48 -0000 Author: jeff Date: Mon Oct 18 22:19:47 2010 New Revision: 214036 URL: http://svn.freebsd.org/changeset/base/214036 Log: - zero sin_zero and fill in sin_family before calling ifa_ifwithaddr. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/sys/ofed/include/linux/inetdevice.h Modified: projects/ofed/head/sys/ofed/include/linux/inetdevice.h ============================================================================== --- projects/ofed/head/sys/ofed/include/linux/inetdevice.h Mon Oct 18 22:18:42 2010 (r214035) +++ projects/ofed/head/sys/ofed/include/linux/inetdevice.h Mon Oct 18 22:19:47 2010 (r214036) @@ -39,9 +39,11 @@ ip_dev_find(struct net *net, uint32_t ad struct ifnet *ifp; ifp = NULL; + memset(&sin, 0, sizeof(sin)); sin.sin_addr.s_addr = addr; sin.sin_port = 0; sin.sin_len = sizeof(sin); + sin.sin_family = AF_INET; ifa = ifa_ifwithaddr((struct sockaddr *)&sin); if (ifa) { ifp = ifa->ifa_ifp; From owner-svn-src-projects@FreeBSD.ORG Mon Oct 18 22:21:57 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88CA61065695; Mon, 18 Oct 2010 22:21:57 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5CF9B8FC12; Mon, 18 Oct 2010 22:21:57 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IMLvdH087850; Mon, 18 Oct 2010 22:21:57 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9IMLvOK087848; Mon, 18 Oct 2010 22:21:57 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010182221.o9IMLvOK087848@svn.freebsd.org> From: Jeff Roberson Date: Mon, 18 Oct 2010 22:21:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214037 - projects/ofed/head/sys/ofed/include/linux X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 22:21:57 -0000 Author: jeff Date: Mon Oct 18 22:21:57 2010 New Revision: 214037 URL: http://svn.freebsd.org/changeset/base/214037 Log: - Fill the bitmap for layers that are brought in directly from the allocator in idr_get(). Otherwise they will present as empty. - Don't forget to set il when traversing the tree in get_new_* even when we don't have to allocate a new layer. This was causing large idrs to fail on remove. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/sys/ofed/include/linux/linux_idr.c Modified: projects/ofed/head/sys/ofed/include/linux/linux_idr.c ============================================================================== --- projects/ofed/head/sys/ofed/include/linux/linux_idr.c Mon Oct 18 22:19:47 2010 (r214036) +++ projects/ofed/head/sys/ofed/include/linux/linux_idr.c Mon Oct 18 22:21:57 2010 (r214037) @@ -255,6 +255,7 @@ idr_get(struct idr *idr) return (il); } il = malloc(sizeof(*il), M_IDR, M_ZERO | M_NOWAIT); + bitmap_fill(&il->bitmap, IDR_SIZE); return (il); } @@ -307,10 +308,11 @@ idr_get_new(struct idr *idr, void *ptr, if (layer == 0) break; if (il->ary[idx] == NULL) { - il = il->ary[idx] = idr_get(idr); - if (il == NULL) + il->ary[idx] = idr_get(idr); + if (il->ary[idx] == NULL) goto out; } + il = il->ary[idx]; } /* * Allocate the leaf to the consumer. @@ -328,10 +330,12 @@ idr_get_new(struct idr *idr, void *ptr, error = 0; out: mtx_unlock(&idr->lock); +#ifdef INVARIANTS if (error == 0 && idr_find(idr, id) != ptr) { panic("idr_get_new: Failed for idr %p, id %d, ptr %p\n", idr, id, ptr); } +#endif return (error); } @@ -358,6 +362,10 @@ restart: layer++; idx >>= IDR_BITS; } + if (layer == MAX_LEVEL + 1) { + error = -ENOSPC; + goto out; + } /* * Expand the tree until there is free space at or beyond starting_id. */ @@ -407,10 +415,11 @@ restart: if (layer == 0) break; if (il->ary[idx] == NULL) { - il = il->ary[idx] = idr_get(idr); - if (il == NULL) + il->ary[idx] = idr_get(idr); + if (il->ary[idx] == NULL) goto out; } + il = il->ary[idx]; } /* * Allocate the leaf to the consumer. @@ -428,5 +437,11 @@ restart: error = 0; out: mtx_unlock(&idr->lock); +#ifdef INVARIANTS + if (error == 0 && idr_find(idr, id) != ptr) { + panic("idr_get_new_above: Failed for idr %p, id %d, ptr %p\n", + idr, id, ptr); + } +#endif return (error); } From owner-svn-src-projects@FreeBSD.ORG Mon Oct 18 22:22:38 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E133106564A; Mon, 18 Oct 2010 22:22:38 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6C7B18FC15; Mon, 18 Oct 2010 22:22:38 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IMMcx0087917; Mon, 18 Oct 2010 22:22:38 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9IMMcND087915; Mon, 18 Oct 2010 22:22:38 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010182222.o9IMMcND087915@svn.freebsd.org> From: Jeff Roberson Date: Mon, 18 Oct 2010 22:22:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214038 - projects/ofed/head/sys/ofed/include/linux X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 22:22:38 -0000 Author: jeff Date: Mon Oct 18 22:22:38 2010 New Revision: 214038 URL: http://svn.freebsd.org/changeset/base/214038 Log: - Add the cdev for misc devices. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/sys/ofed/include/linux/miscdevice.h Modified: projects/ofed/head/sys/ofed/include/linux/miscdevice.h ============================================================================== --- projects/ofed/head/sys/ofed/include/linux/miscdevice.h Mon Oct 18 22:21:57 2010 (r214037) +++ projects/ofed/head/sys/ofed/include/linux/miscdevice.h Mon Oct 18 22:22:38 2010 (r214038) @@ -32,24 +32,31 @@ #define MISC_DYNAMIC_MINOR -1 #include +#include struct miscdevice { const char *name; struct device *this_device; const struct file_operations *fops; + struct cdev *cdev; int minor; }; extern struct class miscclass; -/* - * XXX Missing cdev. - */ static inline int misc_register(struct miscdevice *misc) { misc->this_device = device_create(&miscclass, &linux_rootdev, 0, misc, misc->name); + misc->cdev = cdev_alloc(); + if (misc->cdev == NULL) + return -ENOMEM; + misc->cdev->owner = THIS_MODULE; + misc->cdev->ops = misc->fops; + kobject_set_name(&misc->cdev->kobj, misc->name); + if (cdev_add(misc->cdev, misc->this_device->devt, 1)) + return -EINVAL; return (0); } @@ -57,8 +64,9 @@ static inline int misc_deregister(struct miscdevice *misc) { device_destroy(&miscclass, misc->this_device->devt); + cdev_del(misc->cdev); + return (0); } - #endif /* _LINUX_MISCDEVICE_H_ */ From owner-svn-src-projects@FreeBSD.ORG Mon Oct 18 22:23:21 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 822F0106564A; Mon, 18 Oct 2010 22:23:21 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 561428FC13; Mon, 18 Oct 2010 22:23:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IMNLAr087979; Mon, 18 Oct 2010 22:23:21 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9IMNLYk087974; Mon, 18 Oct 2010 22:23:21 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010182223.o9IMNLYk087974@svn.freebsd.org> From: Jeff Roberson Date: Mon, 18 Oct 2010 22:23:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214039 - in projects/ofed/head/sys/ofed/include: linux net X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 22:23:21 -0000 Author: jeff Date: Mon Oct 18 22:23:21 2010 New Revision: 214039 URL: http://svn.freebsd.org/changeset/base/214039 Log: - Improve ipv6 support by bringing in opt_inet6.h and including the right headers where appropriate. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/sys/ofed/include/linux/in6.h projects/ofed/head/sys/ofed/include/linux/list.h projects/ofed/head/sys/ofed/include/linux/netdevice.h projects/ofed/head/sys/ofed/include/net/ipv6.h Modified: projects/ofed/head/sys/ofed/include/linux/in6.h ============================================================================== --- projects/ofed/head/sys/ofed/include/linux/in6.h Mon Oct 18 22:22:38 2010 (r214038) +++ projects/ofed/head/sys/ofed/include/linux/in6.h Mon Oct 18 22:23:21 2010 (r214039) @@ -29,4 +29,6 @@ #ifndef _LINUX_IN6_H_ #define _LINUX_IN6_H_ +#include "opt_inet6.h" + #endif /* _LINUX_IN6_H_ */ Modified: projects/ofed/head/sys/ofed/include/linux/list.h ============================================================================== --- projects/ofed/head/sys/ofed/include/linux/list.h Mon Oct 18 22:22:38 2010 (r214038) +++ projects/ofed/head/sys/ofed/include/linux/list.h Mon Oct 18 22:23:21 2010 (r214039) @@ -45,11 +45,18 @@ #include #include +#include #include #include #include +#include "opt_inet6.h" +#ifdef INET6 +#include +#include +#endif + #include #include Modified: projects/ofed/head/sys/ofed/include/linux/netdevice.h ============================================================================== --- projects/ofed/head/sys/ofed/include/linux/netdevice.h Mon Oct 18 22:22:38 2010 (r214038) +++ projects/ofed/head/sys/ofed/include/linux/netdevice.h Mon Oct 18 22:23:21 2010 (r214039) @@ -49,7 +49,7 @@ struct net { extern struct net init_net; -#define MAX_ADDR_LEN 32 +#define MAX_ADDR_LEN 20 #define net_device ifnet Modified: projects/ofed/head/sys/ofed/include/net/ipv6.h ============================================================================== --- projects/ofed/head/sys/ofed/include/net/ipv6.h Mon Oct 18 22:22:38 2010 (r214038) +++ projects/ofed/head/sys/ofed/include/net/ipv6.h Mon Oct 18 22:23:21 2010 (r214039) @@ -29,10 +29,13 @@ #ifndef _LINUX_NET_IPV6_H_ #define _LINUX_NET_IPV6_H_ +#include "opt_inet6.h" + #define ipv6_addr_loopback IN6_IS_ADDR_LOOPBACK #define ipv6_addr_copy(dst, src) \ memcpy((dst), (src), sizeof(struct in6_addr)) +#ifdef INET6 static inline void ipv6_ib_mc_map(const struct in6_addr *addr, const unsigned char *broadcast, char *buf) @@ -52,5 +55,6 @@ ipv6_ib_mc_map(const struct in6_addr *ad buf[9] = broadcast[9]; memcpy(&buf[10], &addr->s6_addr[6], 10); } +#endif #endif /* _LINUX_NET_IPV6_H_ */ From owner-svn-src-projects@FreeBSD.ORG Mon Oct 18 22:24:39 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6983106566B; Mon, 18 Oct 2010 22:24:39 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C50908FC12; Mon, 18 Oct 2010 22:24:39 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IMOdtY088044; Mon, 18 Oct 2010 22:24:39 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9IMOdTA088042; Mon, 18 Oct 2010 22:24:39 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010182224.o9IMOdTA088042@svn.freebsd.org> From: Jeff Roberson Date: Mon, 18 Oct 2010 22:24:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214040 - projects/ofed/head/contrib/ofed/librdmacm/src X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 22:24:40 -0000 Author: jeff Date: Mon Oct 18 22:24:39 2010 New Revision: 214040 URL: http://svn.freebsd.org/changeset/base/214040 Log: - Use the correct path for rdma_cm in /dev Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/contrib/ofed/librdmacm/src/cma.c Modified: projects/ofed/head/contrib/ofed/librdmacm/src/cma.c ============================================================================== --- projects/ofed/head/contrib/ofed/librdmacm/src/cma.c Mon Oct 18 22:23:21 2010 (r214039) +++ projects/ofed/head/contrib/ofed/librdmacm/src/cma.c Mon Oct 18 22:24:39 2010 (r214040) @@ -317,9 +317,9 @@ struct rdma_event_channel *rdma_create_e if (!channel) return NULL; - channel->fd = open("/dev/infiniband/rdma_cm", O_RDWR); + channel->fd = open("/dev/rdma_cm", O_RDWR); if (channel->fd < 0) { - printf("CMA: unable to open /dev/infiniband/rdma_cm\n"); + printf("CMA: unable to open /dev/rdma_cm\n"); goto err; } return channel; From owner-svn-src-projects@FreeBSD.ORG Mon Oct 18 22:25:34 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 492101065670; Mon, 18 Oct 2010 22:25:34 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 374B98FC12; Mon, 18 Oct 2010 22:25:34 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IMPYmF088106; Mon, 18 Oct 2010 22:25:34 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9IMPYMV088104; Mon, 18 Oct 2010 22:25:34 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010182225.o9IMPYMV088104@svn.freebsd.org> From: Jeff Roberson Date: Mon, 18 Oct 2010 22:25:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214041 - projects/ofed/head/contrib/ofed/librdmacm/examples X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 22:25:34 -0000 Author: jeff Date: Mon Oct 18 22:25:33 2010 New Revision: 214041 URL: http://svn.freebsd.org/changeset/base/214041 Log: - Don't use basename() as it's not needed and this is the non-reentrant version in a multithreaded app. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/contrib/ofed/librdmacm/examples/rping.c Modified: projects/ofed/head/contrib/ofed/librdmacm/examples/rping.c ============================================================================== --- projects/ofed/head/contrib/ofed/librdmacm/examples/rping.c Mon Oct 18 22:24:39 2010 (r214040) +++ projects/ofed/head/contrib/ofed/librdmacm/examples/rping.c Mon Oct 18 22:25:33 2010 (r214041) @@ -1088,9 +1088,9 @@ static int get_addr(char *dst, struct so static void usage(char *name) { printf("%s -s [-vVd] [-S size] [-C count] [-a addr] [-p port]\n", - basename(name)); + name); printf("%s -c [-vVd] [-S size] [-C count] -a addr [-p port]\n", - basename(name)); + name); printf("\t-c\t\tclient side\n"); printf("\t-s\t\tserver side. To bind to any address with IPv6 use -a ::0\n"); printf("\t-v\t\tdisplay ping data to stdout\n"); From owner-svn-src-projects@FreeBSD.ORG Mon Oct 18 22:28:30 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F6A1106566B; Mon, 18 Oct 2010 22:28:30 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4D5E98FC13; Mon, 18 Oct 2010 22:28:30 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IMSUnX088217; Mon, 18 Oct 2010 22:28:30 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9IMSUar088215; Mon, 18 Oct 2010 22:28:30 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010182228.o9IMSUar088215@svn.freebsd.org> From: Jeff Roberson Date: Mon, 18 Oct 2010 22:28:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214042 - projects/ofed/head/sys/ofed/drivers/infiniband/core X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 22:28:30 -0000 Author: jeff Date: Mon Oct 18 22:28:30 2010 New Revision: 214042 URL: http://svn.freebsd.org/changeset/base/214042 Log: - Fix a rtentry locking problem. - Sanitize the src_in address before passing it to ifwithaddr, annoyingly this fails if a port is specified in an sockaddr_sin. Perhaps ifwithaddr needs protocol specific comparators. The similar line for ipv6 likely does not work either and will need some adjustment. - Don't set the dev_type based on the if_type. The rest of the stack assumes it's the ARPHDR type instead. Only permit the two known types (ETHER and INFINIBAND). This code should equally support iWarp and Infiniband rdma. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/sys/ofed/drivers/infiniband/core/addr.c Modified: projects/ofed/head/sys/ofed/drivers/infiniband/core/addr.c ============================================================================== --- projects/ofed/head/sys/ofed/drivers/infiniband/core/addr.c Mon Oct 18 22:25:33 2010 (r214041) +++ projects/ofed/head/sys/ofed/drivers/infiniband/core/addr.c Mon Oct 18 22:28:30 2010 (r214042) @@ -104,7 +104,12 @@ int rdma_copy_addr(struct rdma_dev_addr int rdma_copy_addr(struct rdma_dev_addr *dev_addr, struct ifnet *dev, const unsigned char *dst_dev_addr) { - dev_addr->dev_type = dev->if_type; + if (dev->if_type == IFT_INFINIBAND) + dev_addr->dev_type = ARPHRD_INFINIBAND; + else if (dev->if_type == IFT_ETHER) + dev_addr->dev_type = ARPHRD_ETHER; + else + dev_addr->dev_type = 0; memcpy(dev_addr->src_dev_addr, IF_LLADDR(dev), dev->if_addrlen); memcpy(dev_addr->broadcast, __DECONST(char *, dev->if_broadcastaddr), dev->if_addrlen); @@ -144,6 +149,7 @@ int rdma_translate_ip(struct sockaddr *a #if defined(INET6) case AF_INET6: +#ifdef __linux__ read_lock(&dev_base_lock); for_each_netdev(&init_net, dev) { if (ipv6_chk_addr(&init_net, @@ -154,6 +160,7 @@ int rdma_translate_ip(struct sockaddr *a } } read_unlock(&dev_base_lock); +#endif break; #endif } @@ -311,18 +318,18 @@ static int addr6_resolve(struct sockaddr #else #include -#ifdef INET6 -#include -#endif static int addr_resolve(struct sockaddr *src_in, struct sockaddr *dst_in, struct rdma_dev_addr *addr) { + struct sockaddr_in *sin; + struct sockaddr_in6 *sin6; struct ifaddr *ifa; struct ifnet *ifp; struct llentry *lle; struct rtentry *rte; + short port; u_char edst[MAX_ADDR_LEN]; int multi; int bcast; @@ -334,26 +341,35 @@ static int addr_resolve(struct sockaddr */ multi = 0; bcast = 0; + sin = NULL; + sin6 = NULL; ifp = NULL; switch (dst_in->sa_family) { case AF_INET: - if (((struct sockaddr_in *)dst_in)->sin_addr.s_addr == - INADDR_BROADCAST) + sin = (struct sockaddr_in *)dst_in; + if (sin->sin_addr.s_addr == INADDR_BROADCAST) bcast = 1; - if (IN_MULTICAST(( - (struct sockaddr_in *)dst_in)->sin_addr.s_addr)) + if (IN_MULTICAST(ntohl(sin->sin_addr.s_addr))) multi = 1; - if (((struct sockaddr_in *)src_in)->sin_addr.s_addr == - INADDR_ANY) + sin = (struct sockaddr_in *)src_in; + if (sin->sin_addr.s_addr != INADDR_ANY) { + /* + * Address comparison fails if the port is set + * cache it here to be restored later. + */ + port = sin->sin_port; + sin->sin_port = 0; + memset(&sin->sin_zero, 0, sizeof(sin->sin_zero)); + } else src_in = NULL; break; #ifdef INET6 case AF_INET6: - if (IN6_IS_ADDR_MULTICAST( - &((struct sockaddr_in6 *)dst_in)->sin6_addr)) + sin6 = (struct sockaddr_in6 *)dst_in; + if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr)) multi = 1; - if (IN6_IS_ADDR_UNSPECIFIED( - &((struct sockaddr_in6 *)src_in)->sin6_addr)) + sin6 = (struct sockaddr_in6 *)src_in; + if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) src_in = NULL; break; #endif @@ -365,7 +381,9 @@ static int addr_resolve(struct sockaddr * that it is a local interface. */ if (src_in) { - ifa = ifa_ifwithdstaddr(src_in); + ifa = ifa_ifwithaddr(src_in); + if (sin) + sin->sin_port = port; if (ifa == NULL) return -ENETUNREACH; ifp = ifa->ifa_ifp; @@ -378,8 +396,8 @@ static int addr_resolve(struct sockaddr */ rte = rtalloc1(dst_in, 1, 0); if (rte == NULL || rte->rt_ifp == NULL || !RT_LINK_IS_UP(rte->rt_ifp)) { - if (rte) - RTFREE(rte); + if (rte) + RTFREE_LOCKED(rte); return -EHOSTUNREACH; } /* @@ -387,11 +405,12 @@ static int addr_resolve(struct sockaddr * requested interface return unreachable. */ if (multi || bcast) { - RTFREE(rte); + RTFREE_LOCKED(rte); } else if (ifp && ifp != rte->rt_ifp) { - RTFREE(rte); + RTFREE_LOCKED(rte); return -ENETUNREACH; - } + } else + RT_UNLOCK(rte); if (ifp == NULL) ifp = rte->rt_ifp; mcast: From owner-svn-src-projects@FreeBSD.ORG Mon Oct 18 22:29:37 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E16CA106564A; Mon, 18 Oct 2010 22:29:37 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B53D88FC0C; Mon, 18 Oct 2010 22:29:37 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IMTbfM088283; Mon, 18 Oct 2010 22:29:37 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9IMTbE6088281; Mon, 18 Oct 2010 22:29:37 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010182229.o9IMTbE6088281@svn.freebsd.org> From: Jeff Roberson Date: Mon, 18 Oct 2010 22:29:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214043 - projects/ofed/head/sys/ofed/drivers/infiniband/core X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 22:29:38 -0000 Author: jeff Date: Mon Oct 18 22:29:37 2010 New Revision: 214043 URL: http://svn.freebsd.org/changeset/base/214043 Log: - Improve IPV6 support in cma by using the correct defines and BSD comparison functions. This may be a candidate for revision later with a thunking layer. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/sys/ofed/drivers/infiniband/core/cma.c Modified: projects/ofed/head/sys/ofed/drivers/infiniband/core/cma.c ============================================================================== --- projects/ofed/head/sys/ofed/drivers/infiniband/core/cma.c Mon Oct 18 22:28:30 2010 (r214042) +++ projects/ofed/head/sys/ofed/drivers/infiniband/core/cma.c Mon Oct 18 22:29:37 2010 (r214043) @@ -1265,6 +1265,7 @@ static void cma_set_compare_data(enum rd cma_mask->dst_addr.ip4.addr = htonl(~0); } break; +#ifdef INET6 case AF_INET6: ip6_addr = ((struct sockaddr_in6 *) addr)->sin6_addr; if (ps == RDMA_PS_SDP) { @@ -1281,6 +1282,7 @@ static void cma_set_compare_data(enum rd sizeof cma_mask->dst_addr.ip6); } break; +#endif default: break; } @@ -1373,7 +1375,7 @@ static int iw_conn_req_handler(struct iw mutex_lock_nested(&conn_id->handler_mutex, SINGLE_DEPTH_NESTING); conn_id->state = CMA_CONNECT; - dev = ip_dev_find(&init_net, iw_event->local_addr.sin_addr.s_addr); + dev = ip_dev_find(NULL, iw_event->local_addr.sin_addr.s_addr); if (!dev) { ret = -EADDRNOTAVAIL; mutex_unlock(&conn_id->handler_mutex); @@ -2293,14 +2295,18 @@ out: static int cma_check_linklocal(struct rdma_dev_addr *dev_addr, struct sockaddr *addr) { -#if defined(CONFIG_IPv6) || defined(CONFIG_IPV6_MODULE) +#if defined(INET6) struct sockaddr_in6 *sin6; if (addr->sa_family != AF_INET6) return 0; sin6 = (struct sockaddr_in6 *) addr; +#ifdef __linux__ if ((ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LINKLOCAL) && +#else + if (IN6_IS_SCOPE_LINKLOCAL(&sin6->sin6_addr) && +#endif !sin6->sin6_scope_id) return -EINVAL; From owner-svn-src-projects@FreeBSD.ORG Mon Oct 18 22:30:58 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C84B1065670; Mon, 18 Oct 2010 22:30:58 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8B3E78FC1A; Mon, 18 Oct 2010 22:30:58 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IMUwHH088385; Mon, 18 Oct 2010 22:30:58 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9IMUwUs088383; Mon, 18 Oct 2010 22:30:58 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010182230.o9IMUwUs088383@svn.freebsd.org> From: Jeff Roberson Date: Mon, 18 Oct 2010 22:30:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214044 - projects/ofed/head/etc/mtree X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 22:30:58 -0000 Author: jeff Date: Mon Oct 18 22:30:58 2010 New Revision: 214044 URL: http://svn.freebsd.org/changeset/base/214044 Log: - Add the rdma include directory. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/etc/mtree/BSD.include.dist Modified: projects/ofed/head/etc/mtree/BSD.include.dist ============================================================================== --- projects/ofed/head/etc/mtree/BSD.include.dist Mon Oct 18 22:29:37 2010 (r214043) +++ projects/ofed/head/etc/mtree/BSD.include.dist Mon Oct 18 22:30:58 2010 (r214044) @@ -273,6 +273,8 @@ .. protocols .. + rdma + .. readline .. rpc From owner-svn-src-projects@FreeBSD.ORG Tue Oct 19 20:14:33 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2117D106564A; Tue, 19 Oct 2010 20:14:33 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0E2438FC16; Tue, 19 Oct 2010 20:14:33 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9JKEX0j025679; Tue, 19 Oct 2010 20:14:33 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9JKEWmx025674; Tue, 19 Oct 2010 20:14:32 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010192014.o9JKEWmx025674@svn.freebsd.org> From: Dimitry Andric Date: Tue, 19 Oct 2010 20:14:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214074 - in projects/binutils-2.17/contrib/binutils: bfd gas include/opcode ld opcodes X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2010 20:14:33 -0000 Author: dim Date: Tue Oct 19 20:14:32 2010 New Revision: 214074 URL: http://svn.freebsd.org/changeset/base/214074 Log: Merge ^vendor/binutils/dist@214033 into contrib/binutils. The change made to bfd/elf.c in upstream revision 1.217.4.3 (which was a revert of an earlier change), caused objcopy on powerpc to fail to copy debug info from kernel modules. This had to be fixed by applying the diff from upstream revision 1.243 on top of it. Modified: projects/binutils-2.17/contrib/binutils/bfd/ChangeLog projects/binutils-2.17/contrib/binutils/bfd/config.bfd projects/binutils-2.17/contrib/binutils/bfd/configure projects/binutils-2.17/contrib/binutils/bfd/configure.in projects/binutils-2.17/contrib/binutils/bfd/elf.c projects/binutils-2.17/contrib/binutils/bfd/elf64-sparc.c projects/binutils-2.17/contrib/binutils/bfd/elflink.c projects/binutils-2.17/contrib/binutils/bfd/targets.c projects/binutils-2.17/contrib/binutils/bfd/version.h projects/binutils-2.17/contrib/binutils/gas/ChangeLog projects/binutils-2.17/contrib/binutils/include/opcode/ChangeLog projects/binutils-2.17/contrib/binutils/include/opcode/i386.h projects/binutils-2.17/contrib/binutils/ld/ChangeLog projects/binutils-2.17/contrib/binutils/opcodes/ChangeLog projects/binutils-2.17/contrib/binutils/opcodes/i386-dis.c projects/binutils-2.17/contrib/binutils/opcodes/ppc-opc.c Directory Properties: projects/binutils-2.17/contrib/binutils/ (props changed) Modified: projects/binutils-2.17/contrib/binutils/bfd/ChangeLog ============================================================================== --- projects/binutils-2.17/contrib/binutils/bfd/ChangeLog Tue Oct 19 20:05:25 2010 (r214073) +++ projects/binutils-2.17/contrib/binutils/bfd/ChangeLog Tue Oct 19 20:14:32 2010 (r214074) @@ -1,3 +1,46 @@ +2005-01-05 Eric Botcazou + + * elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows + from STABS debugging sections again. + +2004-10-16 H.J. Lu + + * elflink.c (elf_link_add_object_symbols): Also clear + _cooked_size for warning sections. + +2004-09-07 Eric Botcazou + + Merge from mainline: + 2004-08-31 Eric Botcazou + * elf.c (special_sections): Add .gnu.linkonce.b modelled on .bss. + + 2004-06-09 Alexandre Oliva + * elflink.c (elf_sort_symbol): Compare section id, not pointers. + (elf_link_add_object_symbols): Likewise. + +2004-08-10 Daniel Jacobowitz + + * elf.c (assign_file_positions_except_relocs): Revert unintended + change from 2004-04-08. + +2004-05-28 Jason Thorpe + + * config.bfd (hppa*-*-netbsd*): Set targ_defvec to + bfd_elf32_hppa_nbsd_vec. Add bfd_elf32_hppa_linux_vec + to targ_selvecs. + * configure.in (bfd_elf32_hppa_nbsd_vec): Add case. + * configure: Regenerate. + * elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd" + case that accepts OSABI=NetBSD and OSABI=SysV. + (elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to + the base of .got or .data (if .got does not exist). + (elf32_hppa_post_process_headers): For elf32-hppa-netbsd, + set OSABI=NetBSD. + (TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case. + (TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case. + * targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration. + (_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec. + 2004-05-17 Daniel Jacobowitz * configure.in: Mark unreleased for post-2.15 snapshots. Modified: projects/binutils-2.17/contrib/binutils/bfd/config.bfd ============================================================================== --- projects/binutils-2.17/contrib/binutils/bfd/config.bfd Tue Oct 19 20:05:25 2010 (r214073) +++ projects/binutils-2.17/contrib/binutils/bfd/config.bfd Tue Oct 19 20:14:32 2010 (r214074) @@ -375,10 +375,14 @@ case "${targ}" in ;; #endif - hppa*-*-linux-gnu* | hppa*-*-netbsd*) + hppa*-*-linux-gnu*) targ_defvec=bfd_elf32_hppa_linux_vec targ_selvecs=bfd_elf32_hppa_vec ;; + hppa*-*-netbsd*) + targ_defvec=bfd_elf32_hppa_nbsd_vec + targ_selvecs="bfd_elf32_hppa_vec bfd_elf32_hppa_linux_vec" + ;; hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-rtems* | hppa*-*-openbsd*) targ_defvec=bfd_elf32_hppa_vec targ_selvecs=bfd_elf32_hppa_linux_vec Modified: projects/binutils-2.17/contrib/binutils/bfd/configure ============================================================================== --- projects/binutils-2.17/contrib/binutils/bfd/configure Tue Oct 19 20:05:25 2010 (r214073) +++ projects/binutils-2.17/contrib/binutils/bfd/configure Tue Oct 19 20:14:32 2010 (r214074) @@ -3327,7 +3327,7 @@ EOF fi -for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h +for ac_hdr in unistd.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 @@ -3459,24 +3459,11 @@ else #include #include -#if HAVE_SYS_TYPES_H -# include -#endif - -#if HAVE_STDLIB_H -# include -#endif - -#if HAVE_SYS_STAT_H -# include -#endif - -#if HAVE_UNISTD_H -# include -#endif - /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE +# ifdef HAVE_UNISTD_H +# include +# endif /* Assume that all systems that can run configure have sys/param.h. */ # ifndef HAVE_SYS_PARAM_H @@ -3584,7 +3571,7 @@ main() } EOF -if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_mmap_fixed_mapped=yes else @@ -3612,17 +3599,17 @@ unistd.h values.h sys/param.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3616: checking for $ac_hdr" >&5 +echo "configure:3603: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3652,12 +3639,12 @@ done __argz_count __argz_stringify __argz_next do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3656: checking for $ac_func" >&5 +echo "configure:3643: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3709,12 +3696,12 @@ done for ac_func in stpcpy do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3713: checking for $ac_func" >&5 +echo "configure:3700: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3771,19 +3758,19 @@ EOF if test $ac_cv_header_locale_h = yes; then echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 -echo "configure:3775: checking for LC_MESSAGES" >&5 +echo "configure:3762: checking for LC_MESSAGES" >&5 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { return LC_MESSAGES ; return 0; } EOF -if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* am_cv_val_LC_MESSAGES=yes else @@ -3804,7 +3791,7 @@ EOF fi fi echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 -echo "configure:3808: checking whether NLS is requested" >&5 +echo "configure:3795: checking whether NLS is requested" >&5 # Check whether --enable-nls or --disable-nls was given. if test "${enable_nls+set}" = set; then enableval="$enable_nls" @@ -3824,7 +3811,7 @@ fi EOF echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 -echo "configure:3828: checking whether included gettext is requested" >&5 +echo "configure:3815: checking whether included gettext is requested" >&5 # Check whether --with-included-gettext or --without-included-gettext was given. if test "${with_included_gettext+set}" = set; then withval="$with_included_gettext" @@ -3843,17 +3830,17 @@ fi ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 -echo "configure:3847: checking for libintl.h" >&5 +echo "configure:3834: checking for libintl.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3870,19 +3857,19 @@ fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 -echo "configure:3874: checking for gettext in libc" >&5 +echo "configure:3861: checking for gettext in libc" >&5 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { return (int) gettext ("") ; return 0; } EOF -if { (eval echo configure:3886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gt_cv_func_gettext_libc=yes else @@ -3898,7 +3885,7 @@ echo "$ac_t""$gt_cv_func_gettext_libc" 1 if test "$gt_cv_func_gettext_libc" != "yes"; then echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 -echo "configure:3902: checking for bindtextdomain in -lintl" >&5 +echo "configure:3889: checking for bindtextdomain in -lintl" >&5 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3906,7 +3893,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3933,19 +3920,19 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 -echo "configure:3937: checking for gettext in libintl" >&5 +echo "configure:3924: checking for gettext in libintl" >&5 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gt_cv_func_gettext_libintl=yes else @@ -3973,7 +3960,7 @@ EOF # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3977: checking for $ac_word" >&5 +echo "configure:3964: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4007,12 +3994,12 @@ fi for ac_func in dcgettext do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4011: checking for $ac_func" >&5 +echo "configure:3998: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4062,7 +4049,7 @@ done # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4066: checking for $ac_word" >&5 +echo "configure:4053: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4098,7 +4085,7 @@ fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4102: checking for $ac_word" >&5 +echo "configure:4089: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4130,7 +4117,7 @@ else fi cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* CATOBJEXT=.gmo DATADIRNAME=share @@ -4170,7 +4157,7 @@ fi # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4174: checking for $ac_word" >&5 +echo "configure:4161: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4204,7 +4191,7 @@ fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4208: checking for $ac_word" >&5 +echo "configure:4195: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4240,7 +4227,7 @@ fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4244: checking for $ac_word" >&5 +echo "configure:4231: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4330,7 +4317,7 @@ fi LINGUAS= else echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 -echo "configure:4334: checking for catalogs to be installed" >&5 +echo "configure:4321: checking for catalogs to be installed" >&5 NEW_LINGUAS= for lang in ${LINGUAS=$ALL_LINGUAS}; do case "$ALL_LINGUAS" in @@ -4358,17 +4345,17 @@ echo "configure:4334: checking for catal if test "$CATOBJEXT" = ".cat"; then ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 -echo "configure:4362: checking for linux/version.h" >&5 +echo "configure:4349: checking for linux/version.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4446,7 +4433,7 @@ fi # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:4450: checking for a BSD compatible install" >&5 +echo "configure:4437: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4506,19 +4493,19 @@ BFD_HOST_64_BIT= BFD_HOST_U_64_BIT= echo $ac_n "checking for long long""... $ac_c" 1>&6 -echo "configure:4510: checking for long long" >&5 +echo "configure:4497: checking for long long" >&5 if eval "test \"`echo '$''{'bfd_cv_has_long_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_has_long_long=yes else @@ -4534,13 +4521,13 @@ echo "$ac_t""$bfd_cv_has_long_long" 1>&6 if test $bfd_cv_has_long_long = yes; then BFD_HOST_LONG_LONG=1 echo $ac_n "checking size of long long""... $ac_c" 1>&6 -echo "configure:4538: checking size of long long" >&5 +echo "configure:4525: checking size of long long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. cat > conftest.$ac_ext < @@ -4550,7 +4537,7 @@ int main() { switch (0) case 0: case (sizeof (long long) == $ac_size):; ; return 0; } EOF -if { (eval echo configure:4554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_sizeof_long_long=$ac_size else @@ -4575,13 +4562,13 @@ EOF fi echo $ac_n "checking size of long""... $ac_c" 1>&6 -echo "configure:4579: checking size of long" >&5 +echo "configure:4566: checking size of long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. cat > conftest.$ac_ext < @@ -4591,7 +4578,7 @@ int main() { switch (0) case 0: case (sizeof (long) == $ac_size):; ; return 0; } EOF -if { (eval echo configure:4595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_sizeof_long=$ac_size else @@ -4649,7 +4636,7 @@ if test "x$cross_compiling" = "xno"; the EXEEXT_FOR_BUILD='$(EXEEXT)' else echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6 -echo "configure:4653: checking for build system executable suffix" >&5 +echo "configure:4640: checking for build system executable suffix" >&5 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4677,17 +4664,17 @@ for ac_hdr in stddef.h string.h strings. do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4681: checking for $ac_hdr" >&5 +echo "configure:4668: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4717,17 +4704,17 @@ for ac_hdr in fcntl.h sys/file.h sys/tim do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4721: checking for $ac_hdr" >&5 +echo "configure:4708: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4754,12 +4741,12 @@ fi done echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:4758: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:4745: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -4768,7 +4755,7 @@ int main() { struct tm *tp; ; return 0; } EOF -if { (eval echo configure:4772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -4793,12 +4780,12 @@ for ac_hdr in dirent.h sys/ndir.h sys/di do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 -echo "configure:4797: checking for $ac_hdr that defines DIR" >&5 +echo "configure:4784: checking for $ac_hdr that defines DIR" >&5 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include <$ac_hdr> @@ -4806,7 +4793,7 @@ int main() { DIR *dirp = 0; ; return 0; } EOF -if { (eval echo configure:4810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=yes" else @@ -4831,7 +4818,7 @@ done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 -echo "configure:4835: checking for opendir in -ldir" >&5 +echo "configure:4822: checking for opendir in -ldir" >&5 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4839,7 +4826,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldir $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4872,7 +4859,7 @@ fi else echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 -echo "configure:4876: checking for opendir in -lx" >&5 +echo "configure:4863: checking for opendir in -lx" >&5 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4880,7 +4867,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lx $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4916,12 +4903,12 @@ fi for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4920: checking for $ac_func" >&5 +echo "configure:4907: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4971,12 +4958,12 @@ done for ac_func in strtoull do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4975: checking for $ac_func" >&5 +echo "configure:4962: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5034,12 +5021,12 @@ EOF esac echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6 -echo "configure:5038: checking whether strstr must be declared" >&5 +echo "configure:5025: checking whether strstr must be declared" >&5 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -5060,7 +5047,7 @@ int main() { char *(*pfn) = (char *(*)) strstr ; return 0; } EOF -if { (eval echo configure:5064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_decl_needed_strstr=no else @@ -5081,12 +5068,12 @@ EOF fi echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6 -echo "configure:5085: checking whether malloc must be declared" >&5 +echo "configure:5072: checking whether malloc must be declared" >&5 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -5107,7 +5094,7 @@ int main() { char *(*pfn) = (char *(*)) malloc ; return 0; } EOF -if { (eval echo configure:5111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_decl_needed_malloc=no else @@ -5128,12 +5115,12 @@ EOF fi echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6 -echo "configure:5132: checking whether realloc must be declared" >&5 +echo "configure:5119: checking whether realloc must be declared" >&5 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -5154,7 +5141,7 @@ int main() { char *(*pfn) = (char *(*)) realloc ; return 0; } EOF -if { (eval echo configure:5158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_decl_needed_realloc=no else @@ -5175,12 +5162,12 @@ EOF fi echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6 -echo "configure:5179: checking whether free must be declared" >&5 +echo "configure:5166: checking whether free must be declared" >&5 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -5201,7 +5188,7 @@ int main() { char *(*pfn) = (char *(*)) free ; return 0; } EOF -if { (eval echo configure:5205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_decl_needed_free=no else @@ -5222,12 +5209,12 @@ EOF fi echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6 -echo "configure:5226: checking whether getenv must be declared" >&5 +echo "configure:5213: checking whether getenv must be declared" >&5 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -5248,7 +5235,7 @@ int main() { char *(*pfn) = (char *(*)) getenv ; return 0; } EOF -if { (eval echo configure:5252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_decl_needed_getenv=no else @@ -5424,16 +5411,16 @@ if test "${target}" = "${host}"; then # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE # have c_impl as a member of struct core_dumpx echo $ac_n "checking for c_impl in struct core_dumpx""... $ac_c" 1>&6 -echo "configure:5428: checking for c_impl in struct core_dumpx" >&5 +echo "configure:5415: checking for c_impl in struct core_dumpx" >&5 cat > conftest.$ac_ext < int main() { struct core_dumpx c; c.c_impl = 0; ; return 0; } EOF -if { (eval echo configure:5437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF #define HAVE_ST_C_IMPL 1 @@ -5510,17 +5497,17 @@ rm -f conftest* do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5514: checking for $ac_hdr" >&5 +echo "configure:5501: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5548,12 +5535,12 @@ done if test "$ac_cv_header_sys_procfs_h" = yes; then echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6 -echo "configure:5552: checking for prstatus_t in sys/procfs.h" >&5 +echo "configure:5539: checking for prstatus_t in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_have_sys_procfs_type_prstatus_t=yes else @@ -5584,12 +5571,12 @@ EOF echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6 -echo "configure:5588: checking for prstatus32_t in sys/procfs.h" >&5 +echo "configure:5575: checking for prstatus32_t in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_have_sys_procfs_type_prstatus32_t=yes else @@ -5620,12 +5607,12 @@ EOF echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6 -echo "configure:5624: checking for prstatus_t.pr_who in sys/procfs.h" >&5 +echo "configure:5611: checking for prstatus_t.pr_who in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes else @@ -5656,12 +5643,12 @@ EOF echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6 -echo "configure:5660: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 +echo "configure:5647: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes else @@ -5692,12 +5679,12 @@ EOF echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6 -echo "configure:5696: checking for pstatus_t in sys/procfs.h" >&5 +echo "configure:5683: checking for pstatus_t in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FEE61065672; Tue, 19 Oct 2010 20:17:17 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4EAC18FC17; Tue, 19 Oct 2010 20:17:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9JKHHwT025790; Tue, 19 Oct 2010 20:17:17 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9JKHHT8025787; Tue, 19 Oct 2010 20:17:17 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010192017.o9JKHHT8025787@svn.freebsd.org> From: Dimitry Andric Date: Tue, 19 Oct 2010 20:17:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214075 - in projects/binutils-2.17/gnu/usr.bin/binutils: . libbfd X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2010 20:17:17 -0000 Author: dim Date: Tue Oct 19 20:17:17 2010 New Revision: 214075 URL: http://svn.freebsd.org/changeset/base/214075 Log: Update the BFD and binutils version defines. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/Makefile.inc0 projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile Modified: projects/binutils-2.17/gnu/usr.bin/binutils/Makefile.inc0 ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/Makefile.inc0 Tue Oct 19 20:14:32 2010 (r214074) +++ projects/binutils-2.17/gnu/usr.bin/binutils/Makefile.inc0 Tue Oct 19 20:17:17 2010 (r214075) @@ -4,7 +4,7 @@ # use the normal "Makefile.inc" mechanism, because we need some of these # definitions before the sub-Makefile is processed. -VERSION= "2.15 [FreeBSD] 2004-05-23" +VERSION= "2.15 [FreeBSD] 2005-06-08" TARGET_ARCH?= ${MACHINE_ARCH} .if ${TARGET_ARCH} == "amd64" Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile Tue Oct 19 20:14:32 2010 (r214074) +++ projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile Tue Oct 19 20:17:17 2010 (r214075) @@ -52,7 +52,7 @@ CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECT # XXX:DEO should grab BFD_VERSION_DATE from ${VERSION}... bfdver.h: Makefile echo '#define BFD_VERSION 215000000' > ${.TARGET} - echo '#define BFD_VERSION_DATE 20040517' >> ${.TARGET} + echo '#define BFD_VERSION_DATE 20050317' >> ${.TARGET} echo '#define BFD_VERSION_STRING ${VERSION}' >> ${.TARGET} targmatch.h: targmatch.sed config.bfd From owner-svn-src-projects@FreeBSD.ORG Tue Oct 19 21:02:06 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18BF610656A5; Tue, 19 Oct 2010 21:02:06 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 039608FC0A; Tue, 19 Oct 2010 21:02:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9JL255q027033; Tue, 19 Oct 2010 21:02:05 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9JL255v027000; Tue, 19 Oct 2010 21:02:05 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010192102.o9JL255v027000@svn.freebsd.org> From: Dimitry Andric Date: Tue, 19 Oct 2010 21:02:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214078 - in projects/binutils-2.17: contrib/bsnmp/lib contrib/netcat contrib/top include lib/libc/include lib/libradius lib/libthr lib/libthr/thread libexec/bootpd sbin/camcontrol sbin... X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2010 21:02:06 -0000 Author: dim Date: Tue Oct 19 21:02:05 2010 New Revision: 214078 URL: http://svn.freebsd.org/changeset/base/214078 Log: Sync: merge r213992 through r214076 from ^/head. Added: projects/binutils-2.17/sys/net80211/ieee80211_ratectl_none.c - copied unchanged from r214075, head/sys/net80211/ieee80211_ratectl_none.c projects/binutils-2.17/sys/nfs/nfs_mountcommon.h - copied unchanged from r214075, head/sys/nfs/nfs_mountcommon.h Modified: projects/binutils-2.17/contrib/bsnmp/lib/bsnmplib.3 projects/binutils-2.17/contrib/netcat/nc.1 projects/binutils-2.17/contrib/netcat/netcat.c projects/binutils-2.17/contrib/netcat/socks.c projects/binutils-2.17/include/pthread.h projects/binutils-2.17/lib/libc/include/namespace.h projects/binutils-2.17/lib/libc/include/un-namespace.h projects/binutils-2.17/lib/libradius/Makefile projects/binutils-2.17/lib/libthr/pthread.map projects/binutils-2.17/lib/libthr/thread/thr_private.h projects/binutils-2.17/lib/libthr/thread/thr_rwlock.c projects/binutils-2.17/lib/libthr/thread/thr_rwlockattr.c projects/binutils-2.17/libexec/bootpd/bootptab.5 projects/binutils-2.17/sbin/camcontrol/camcontrol.8 projects/binutils-2.17/sbin/camcontrol/camcontrol.c projects/binutils-2.17/sbin/routed/routed.8 projects/binutils-2.17/sbin/setkey/setkey.8 projects/binutils-2.17/sbin/sunlabel/sunlabel.8 projects/binutils-2.17/share/man/man4/lagg.4 projects/binutils-2.17/share/man/man4/man4.arm/mge.4 projects/binutils-2.17/share/man/man4/man4.i386/ep.4 projects/binutils-2.17/share/man/man4/man4.i386/mse.4 projects/binutils-2.17/share/man/man4/man4.powerpc/tsec.4 projects/binutils-2.17/share/man/man4/nxge.4 projects/binutils-2.17/share/man/man5/freebsd-update.conf.5 projects/binutils-2.17/share/man/man9/Makefile projects/binutils-2.17/share/man/man9/vrele.9 projects/binutils-2.17/share/man/man9/zone.9 projects/binutils-2.17/sys/arm/mv/mv_sata.c projects/binutils-2.17/sys/conf/files projects/binutils-2.17/sys/dev/acpica/acpi.c projects/binutils-2.17/sys/dev/acpica/acpi_if.m projects/binutils-2.17/sys/dev/acpica/acpi_pci.c projects/binutils-2.17/sys/dev/ata/ata-all.c projects/binutils-2.17/sys/dev/ata/ata-all.h projects/binutils-2.17/sys/dev/ata/ata-pci.c projects/binutils-2.17/sys/dev/ata/ata-sata.c projects/binutils-2.17/sys/dev/ata/chipsets/ata-ahci.c projects/binutils-2.17/sys/dev/ata/chipsets/ata-intel.c projects/binutils-2.17/sys/dev/ata/chipsets/ata-marvell.c projects/binutils-2.17/sys/dev/ata/chipsets/ata-nvidia.c projects/binutils-2.17/sys/dev/ata/chipsets/ata-promise.c projects/binutils-2.17/sys/dev/ata/chipsets/ata-siliconimage.c projects/binutils-2.17/sys/dev/ata/chipsets/ata-via.c projects/binutils-2.17/sys/dev/firewire/fwohci.c projects/binutils-2.17/sys/dev/if_ndis/if_ndis.c projects/binutils-2.17/sys/dev/md/md.c projects/binutils-2.17/sys/dev/mii/brgphy.c projects/binutils-2.17/sys/dev/pci/pci.c projects/binutils-2.17/sys/fs/msdosfs/msdosfs_lookup.c projects/binutils-2.17/sys/fs/nfsclient/nfs_clnode.c projects/binutils-2.17/sys/fs/nfsclient/nfs_clvfsops.c projects/binutils-2.17/sys/fs/nfsclient/nfs_clvnops.c projects/binutils-2.17/sys/fs/nfsclient/nfsmount.h projects/binutils-2.17/sys/geom/geom_dev.c projects/binutils-2.17/sys/kern/kern_resource.c projects/binutils-2.17/sys/kern/kern_shutdown.c projects/binutils-2.17/sys/kern/vfs_mount.c projects/binutils-2.17/sys/kern/vfs_mountroot.c projects/binutils-2.17/sys/modules/mps/Makefile projects/binutils-2.17/sys/modules/wlan/Makefile projects/binutils-2.17/sys/net80211/ieee80211_ratectl.c projects/binutils-2.17/sys/net80211/ieee80211_ratectl.h projects/binutils-2.17/sys/netinet/libalias/libalias.3 projects/binutils-2.17/sys/nfs/nfs_lock.c projects/binutils-2.17/sys/nfs/nfs_lock.h projects/binutils-2.17/sys/nfsclient/nfs.h projects/binutils-2.17/sys/nfsclient/nfs_bio.c projects/binutils-2.17/sys/nfsclient/nfs_nfsiod.c projects/binutils-2.17/sys/nfsclient/nfs_node.c projects/binutils-2.17/sys/nfsclient/nfs_vfsops.c projects/binutils-2.17/sys/nfsclient/nfs_vnops.c projects/binutils-2.17/sys/nfsclient/nfsmount.h projects/binutils-2.17/sys/nfsclient/nfsnode.h projects/binutils-2.17/sys/nfsserver/nfs_serv.c projects/binutils-2.17/sys/nlm/nlm_advlock.c projects/binutils-2.17/sys/nlm/nlm_prot_impl.c projects/binutils-2.17/sys/sparc64/include/tick.h projects/binutils-2.17/sys/sparc64/sparc64/mp_machdep.c projects/binutils-2.17/sys/sparc64/sparc64/tick.c projects/binutils-2.17/sys/sys/systm.h projects/binutils-2.17/sys/vm/uma_core.c projects/binutils-2.17/usr.bin/calendar/calendars/calendar.freebsd projects/binutils-2.17/usr.bin/nc/Makefile projects/binutils-2.17/usr.bin/uudecode/uudecode.c projects/binutils-2.17/usr.sbin/apmd/apmd.8 projects/binutils-2.17/usr.sbin/gpioctl/gpioctl.8 projects/binutils-2.17/usr.sbin/pc-sysinstall/backend-query/list-tzones.sh projects/binutils-2.17/usr.sbin/pc-sysinstall/backend-query/sys-mem.sh projects/binutils-2.17/usr.sbin/ppp/ipcp.c Directory Properties: projects/binutils-2.17/ (props changed) projects/binutils-2.17/cddl/contrib/opensolaris/ (props changed) projects/binutils-2.17/contrib/bind9/ (props changed) projects/binutils-2.17/contrib/binutils/ (props changed) projects/binutils-2.17/contrib/bzip2/ (props changed) projects/binutils-2.17/contrib/ee/ (props changed) projects/binutils-2.17/contrib/expat/ (props changed) projects/binutils-2.17/contrib/file/ (props changed) projects/binutils-2.17/contrib/gdb/ (props changed) projects/binutils-2.17/contrib/gdtoa/ (props changed) projects/binutils-2.17/contrib/gnu-sort/ (props changed) projects/binutils-2.17/contrib/groff/ (props changed) projects/binutils-2.17/contrib/less/ (props changed) projects/binutils-2.17/contrib/libpcap/ (props changed) projects/binutils-2.17/contrib/llvm/ (props changed) projects/binutils-2.17/contrib/llvm/tools/clang/ (props changed) projects/binutils-2.17/contrib/ncurses/ (props changed) projects/binutils-2.17/contrib/netcat/ (props changed) projects/binutils-2.17/contrib/ntp/ (props changed) projects/binutils-2.17/contrib/one-true-awk/ (props changed) projects/binutils-2.17/contrib/openbsm/ (props changed) projects/binutils-2.17/contrib/openpam/ (props changed) projects/binutils-2.17/contrib/pf/ (props changed) projects/binutils-2.17/contrib/sendmail/ (props changed) projects/binutils-2.17/contrib/tcpdump/ (props changed) projects/binutils-2.17/contrib/tcsh/ (props changed) projects/binutils-2.17/contrib/top/ (props changed) projects/binutils-2.17/contrib/top/install-sh (props changed) projects/binutils-2.17/contrib/tzcode/stdtime/ (props changed) projects/binutils-2.17/contrib/tzcode/zic/ (props changed) projects/binutils-2.17/contrib/tzdata/ (props changed) projects/binutils-2.17/contrib/wpa/ (props changed) projects/binutils-2.17/contrib/xz/ (props changed) projects/binutils-2.17/crypto/openssh/ (props changed) projects/binutils-2.17/crypto/openssl/ (props changed) projects/binutils-2.17/lib/libc/ (props changed) projects/binutils-2.17/lib/libc/stdtime/ (props changed) projects/binutils-2.17/lib/libutil/ (props changed) projects/binutils-2.17/lib/libz/ (props changed) projects/binutils-2.17/sbin/ (props changed) projects/binutils-2.17/sbin/ipfw/ (props changed) projects/binutils-2.17/share/mk/bsd.arch.inc.mk (props changed) projects/binutils-2.17/share/zoneinfo/ (props changed) projects/binutils-2.17/sys/ (props changed) projects/binutils-2.17/sys/amd64/include/xen/ (props changed) projects/binutils-2.17/sys/cddl/contrib/opensolaris/ (props changed) projects/binutils-2.17/sys/contrib/dev/acpica/ (props changed) projects/binutils-2.17/sys/contrib/pf/ (props changed) projects/binutils-2.17/sys/contrib/x86emu/ (props changed) projects/binutils-2.17/sys/dev/xen/xenpci/ (props changed) projects/binutils-2.17/usr.bin/calendar/ (props changed) projects/binutils-2.17/usr.bin/csup/ (props changed) projects/binutils-2.17/usr.bin/procstat/ (props changed) projects/binutils-2.17/usr.sbin/zic/ (props changed) Modified: projects/binutils-2.17/contrib/bsnmp/lib/bsnmplib.3 ============================================================================== --- projects/binutils-2.17/contrib/bsnmp/lib/bsnmplib.3 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/contrib/bsnmp/lib/bsnmplib.3 Tue Oct 19 21:02:05 2010 (r214078) @@ -134,7 +134,6 @@ is not zero, .Fa v.octetstring.octets points to a string allocated by .Xr malloc 3 . -.Pp .Bd -literal -offset indent #define SNMP_COMMUNITY_MAXLEN 128 #define SNMP_MAX_BINDINGS 100 Modified: projects/binutils-2.17/contrib/netcat/nc.1 ============================================================================== --- projects/binutils-2.17/contrib/netcat/nc.1 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/contrib/netcat/nc.1 Tue Oct 19 21:02:05 2010 (r214078) @@ -1,4 +1,4 @@ -.\" $OpenBSD: nc.1,v 1.53 2010/02/23 23:00:52 schwarze Exp $ +.\" $OpenBSD: nc.1,v 1.55 2010/07/25 07:51:39 guenther Exp $ .\" .\" Copyright (c) 1996 David Sacerdote .\" All rights reserved. @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 3, 2010 +.Dd July 25, 2010 .Dt NC 1 .Os .Sh NAME @@ -46,7 +46,7 @@ .Op Fl p Ar source_port .Op Fl s Ar source_ip_address .Op Fl T Ar ToS -.Op Fl V Ar fib +.Op Fl V Ar rtable .Op Fl w Ar timeout .Op Fl X Ar proxy_protocol .Oo Xo @@ -158,7 +158,6 @@ TCP_NOOPT socket option. .It Fl O Ar length Specifies the size of the TCP send buffer. -When .It Fl P Ar proxy_username Specifies a username to present to a proxy server that requires authentication. If no username is specified then authentication will not be attempted. @@ -202,8 +201,10 @@ Specifies to use sockets. .It Fl u Use UDP instead of the default option of TCP. -.It Fl V Ar fib -Set the routing table (FIB). +.It Fl V Ar rtable +Set the routing table +.Pq Dq FIB +to be used. The default is 0. .It Fl v Have Modified: projects/binutils-2.17/contrib/netcat/netcat.c ============================================================================== --- projects/binutils-2.17/contrib/netcat/netcat.c Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/contrib/netcat/netcat.c Tue Oct 19 21:02:05 2010 (r214078) @@ -1,4 +1,4 @@ -/* $OpenBSD: netcat.c,v 1.95 2010/02/27 00:58:56 nicm Exp $ */ +/* $OpenBSD: netcat.c,v 1.98 2010/07/03 04:44:51 guenther Exp $ */ /* * Copyright (c) 2001 Eric Jackson * @@ -93,7 +93,7 @@ int Iflag; /* TCP receive buffer siz int Oflag; /* TCP send buffer size */ int Sflag; /* TCP MD5 signature option */ int Tflag = -1; /* IP Type of Service */ -u_int rdomain; +u_int rtableid; int timeout = -1; int family = AF_UNSPEC; @@ -139,7 +139,6 @@ main(int argc, char *argv[]) { NULL, 0, NULL, 0 } }; - rdomain = 0; ret = 1; ipsec_count = 0; s = 0; @@ -235,10 +234,10 @@ main(int argc, char *argv[]) case 'V': if (sysctlbyname("net.fibs", &numfibs, &intsize, NULL, 0) == -1) errx(1, "Multiple FIBS not supported"); - rdomain = (unsigned int)strtonum(optarg, 0, + rtableid = (unsigned int)strtonum(optarg, 0, numfibs - 1, &errstr); if (errstr) - errx(1, "FIB %s: %s", errstr, optarg); + errx(1, "rtable %s: %s", errstr, optarg); break; case 'v': vflag = 1; @@ -371,11 +370,11 @@ main(int argc, char *argv[]) */ if (uflag) { int rv, plen; - char buf[8192]; + char buf[16384]; struct sockaddr_storage z; len = sizeof(z); - plen = jflag ? 8192 : 1024; + plen = jflag ? 16384 : 2048; rv = recvfrom(s, buf, plen, MSG_PEEK, (struct sockaddr *)&z, &len); if (rv < 0) @@ -561,8 +560,8 @@ remote_connect(const char *host, const c add_ipsec_policy(s, ipsec_policy[1]); #endif - if (rdomain) { - if (setfib(rdomain) == -1) + if (rtableid) { + if (setfib(rtableid) == -1) err(1, "setfib"); } @@ -634,8 +633,8 @@ local_listen(char *host, char *port, str res0->ai_protocol)) < 0) continue; - if (rdomain) { - if (setfib(rdomain) == -1) + if (rtableid) { + if (setfib(rtableid) == -1) err(1, "setfib"); } @@ -680,12 +679,12 @@ void readwrite(int nfd) { struct pollfd pfd[2]; - unsigned char buf[8192]; + unsigned char buf[16384]; int n, wfd = fileno(stdin); int lfd = fileno(stdout); int plen; - plen = jflag ? 8192 : 1024; + plen = jflag ? 16384 : 2048; /* Setup Network FD */ pfd[0].fd = nfd; @@ -827,10 +826,9 @@ build_ports(char *p) hi = strtonum(p, 1, PORT_MAX, &errstr); if (errstr) errx(1, "port number %s: %s", errstr, p); - portlist[0] = calloc(1, PORT_MAX_LEN); + portlist[0] = strdup(p); if (portlist[0] == NULL) err(1, NULL); - portlist[0] = p; } } @@ -947,7 +945,7 @@ help(void) \t-t Answer TELNET negotiation\n\ \t-U Use UNIX domain socket\n\ \t-u UDP mode\n\ - \t-V fib Specify alternate routing table (FIB)\n\ + \t-V rtable Specify alternate routing table\n\ \t-v Verbose\n\ \t-w secs\t Timeout for connects and final net reads\n\ \t-X proto Proxy protocol: \"4\", \"5\" (SOCKS) or \"connect\"\n\ @@ -992,7 +990,7 @@ usage(int ret) "usage: nc [-46DdhklnrStUuvz] [-I length] [-i interval] [-O length]\n" #endif "\t [-P proxy_username] [-p source_port] [-s source_ip_address] [-T ToS]\n" - "\t [-V fib] [-w timeout] [-X proxy_protocol]\n" + "\t [-V rtable] [-w timeout] [-X proxy_protocol]\n" "\t [-x proxy_address[:port]] [hostname] [port]\n"); if (ret) exit(1); Modified: projects/binutils-2.17/contrib/netcat/socks.c ============================================================================== --- projects/binutils-2.17/contrib/netcat/socks.c Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/contrib/netcat/socks.c Tue Oct 19 21:02:05 2010 (r214078) @@ -1,4 +1,4 @@ -/* $OpenBSD: socks.c,v 1.17 2006/09/25 04:51:20 ray Exp $ */ +/* $OpenBSD: socks.c,v 1.18 2010/04/20 07:26:35 nicm Exp $ */ /* * Copyright (c) 1999 Niklas Hallqvist. All rights reserved. @@ -167,11 +167,11 @@ socks_connect(const char *host, const ch buf[2] = SOCKS_NOAUTH; cnt = atomicio(vwrite, proxyfd, buf, 3); if (cnt != 3) - err(1, "write failed (%d/3)", cnt); + err(1, "write failed (%zu/3)", cnt); cnt = atomicio(read, proxyfd, buf, 2); if (cnt != 2) - err(1, "read failed (%d/3)", cnt); + err(1, "read failed (%zu/3)", cnt); if (buf[1] == SOCKS_NOMETHOD) errx(1, "authentication method negotiation failed"); @@ -220,11 +220,11 @@ socks_connect(const char *host, const ch cnt = atomicio(vwrite, proxyfd, buf, wlen); if (cnt != wlen) - err(1, "write failed (%d/%d)", cnt, wlen); + err(1, "write failed (%zu/%zu)", cnt, wlen); cnt = atomicio(read, proxyfd, buf, 10); if (cnt != 10) - err(1, "read failed (%d/10)", cnt); + err(1, "read failed (%zu/10)", cnt); if (buf[1] != 0) errx(1, "connection failed, SOCKS error %d", buf[1]); } else if (socksv == 4) { @@ -242,11 +242,11 @@ socks_connect(const char *host, const ch cnt = atomicio(vwrite, proxyfd, buf, wlen); if (cnt != wlen) - err(1, "write failed (%d/%d)", cnt, wlen); + err(1, "write failed (%zu/%zu)", cnt, wlen); cnt = atomicio(read, proxyfd, buf, 8); if (cnt != 8) - err(1, "read failed (%d/8)", cnt); + err(1, "read failed (%zu/8)", cnt); if (buf[1] != 90) errx(1, "connection failed, SOCKS error %d", buf[1]); } else if (socksv == -1) { @@ -272,7 +272,7 @@ socks_connect(const char *host, const ch cnt = atomicio(vwrite, proxyfd, buf, r); if (cnt != r) - err(1, "write failed (%d/%d)", cnt, r); + err(1, "write failed (%zu/%d)", cnt, r); if (authretry > 1) { char resp[1024]; @@ -290,7 +290,7 @@ socks_connect(const char *host, const ch errx(1, "Proxy auth response too long"); r = strlen(buf); if ((cnt = atomicio(vwrite, proxyfd, buf, r)) != r) - err(1, "write failed (%d/%d)", cnt, r); + err(1, "write failed (%zu/%d)", cnt, r); } /* Terminate headers */ Modified: projects/binutils-2.17/include/pthread.h ============================================================================== --- projects/binutils-2.17/include/pthread.h Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/include/pthread.h Tue Oct 19 21:02:05 2010 (r214078) @@ -135,6 +135,15 @@ enum pthread_mutextype { #define PTHREAD_MUTEX_DEFAULT PTHREAD_MUTEX_ERRORCHECK +enum pthread_rwlocktype_np +{ + PTHREAD_RWLOCK_PREFER_READER_NP, + PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, + PTHREAD_RWLOCK_PREFER_WRITER_NP, + PTHREAD_RWLOCK_DEFAULT_NP = + PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP +}; + struct _pthread_cleanup_info { __uintptr_t pthread_cleanup_pad[8]; }; @@ -233,11 +242,14 @@ int pthread_rwlock_tryrdlock(pthread_rw int pthread_rwlock_trywrlock(pthread_rwlock_t *); int pthread_rwlock_unlock(pthread_rwlock_t *); int pthread_rwlock_wrlock(pthread_rwlock_t *); -int pthread_rwlockattr_init(pthread_rwlockattr_t *); +int pthread_rwlockattr_destroy(pthread_rwlockattr_t *); +int pthread_rwlockattr_getkind_np(const pthread_rwlockattr_t *, + int *); int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *, int *); +int pthread_rwlockattr_init(pthread_rwlockattr_t *); +int pthread_rwlockattr_setkind_np(pthread_rwlockattr_t *, int); int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *, int); -int pthread_rwlockattr_destroy(pthread_rwlockattr_t *); pthread_t pthread_self(void); int pthread_setspecific(pthread_key_t, const void *); Modified: projects/binutils-2.17/lib/libc/include/namespace.h ============================================================================== --- projects/binutils-2.17/lib/libc/include/namespace.h Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/lib/libc/include/namespace.h Tue Oct 19 21:02:05 2010 (r214078) @@ -177,8 +177,10 @@ #define pthread_rwlock_unlock _pthread_rwlock_unlock #define pthread_rwlock_wrlock _pthread_rwlock_wrlock #define pthread_rwlockattr_destroy _pthread_rwlockattr_destroy +#define pthread_rwlockattr_getkind_np _pthread_rwlockattr_getkind_np #define pthread_rwlockattr_getpshared _pthread_rwlockattr_getpshared #define pthread_rwlockattr_init _pthread_rwlockattr_init +#define pthread_rwlockattr_setkind_np _pthread_rwlockattr_setkind_np #define pthread_rwlockattr_setpshared _pthread_rwlockattr_setpshared #define pthread_self _pthread_self #define pthread_set_name_np _pthread_set_name_np Modified: projects/binutils-2.17/lib/libc/include/un-namespace.h ============================================================================== --- projects/binutils-2.17/lib/libc/include/un-namespace.h Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/lib/libc/include/un-namespace.h Tue Oct 19 21:02:05 2010 (r214078) @@ -158,8 +158,10 @@ #undef pthread_rwlock_unlock #undef pthread_rwlock_wrlock #undef pthread_rwlockattr_destroy +#undef pthread_rwlockattr_getkind_np #undef pthread_rwlockattr_getpshared #undef pthread_rwlockattr_init +#undef pthread_rwlockattr_setkind_np #undef pthread_rwlockattr_setpshared #undef pthread_self #undef pthread_set_name_np Modified: projects/binutils-2.17/lib/libradius/Makefile ============================================================================== --- projects/binutils-2.17/lib/libradius/Makefile Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/lib/libradius/Makefile Tue Oct 19 21:02:05 2010 (r214078) @@ -33,6 +33,39 @@ CFLAGS+= -Wall SHLIB_MAJOR= 4 MAN= libradius.3 radius.conf.5 +MLINKS+=libradius.3 rad_acct_open.3 \ + libradius.3 rad_add_server.3 \ + libradius.3 rad_auth_open.3 \ + libradius.3 rad_close.3 \ + libradius.3 rad_config.3 \ + libradius.3 rad_continue_send_request.3 \ + libradius.3 rad_create_request.3 \ + libradius.3 rad_create_response.3 \ + libradius.3 rad_cvt_addr.3 \ + libradius.3 rad_cvt_int.3 \ + libradius.3 rad_cvt_string.3 \ + libradius.3 rad_demangle.3 \ + libradius.3 rad_demangle_mppe_key.3 \ + libradius.3 rad_get_attr.3 \ + libradius.3 rad_get_vendor_attr.3 \ + libradius.3 rad_init_send_request.3 \ + libradius.3 rad_put_addr.3 \ + libradius.3 rad_put_attr.3 \ + libradius.3 rad_put_int.3 \ + libradius.3 rad_put_message_authentic.3 \ + libradius.3 rad_put_string.3 \ + libradius.3 rad_put_vendor_addr.3 \ + libradius.3 rad_put_vendor_attr.3 \ + libradius.3 rad_put_vendor_int.3 \ + libradius.3 rad_put_vendor_string.3 \ + libradius.3 rad_receive_request.3 \ + libradius.3 rad_request_authenticator.3 \ + libradius.3 rad_send_request.3 \ + libradius.3 rad_send_response.3 \ + libradius.3 rad_server_open.3 \ + libradius.3 rad_server_secret.3 \ + libradius.3 rad_strerror.3 + WARNS?= 3 .if ${MK_OPENSSL} == "no" Modified: projects/binutils-2.17/lib/libthr/pthread.map ============================================================================== --- projects/binutils-2.17/lib/libthr/pthread.map Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/lib/libthr/pthread.map Tue Oct 19 21:02:05 2010 (r214078) @@ -318,7 +318,9 @@ FBSDprivate_1.0 { _pthread_rwlock_wrlock; _pthread_rwlockattr_destroy; _pthread_rwlockattr_getpshared; + _pthread_rwlockattr_getkind_np; _pthread_rwlockattr_init; + _pthread_rwlockattr_setkind_np; _pthread_rwlockattr_setpshared; _pthread_self; _pthread_set_name_np; @@ -401,6 +403,8 @@ FBSD_1.1 { FBSD_1.2 { openat; + pthread_rwlockattr_getkind_np; + pthread_rwlockattr_setkind_np; setcontext; swapcontext; }; Modified: projects/binutils-2.17/lib/libthr/thread/thr_private.h ============================================================================== --- projects/binutils-2.17/lib/libthr/thread/thr_private.h Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/lib/libthr/thread/thr_private.h Tue Oct 19 21:02:05 2010 (r214078) @@ -285,11 +285,14 @@ struct pthread_prio { struct pthread_rwlockattr { int pshared; + int kind; }; struct pthread_rwlock { struct urwlock lock; struct pthread *owner; + int recurse; + int kind; }; /* Modified: projects/binutils-2.17/lib/libthr/thread/thr_rwlock.c ============================================================================== --- projects/binutils-2.17/lib/libthr/thread/thr_rwlock.c Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/lib/libthr/thread/thr_rwlock.c Tue Oct 19 21:02:05 2010 (r214078) @@ -63,13 +63,19 @@ __weak_reference(_pthread_rwlock_timedwr */ static int -rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr __unused) +rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr) { pthread_rwlock_t prwlock; prwlock = (pthread_rwlock_t)calloc(1, sizeof(struct pthread_rwlock)); if (prwlock == NULL) return (ENOMEM); + if (attr != NULL) + prwlock->kind = (*attr)->kind; + else + prwlock->kind = PTHREAD_RWLOCK_DEFAULT_NP; + if (prwlock->kind == PTHREAD_RWLOCK_PREFER_READER_NP) + prwlock->lock.rw_flags |= URWLOCK_PREFER_READER; *rwlock = prwlock; return (0); } @@ -112,7 +118,7 @@ init_static(struct pthread *thread, pthr } int -_pthread_rwlock_init (pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr) +_pthread_rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr) { *rwlock = NULL; return (rwlock_init(rwlock, attr)); @@ -260,6 +266,14 @@ rwlock_wrlock_common (pthread_rwlock_t * CHECK_AND_INIT_RWLOCK + if (__predict_false(prwlock->owner == curthread)) { + if (__predict_false( + prwlock->kind == PTHREAD_RWLOCK_PREFER_WRITER_NP)) { + prwlock->recurse++; + return (0); + } + } + /* * POSIX said the validity of the abstimeout parameter need * not be checked if the lock can be immediately acquired. @@ -335,6 +349,13 @@ _pthread_rwlock_unlock (pthread_rwlock_t if (state & URWLOCK_WRITE_OWNER) { if (__predict_false(prwlock->owner != curthread)) return (EPERM); + if (__predict_false( + prwlock->kind == PTHREAD_RWLOCK_PREFER_WRITER_NP)) { + if (prwlock->recurse > 0) { + prwlock->recurse--; + return (0); + } + } prwlock->owner = NULL; } Modified: projects/binutils-2.17/lib/libthr/thread/thr_rwlockattr.c ============================================================================== --- projects/binutils-2.17/lib/libthr/thread/thr_rwlockattr.c Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/lib/libthr/thread/thr_rwlockattr.c Tue Oct 19 21:02:05 2010 (r214078) @@ -36,8 +36,10 @@ __weak_reference(_pthread_rwlockattr_destroy, pthread_rwlockattr_destroy); __weak_reference(_pthread_rwlockattr_getpshared, pthread_rwlockattr_getpshared); +__weak_reference(_pthread_rwlockattr_getkind_np, pthread_rwlockattr_getkind_np); __weak_reference(_pthread_rwlockattr_init, pthread_rwlockattr_init); __weak_reference(_pthread_rwlockattr_setpshared, pthread_rwlockattr_setpshared); +__weak_reference(_pthread_rwlockattr_setkind_np, pthread_rwlockattr_setkind_np); int _pthread_rwlockattr_destroy(pthread_rwlockattr_t *rwlockattr) @@ -81,6 +83,7 @@ _pthread_rwlockattr_init(pthread_rwlocka return(ENOMEM); prwlockattr->pshared = PTHREAD_PROCESS_PRIVATE; + prwlockattr->kind = PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP; *rwlockattr = prwlockattr; return(0); @@ -98,3 +101,21 @@ _pthread_rwlockattr_setpshared(pthread_r return(0); } +int +_pthread_rwlockattr_setkind_np(pthread_rwlockattr_t *attr, int kind) +{ + if (kind != PTHREAD_RWLOCK_PREFER_READER_NP && + kind != PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP && + kind != PTHREAD_RWLOCK_PREFER_WRITER_NP) { + return (EINVAL); + } + (*attr)->kind = kind; + return (0); +} + +int +_pthread_rwlockattr_getkind_np(const pthread_rwlockattr_t *attr, int *kind) +{ + *kind = (*attr)->kind; + return (0); +} Modified: projects/binutils-2.17/libexec/bootpd/bootptab.5 ============================================================================== --- projects/binutils-2.17/libexec/bootpd/bootptab.5 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/libexec/bootpd/bootptab.5 Tue Oct 19 21:02:05 2010 (r214078) @@ -388,7 +388,6 @@ hardware address. An example .Pa /etc/bootptab file follows: -.Pp .Bd -literal -offset indent # Sample bootptab file (domain=andrew.cmu.edu) Modified: projects/binutils-2.17/sbin/camcontrol/camcontrol.8 ============================================================================== --- projects/binutils-2.17/sbin/camcontrol/camcontrol.8 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/sbin/camcontrol/camcontrol.8 Tue Oct 19 21:02:05 2010 (r214078) @@ -207,9 +207,6 @@ A device identifier can take one of thre .Bl -tag -width 14n .It deviceUNIT Specify a device name and unit number combination, like "da5" or "cd3". -Note that character device node names (e.g.\& /dev/da0) are -.Em not -allowed here. .It bus:target Specify a bus number and target id. The bus number can be determined from Modified: projects/binutils-2.17/sbin/camcontrol/camcontrol.c ============================================================================== --- projects/binutils-2.17/sbin/camcontrol/camcontrol.c Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/sbin/camcontrol/camcontrol.c Tue Oct 19 21:02:05 2010 (r214078) @@ -4605,15 +4605,7 @@ main(int argc, char **argv) char name[30]; int rv; - /* - * First catch people who try to do things like: - * camcontrol tur /dev/da0 - * camcontrol doesn't take device nodes as arguments. - */ - if (argv[2][0] == '/') { - warnx("%s is not a valid device identifier", argv[2]); - errx(1, "please read the camcontrol(8) man page"); - } else if (isdigit(argv[2][0])) { + if (isdigit(argv[2][0])) { /* device specified as bus:target[:lun] */ rv = parse_btl(argv[2], &bus, &target, &lun, &arglist); if (rv < 2) Modified: projects/binutils-2.17/sbin/routed/routed.8 ============================================================================== --- projects/binutils-2.17/sbin/routed/routed.8 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/sbin/routed/routed.8 Tue Oct 19 21:02:05 2010 (r214078) @@ -440,7 +440,6 @@ The file is comprised of a series of lines, each in one of the following two formats or consist of parameters described later. Blank lines and lines starting with '#' are comments. -.Pp .Bd -ragged .Cm net .Ar Nname[/mask] Modified: projects/binutils-2.17/sbin/setkey/setkey.8 ============================================================================== --- projects/binutils-2.17/sbin/setkey/setkey.8 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/sbin/setkey/setkey.8 Tue Oct 19 21:02:05 2010 (r214078) @@ -565,7 +565,6 @@ There are small, but important, differen See .Xr ipsec_set_policy 3 for details. -.Pp .El .Pp .\" @@ -583,7 +582,6 @@ in the of the .Ar protocol parameter: -.Pp .Bd -literal -offset indent algorithm keylen (bits) comment hmac-md5 128 ah: rfc2403 @@ -616,7 +614,6 @@ in the of the .Ar protocol parameter: -.Pp .Bd -literal -offset indent algorithm keylen (bits) comment des-cbc 64 esp-old: rfc1829, esp: rfc2405 @@ -643,7 +640,6 @@ in the of the .Ar protocol parameter: -.Pp .Bd -literal -offset indent algorithm comment deflate rfc2394 Modified: projects/binutils-2.17/sbin/sunlabel/sunlabel.8 ============================================================================== --- projects/binutils-2.17/sbin/sunlabel/sunlabel.8 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/sbin/sunlabel/sunlabel.8 Tue Oct 19 21:02:05 2010 (r214078) @@ -120,7 +120,6 @@ Options are listed in alphabetical order Note that only those option combinations listed under .Sx SYNOPSIS are allowable. -.Pp .Bl -tag -width ".Fl b Ar bootpath" .It Fl b Ar bootpath Specify that Modified: projects/binutils-2.17/share/man/man4/lagg.4 ============================================================================== --- projects/binutils-2.17/share/man/man4/lagg.4 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/share/man/man4/lagg.4 Tue Oct 19 21:02:05 2010 (r214078) @@ -16,7 +16,7 @@ .\" .\" $FreeBSD$ .\" -.Dd October 8, 2010 +.Dd October 18, 2010 .Dt LAGG 4 .Os .Sh NAME @@ -73,14 +73,14 @@ The interface link state is used to vali not. .Bl -tag -width loadbalance .It Ic failover -Sends traffic only through the master port. +Sends traffic only through the active port. If the master port becomes unavailable, the next active port is used. The first interface added is the master port; any interfaces added after that are used as failover devices. .Pp By default, received traffic is only accepted when they are received -through the master port. +through the active port. This constraint can be relaxed by setting the .Va net.link.lagg.failover_rx_all .Xr sysctl 8 Modified: projects/binutils-2.17/share/man/man4/man4.arm/mge.4 ============================================================================== --- projects/binutils-2.17/share/man/man4/man4.arm/mge.4 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/share/man/man4/man4.arm/mge.4 Tue Oct 19 21:02:05 2010 (r214078) @@ -47,7 +47,6 @@ system-on-chip devices. The .Nm driver supports the following media types: -.Pp .Bl -tag -width xxxxxxxxxxxxxxxxxxxx .It autoselect Enable autoselection of the media type and options @@ -62,7 +61,6 @@ Set 1000baseT operation The .Nm driver supports the following media options: -.Pp .Bl -tag -width xxxxxxxxxxxxxxxxxxxx .It full-duplex Set full duplex operation Modified: projects/binutils-2.17/share/man/man4/man4.i386/ep.4 ============================================================================== --- projects/binutils-2.17/share/man/man4/man4.i386/ep.4 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/share/man/man4/man4.i386/ep.4 Tue Oct 19 21:02:05 2010 (r214078) @@ -57,7 +57,6 @@ Parallel Tasking chipset. .Pp Various models of these cards come with a different assortment of connectors: -.Pp .Bl -tag -width xxxxxxxxxxxxxxxxxxxx .It AUI/DIX Standard 15 pin connector, also known as 10base5 (thick-net) @@ -74,7 +73,6 @@ To override this, use the following medi or in your .Pa /etc/rc.conf file. -.Pp .Bl -tag -width xxxxxxxxxxxxxxxxxxxx .It 10base5/AUI Use the AUI port. Modified: projects/binutils-2.17/share/man/man4/man4.i386/mse.4 ============================================================================== --- projects/binutils-2.17/share/man/man4/man4.i386/mse.4 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/share/man/man4/man4.i386/mse.4 Tue Oct 19 21:02:05 2010 (r214078) @@ -147,7 +147,6 @@ or in the User Configuration Menu at the boot time (see .Xr boot 8 ) . -.Pp .Bl -tag -width MOUSE .It bit 4..7 ACCELERATION This flag controls the amount of acceleration effect. Modified: projects/binutils-2.17/share/man/man4/man4.powerpc/tsec.4 ============================================================================== --- projects/binutils-2.17/share/man/man4/man4.powerpc/tsec.4 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/share/man/man4/man4.powerpc/tsec.4 Tue Oct 19 21:02:05 2010 (r214078) @@ -47,7 +47,6 @@ some of the Freescale system-on-chip dev The .Nm driver supports the following media types: -.Pp .Bl -tag -width xxxxxxxxxxxxxxxxxxxx .It autoselect Enable autoselection of the media type and options @@ -62,7 +61,6 @@ Set 1000baseT operation The .Nm driver supports the following media options: -.Pp .Bl -tag -width xxxxxxxxxxxxxxxxxxxx .It full-duplex Set full duplex operation Modified: projects/binutils-2.17/share/man/man4/nxge.4 ============================================================================== --- projects/binutils-2.17/share/man/man4/nxge.4 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/share/man/man4/nxge.4 Tue Oct 19 21:02:05 2010 (r214078) @@ -49,7 +49,7 @@ The .Nm driver provides support for Neterion Xframe-I and Xframe-II adapters. The driver supports TCP Segmentation Offload (TSO/LSO), -Large Receive Offlaod (LRO), Jumbo Frames (5 buffer mode), +Large Receive Offload (LRO), Jumbo Frames (5 buffer mode), Header Separation (Rx 2 buffer mode), VLAN, and Promiscuous mode. .Pp For general information and support, please visit the Neterion support page Modified: projects/binutils-2.17/share/man/man5/freebsd-update.conf.5 ============================================================================== --- projects/binutils-2.17/share/man/man5/freebsd-update.conf.5 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/share/man/man5/freebsd-update.conf.5 Tue Oct 19 21:02:05 2010 (r214078) @@ -47,7 +47,6 @@ Unless stated otherwise, specifying an o error. .Pp The possible options and their meanings are as follows: -.Pp .Bl -tag -width ".Cm BackupKernelSymbolFiles" .It Cm KeyPrint The single parameter following this keyword is the SHA256 hash Modified: projects/binutils-2.17/share/man/man9/Makefile ============================================================================== --- projects/binutils-2.17/share/man/man9/Makefile Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/share/man/man9/Makefile Tue Oct 19 21:02:05 2010 (r214078) @@ -1212,11 +1212,17 @@ MLINKS+=sysctl_ctx_init.9 sysctl_ctx_ent sysctl_ctx_init.9 sysctl_ctx_free.9 MLINKS+=taskqueue.9 TASK_INIT.9 \ taskqueue.9 taskqueue_create.9 \ + taskqueue.9 taskqueue_create_fast.9 \ taskqueue.9 TASKQUEUE_DECLARE.9 \ taskqueue.9 TASKQUEUE_DEFINE.9 \ + taskqueue.9 TASKQUEUE_DEFINE_THREAD.9 \ + taskqueue.9 taskqueue_drain.9 \ taskqueue.9 taskqueue_enqueue.9 \ - taskqueue.9 taskqueue_find.9 \ + taskqueue.9 taskqueue_enqueue_fast.9 \ + taskqueue.9 TASKQUEUE_FAST_DEFINE.9 \ + taskqueue.9 TASKQUEUE_FAST_DEFINE_THREAD.9 \ taskqueue.9 taskqueue_free.9 \ + taskqueue.9 taskqueue_member.9 \ taskqueue.9 taskqueue_run.9 MLINKS+=time.9 boottime.9 \ time.9 time_second.9 \ Modified: projects/binutils-2.17/share/man/man9/vrele.9 ============================================================================== --- projects/binutils-2.17/share/man/man9/vrele.9 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/share/man/man9/vrele.9 Tue Oct 19 21:02:05 2010 (r214078) @@ -59,7 +59,7 @@ The .Fn vrele function takes an unlocked vnode and returns with the vnode unlocked. .Pp -.The +The .Fn vput function should be given a locked vnode as argument, the vnode is unlocked after the function returned. Modified: projects/binutils-2.17/share/man/man9/zone.9 ============================================================================== --- projects/binutils-2.17/share/man/man9/zone.9 Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/share/man/man9/zone.9 Tue Oct 19 21:02:05 2010 (r214078) @@ -153,6 +153,13 @@ Items are released back to the zone from calling .Fn uma_zfree with a pointer to the zone and a pointer to the item. +If +.Fa item +is +.Dv NULL , +then +.Fn uma_zfree +does nothing. .Pp The variations .Fn uma_zalloc_arg Modified: projects/binutils-2.17/sys/arm/mv/mv_sata.c ============================================================================== --- projects/binutils-2.17/sys/arm/mv/mv_sata.c Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/sys/arm/mv/mv_sata.c Tue Oct 19 21:02:05 2010 (r214078) @@ -710,7 +710,7 @@ sata_channel_status(device_t dev) if ((icr & SATA_ICR_DEV(ch->unit)) || iecr) { /* Disable EDMA before accessing SATA registers */ sata_edma_ctrl(dev, 0); - ata_sata_phy_check_events(dev); + ata_sata_phy_check_events(dev, -1); /* Ack device and error interrupt */ SATA_OUTL(sc, SATA_ICR, ~SATA_ICR_DEV(ch->unit)); Modified: projects/binutils-2.17/sys/conf/files ============================================================================== --- projects/binutils-2.17/sys/conf/files Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/sys/conf/files Tue Oct 19 21:02:05 2010 (r214078) @@ -2453,6 +2453,7 @@ net80211/ieee80211_power.c optional wlan net80211/ieee80211_proto.c optional wlan net80211/ieee80211_radiotap.c optional wlan net80211/ieee80211_ratectl.c optional wlan +net80211/ieee80211_ratectl_none.c optional wlan net80211/ieee80211_regdomain.c optional wlan net80211/ieee80211_rssadapt.c optional wlan wlan_rssadapt net80211/ieee80211_scan.c optional wlan Modified: projects/binutils-2.17/sys/dev/acpica/acpi.c ============================================================================== --- projects/binutils-2.17/sys/dev/acpica/acpi.c Tue Oct 19 20:53:30 2010 (r214077) +++ projects/binutils-2.17/sys/dev/acpica/acpi.c Tue Oct 19 21:02:05 2010 (r214078) @@ -66,10 +66,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include "pci_if.h" -#include -#include - #include MALLOC_DEFINE(M_ACPIDEV, "acpidev", "ACPI devices"); @@ -133,8 +129,7 @@ static ACPI_STATUS acpi_device_scan_cb(A void *context, void **retval); static ACPI_STATUS acpi_device_scan_children(device_t bus, device_t dev, int max_depth, acpi_scan_cb_t user_fn, void *arg); -static int acpi_set_powerstate_method(device_t bus, device_t child, - int state); +static int acpi_set_powerstate(device_t child, int state); static int acpi_isa_pnp_probe(device_t bus, device_t child, struct isa_pnp_id *ids); static void acpi_probe_children(device_t bus); @@ -205,9 +200,6 @@ static device_method_t acpi_methods[] = DEVMETHOD(acpi_pwr_for_sleep, acpi_device_pwr_for_sleep), DEVMETHOD(acpi_scan_children, acpi_device_scan_children), - /* PCI emulation */ - DEVMETHOD(pci_set_powerstate, acpi_set_powerstate_method), - /* ISA emulation */ DEVMETHOD(isa_pnp_probe, acpi_isa_pnp_probe), @@ -262,12 +254,6 @@ TUNABLE_INT("debug.acpi.interpreter_slac SYSCTL_INT(_debug_acpi, OID_AUTO, interpreter_slack, CTLFLAG_RDTUN, &acpi_interpreter_slack, 1, "Turn on interpreter slack mode."); -/* Power devices off and on in suspend and resume. XXX Remove once tested. */ -static int acpi_do_powerstate = 1; -TUNABLE_INT("debug.acpi.do_powerstate", &acpi_do_powerstate); -SYSCTL_INT(_debug_acpi, OID_AUTO, do_powerstate, CTLFLAG_RW, - &acpi_do_powerstate, 1, "Turn off devices when suspending."); - /* Reset system clock while resuming. XXX Remove once tested. */ static int acpi_reset_clock = 1; TUNABLE_INT("debug.acpi.reset_clock", &acpi_reset_clock); @@ -668,45 +654,43 @@ acpi_attach(device_t dev) return_VALUE (error); } +static void +acpi_set_power_children(device_t dev, int state) +{ + device_t child, parent; + device_t *devlist; + struct pci_devinfo *dinfo; + int dstate, i, numdevs; + + if (device_get_children(dev, &devlist, &numdevs) != 0) + return; + + /* + * Retrieve and set D-state for the sleep state if _SxD is present. + * Skip children who aren't attached since they are handled separately. + */ + parent = device_get_parent(dev); + for (i = 0; i < numdevs; i++) { + child = devlist[i]; + dinfo = device_get_ivars(child); + dstate = state; + if (device_is_attached(child) && + acpi_device_pwr_for_sleep(parent, dev, &dstate) == 0) + acpi_set_powerstate(child, dstate); + } + free(devlist, M_TEMP); +} + static int acpi_suspend(device_t dev) { - device_t child, *devlist; - int error, i, numdevs, pstate; + int error; GIANT_REQUIRED; - /* First give child devices a chance to suspend. */ error = bus_generic_suspend(dev); - if (error) - return (error); - - /* - * Now, set them into the appropriate power state, usually D3. If the - * device has an _SxD method for the next sleep state, use that power - * state instead. - */ - error = device_get_children(dev, &devlist, &numdevs); - if (error) - return (error); - for (i = 0; i < numdevs; i++) { - /* If the device is not attached, we've powered it down elsewhere. */ - child = devlist[i]; - if (!device_is_attached(child)) - continue; - - /* - * Default to D3 for all sleep states. The _SxD method is optional - * so set the powerstate even if it's absent. - */ - pstate = PCI_POWERSTATE_D3; - error = acpi_device_pwr_for_sleep(device_get_parent(child), - child, &pstate); - if ((error == 0 || error == ESRCH) && acpi_do_powerstate) - pci_set_powerstate(child, pstate); - } - free(devlist, M_TEMP); - error = 0; + if (error == 0) + acpi_set_power_children(dev, ACPI_STATE_D3); return (error); } @@ -714,28 +698,10 @@ acpi_suspend(device_t dev) static int acpi_resume(device_t dev) { - ACPI_HANDLE handle; - int i, numdevs, error; - device_t child, *devlist; GIANT_REQUIRED; - /* - * Put all devices in D0 before resuming them. Call _S0D on each one - * since some systems expect this. - */ - error = device_get_children(dev, &devlist, &numdevs); - if (error) - return (error); - for (i = 0; i < numdevs; i++) { - child = devlist[i]; - handle = acpi_get_handle(child); - if (handle) - AcpiEvaluateObject(handle, "_S0D", NULL, NULL); - if (device_is_attached(child) && acpi_do_powerstate) - pci_set_powerstate(child, PCI_POWERSTATE_D0); - } - free(devlist, M_TEMP); + acpi_set_power_children(dev, ACPI_STATE_D0); return (bus_generic_resume(dev)); } @@ -811,7 +777,7 @@ static void acpi_probe_nomatch(device_t bus, device_t child) { #ifdef ACPI_ENABLE_POWERDOWN_NODRIVER - pci_set_powerstate(child, PCI_POWERSTATE_D3); + acpi_set_powerstate(child, ACPI_STATE_D3); #endif } @@ -833,9 +799,9 @@ acpi_driver_added(device_t dev, driver_t child = devlist[i]; if (device_get_state(child) == DS_NOTPRESENT) { #ifdef ACPI_ENABLE_POWERDOWN_NODRIVER - pci_set_powerstate(child, PCI_POWERSTATE_D0); + acpi_set_powerstate(child, ACPI_STATE_D0); if (device_probe_and_attach(child) != 0) - pci_set_powerstate(child, PCI_POWERSTATE_D3); + acpi_set_powerstate(child, ACPI_STATE_D3); #else device_probe_and_attach(child); #endif @@ -1401,9 +1367,7 @@ acpi_device_pwr_for_sleep(device_t bus, ACPI_HANDLE handle; ACPI_STATUS status; char sxd[8]; - int error; - sc = device_get_softc(bus); handle = acpi_get_handle(dev); /* @@ -1412,7 +1376,7 @@ acpi_device_pwr_for_sleep(device_t bus, * set to D3 and it appears that such legacy devices may * need special handling in their drivers. */ - if (handle == NULL || + if (dstate == NULL || handle == NULL || acpi_MatchHid(handle, "PNP0500") || acpi_MatchHid(handle, "PNP0501") || acpi_MatchHid(handle, "PNP0502") || @@ -1421,28 +1385,19 @@ acpi_device_pwr_for_sleep(device_t bus, return (ENXIO); /* - * Override next state with the value from _SxD, if present. If no - * dstate argument was provided, don't fetch the return value. + * Override next state with the value from _SxD, if present. + * Note illegal _S0D is evaluated because some systems expect this. */ + sc = device_get_softc(bus); snprintf(sxd, sizeof(sxd), "_S%dD", sc->acpi_sstate); - if (dstate) - status = acpi_GetInteger(handle, sxd, dstate); - else - status = AcpiEvaluateObject(handle, sxd, NULL, NULL); - - switch (status) { - case AE_OK: - error = 0; - break; - case AE_NOT_FOUND: - error = ESRCH; - break; - default: - error = ENXIO; - break; + status = acpi_GetInteger(handle, sxd, dstate); + if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) { + device_printf(dev, "failed to get %s on %s: %s\n", sxd, + acpi_name(handle), AcpiFormatException(status)); + return (ENXIO); } - return (error); + return (0); } /* Callback arg for our implementation of walking the namespace. */ @@ -1524,13 +1479,11 @@ acpi_device_scan_children(device_t bus, * device power states since it's close enough to ACPI. */ static int *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-projects@FreeBSD.ORG Tue Oct 19 21:32:13 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB1FF1065694; Tue, 19 Oct 2010 21:32:13 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 819C68FC19; Tue, 19 Oct 2010 21:32:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9JLWDRb028048; Tue, 19 Oct 2010 21:32:13 GMT (envelope-from jamie@svn.freebsd.org) Received: (from jamie@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9JLWDEr028047; Tue, 19 Oct 2010 21:32:13 GMT (envelope-from jamie@svn.freebsd.org) Message-Id: <201010192132.o9JLWDEr028047@svn.freebsd.org> From: Jamie Gritton Date: Tue, 19 Oct 2010 21:32:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214084 - in projects/jailconf: . usr.sbin X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2010 21:32:13 -0000 Author: jamie Date: Tue Oct 19 21:32:13 2010 New Revision: 214084 URL: http://svn.freebsd.org/changeset/base/214084 Log: A new jail(8) with a configuration file, to replace the work currently done by /etc/rc.d/jail. Added: projects/jailconf/ - copied from r214082, head/etc/ projects/jailconf/usr.sbin/ - copied from r214082, head/usr.sbin/jail/ Directory Properties: projects/jailconf/etc/ (props changed) projects/jailconf/usr.sbin/jail/ (props changed) From owner-svn-src-projects@FreeBSD.ORG Wed Oct 20 20:42:34 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D5021065695; Wed, 20 Oct 2010 20:42:34 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2AC468FC16; Wed, 20 Oct 2010 20:42:34 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9KKgYgs068324; Wed, 20 Oct 2010 20:42:34 GMT (envelope-from jamie@svn.freebsd.org) Received: (from jamie@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9KKgYOK068319; Wed, 20 Oct 2010 20:42:34 GMT (envelope-from jamie@svn.freebsd.org) Message-Id: <201010202042.o9KKgYOK068319@svn.freebsd.org> From: Jamie Gritton Date: Wed, 20 Oct 2010 20:42:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214117 - projects/jailconf/usr.sbin/jail X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2010 20:42:34 -0000 Author: jamie Date: Wed Oct 20 20:42:33 2010 New Revision: 214117 URL: http://svn.freebsd.org/changeset/base/214117 Log: Initial work on the new jail(8). There are more features to add, and some cleaning up to do on existing features, but this is pretty much what the final product will look like. Added: projects/jailconf/usr.sbin/jail/command.c (contents, props changed) projects/jailconf/usr.sbin/jail/config.c (contents, props changed) projects/jailconf/usr.sbin/jail/jail.conf.5 (contents, props changed) projects/jailconf/usr.sbin/jail/jaillex.l (contents, props changed) projects/jailconf/usr.sbin/jail/jailp.h (contents, props changed) projects/jailconf/usr.sbin/jail/jailparse.y (contents, props changed) projects/jailconf/usr.sbin/jail/state.c (contents, props changed) Modified: projects/jailconf/usr.sbin/jail/Makefile projects/jailconf/usr.sbin/jail/jail.8 projects/jailconf/usr.sbin/jail/jail.c Modified: projects/jailconf/usr.sbin/jail/Makefile ============================================================================== --- projects/jailconf/usr.sbin/jail/Makefile Wed Oct 20 20:01:45 2010 (r214116) +++ projects/jailconf/usr.sbin/jail/Makefile Wed Oct 20 20:42:33 2010 (r214117) @@ -3,12 +3,19 @@ .include PROG= jail -MAN= jail.8 -DPADD= ${LIBJAIL} ${LIBUTIL} -LDADD= -ljail -lutil +MAN= jail.8 jail.conf.5 +SRCS= jail.c command.c config.c state.c jailp.h jaillex.l jailparse.y y.tab.h + +DPADD= ${LIBJAIL} ${LIBKVM} ${LIBUTIL} ${LIBL} +LDADD= -ljail -lkvm -lutil -ll + +YFLAGS+=-v +CFLAGS+=-I. -I${.CURDIR} .if ${MK_INET6_SUPPORT} != "no" CFLAGS+= -DINET6 .endif +CLEANFILES= y.output + .include Added: projects/jailconf/usr.sbin/jail/command.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/jailconf/usr.sbin/jail/command.c Wed Oct 20 20:42:33 2010 (r214117) @@ -0,0 +1,675 @@ +/*- + * Copyright (c) 2010 James Gritton + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include +__FBSDID("$FreeBSD$"); + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "jailp.h" + +#define COMSTRING_DUMMY ((struct cfstring *)1) +#define DEFAULT_STOP_TIMEOUT 10 +#define PHASH_SIZE 256 + +LIST_HEAD(phhead, phash); + +struct phash { + LIST_ENTRY(phash) le; + struct cfjail *j; + pid_t pid; +}; + +extern char **environ; + +static int get_user_info(struct cfjail *j, const char *username, + const struct passwd **pwdp, login_cap_t **lcapp); +static void add_proc(struct cfjail *j, pid_t pid); +static void clear_procs(struct cfjail *j); +static struct cfjail *find_proc(pid_t pid); + +static struct cfjails sleeping = TAILQ_HEAD_INITIALIZER(sleeping); +static struct cfjails runnable = TAILQ_HEAD_INITIALIZER(runnable); +static struct phhead phash[PHASH_SIZE]; +static int kq; + +/* + * Run a command associated with a jail, possibly inside the jail. + */ +int +run_command(struct cfjail *j, int *plimit, enum intparam comparam) +{ + const struct passwd *pwd; + struct cfstring *comstring, *s; + login_cap_t *lcap; + char **argv; + char *cs, *addr, *comcs; + const char *jidstr, *conslog, *path, *ruleset, *term, *username; + size_t comlen; + pid_t pid; + int argc, bg, clean, consfd, down, fib, i, injail, sjuser, timeout; + + static char *cleanenv; + + if (comparam) { + if (comparam == IP_MOUNT_DEVFS + ? !bool_param(j->intparams[IP_MOUNT_DEVFS]) + : j->intparams[comparam] == NULL) + return 0; + j->comparam = comparam; + j->comstring = comparam == IP_MOUNT_DEVFS ? COMSTRING_DUMMY + : STAILQ_FIRST(&j->intparams[comparam]->val); + } else { + comparam = j->comparam; + if (!(j->flags & JF_RUNQ)) + j->comstring = j->comstring == COMSTRING_DUMMY + ? NULL : STAILQ_NEXT(j->comstring, tq); + } + comstring = j->comstring; + if (comstring == NULL || + (comstring != COMSTRING_DUMMY && comstring->len == 0)) + return 0; + if (plimit && *plimit == 0) { + j->flags |= JF_RUNQ; + requeue(j, &runnable); + return 1; + } + j->flags &= ~(JF_RUNQ | JF_BACKGROUND); + /* + * Collect exec arguments. Internal commands for network and + * mounting build their own argument lists (XXX they should be + * truly internal). + */ + bg = j->flags & JF_FAILED; + down = j->flags & (JF_STOP | JF_FAILED); + if (comparam == IP__IP4_IFADDR) { + argv = alloca(8 * sizeof(char *)); + *(const char **)&argv[0] = _PATH_IFCONFIG; + if ((cs = strchr(comstring->s, '|'))) { + argv[1] = alloca(cs - comstring->s + 1); + strlcpy(argv[1], comstring->s, cs - comstring->s + 1); + addr = cs + 1; + } else { + *(const char **)&argv[1] = + string_param(j->intparams[IP_INTERFACE]); + addr = comstring->s; + } + *(const char **)&argv[2] = "inet"; + if (!(cs = strchr(addr, '/'))) { + argv[3] = addr; + *(const char **)&argv[4] = "netmask"; + *(const char **)&argv[5] = "255.255.255.255"; + argc = 6; + } else if (strchr(cs + 1, '.')) { + argv[3] = alloca(cs - addr + 1); + strlcpy(argv[3], addr, cs - addr + 1); + *(const char **)&argv[4] = "netmask"; + *(const char **)&argv[5] = cs + 1; + argc = 6; + } else { + argv[3] = addr; + argc = 4; + } + *(const char **)&argv[argc] = down ? "-alias" : "alias"; + argv[argc + 1] = NULL; + j->flags |= JF_IFUP; +#ifdef INET6 + } else if (comparam == IP__IP6_IFADDR) { + argv = alloca(8 * sizeof(char *)); + *(const char **)&argv[0] = _PATH_IFCONFIG; + if ((cs = strchr(comstring->s, '|'))) { + argv[1] = alloca(cs - comstring->s + 1); + strlcpy(argv[1], comstring->s, cs - comstring->s + 1); + addr = cs + 1; + } else { + *(const char **)&argv[1] = + string_param(j->intparams[IP_INTERFACE]); + addr = comstring->s; + } + *(const char **)&argv[2] = "inet6"; + argv[3] = addr; + if (!(cs = strchr(addr, '/'))) { + *(const char **)&argv[4] = "prefixlen"; + *(const char **)&argv[5] = "128"; + argc = 6; + } else + argc = 4; + *(const char **)&argv[argc] = down ? "-alias" : "alias"; + argv[argc + 1] = NULL; + j->flags |= JF_IFUP; +#endif + } else if (comparam == IP_VNET_INTERFACE) { + argv = alloca(5 * sizeof(char *)); + *(const char **)&argv[0] = _PATH_IFCONFIG; + argv[1] = comstring->s; + *(const char **)&argv[2] = down ? "-vnet" : "vnet"; + jidstr = string_param(j->intparams[KP_JID]); + *(const char **)&argv[3] = + jidstr ? jidstr : string_param(j->intparams[KP_NAME]); + argv[4] = NULL; + j->flags |= JF_IFUP; + } else if (comparam == IP_MOUNT) { + argv = alloca(8 * sizeof(char *)); + comcs = alloca(comstring->len + 1); + strcpy(comcs, comstring->s); + argc = 0; + for (cs = strtok(comcs, " \t\f\v\r\n"); cs && argc < 4; + cs = strtok(NULL, " \t\f\v\r\n")) + argv[argc++] = cs; + if (argc < 3) { + jail_warnx(j, "mount: %s: missing information", + comstring->s); + failed(j); + return -1; + } + if (down) { + argv[4] = NULL; + argv[3] = argv[1]; + *(const char **)&argv[0] = "/sbin/umount"; + } else { + if (argc == 4) { + argv[7] = NULL; + argv[6] = argv[1]; + argv[5] = argv[0]; + argv[4] = argv[3]; + *(const char **)&argv[3] = "-o"; + } else { + argv[5] = NULL; + argv[4] = argv[1]; + argv[3] = argv[0]; + } + *(const char **)&argv[0] = _PATH_MOUNT; + } + *(const char **)&argv[1] = "-t"; + j->flags |= JF_MOUNTED; + } else if (comparam == IP_MOUNT_FSTAB) { + argv = alloca(4 * sizeof(char *)); + *(const char **)&argv[0] = down ? "/sbin/umount" : _PATH_MOUNT; + *(const char **)&argv[1] = "-aF"; + argv[2] = comstring->s; + argv[3] = NULL; + j->flags |= JF_MOUNTED; + } else if (comparam == IP_MOUNT_DEVFS) { + path = string_param(j->intparams[KP_PATH]); + if (path == NULL) { + jail_warnx(j, "mount.devfs: no path"); + failed(j); + return -1; + } + if (down) { + argv = alloca(3 * sizeof(char *)); + *(const char **)&argv[0] = "/sbin/umount"; + argv[1] = alloca(strlen(path) + 5); + sprintf(argv[1], "%s/dev", path); + argv[2] = NULL; + } else { + argv = alloca(4 * sizeof(char *)); + *(const char **)&argv[0] = _PATH_BSHELL; + *(const char **)&argv[1] = "-c"; + ruleset = string_param(j->intparams + [IP_MOUNT_DEVFS_RULESET]); + argv[2] = alloca(strlen(path) + + (ruleset ? strlen(ruleset) + 1 : 0) + 56); + sprintf(argv[2], ". /etc/rc.subr; load_rc_config .; " + "devfs_mount_jail %s/dev%s%s", path, + ruleset ? " " : "", ruleset ? ruleset : ""); + argv[3] = NULL; + } + j->flags |= JF_MOUNTED; + } else if (comparam == IP_COMMAND && j->name == NULL) { + argc = 0; + STAILQ_FOREACH(s, &j->intparams[IP_COMMAND]->val, tq) + argc++; + argv = alloca((argc + 1) * sizeof(char *)); + argc = 0; + STAILQ_FOREACH(s, &j->intparams[IP_COMMAND]->val, tq) + argv[argc++] = s->s; + argv[argc] = NULL; + j->comstring = NULL; + } else if ((cs = strpbrk(comstring->s, "!\"$&'()*;<>?[\\]`{|}~")) && + !(cs[0] == '&' && cs[1] == '\0')) { + argv = alloca(4 * sizeof(char *)); + *(const char **)&argv[0] = _PATH_BSHELL; + *(const char **)&argv[1] = "-c"; + argv[2] = comstring->s; + argv[3] = NULL; + } else { + if (cs) { + *cs = 0; + bg = 1; + } + comcs = alloca(comstring->len + 1); + strcpy(comcs, comstring->s); + argc = 0; + for (cs = strtok(comcs, " \t\f\v\r\n"); cs; + cs = strtok(NULL, " \t\f\v\r\n")) + argc++; + argv = alloca((argc + 1) * sizeof(char *)); + strcpy(comcs, comstring->s); + argc = 0; + for (cs = strtok(comcs, " \t\f\v\r\n"); cs; + cs = strtok(NULL, " \t\f\v\r\n")) + argv[argc++] = cs; + argv[argc] = NULL; + } + if (argv[0] == NULL) + return 0; + + j->pstatus = 0; + if (int_param(j->intparams[IP_EXEC_TIMEOUT], &timeout) && + timeout != 0) { + clock_gettime(CLOCK_REALTIME, &j->timeout); + j->timeout.tv_sec += timeout; + } else + j->timeout.tv_sec = 0; + + injail = comparam == IP_EXEC_START || comparam == IP_COMMAND || + comparam == IP_EXEC_STOP; + clean = bool_param(j->intparams[IP_EXEC_CLEAN]); + username = string_param(j->intparams[injail + ? IP_EXEC_JAIL_USER : IP_EXEC_SYSTEM_USER]); + sjuser = bool_param(j->intparams[IP_EXEC_SYSTEM_JAIL_USER]); + + consfd = 0; + if (injail && + (conslog = string_param(j->intparams[IP_EXEC_CONSOLELOG]))) { + consfd = + open(conslog, O_WRONLY | O_CREAT | O_APPEND, DEFFILEMODE); + if (consfd < 0) { + jail_warnx(j, "open %s: %s", conslog, strerror(errno)); + failed(j); + return -1; + } + } + + comlen = 0; + for (i = 0; argv[i]; i++) + comlen += strlen(argv[i]) + 1; + j->comline = cs = emalloc(comlen); + for (i = 0; argv[i]; i++) { + strcpy(cs, argv[i]); + if (argv[i + 1]) { + cs += strlen(argv[i]) + 1; + cs[-1] = ' '; + } + } + if (verbose > 0) + jail_note(j, "run command%s%s%s: %s\n", + injail ? " in jail" : "", username ? " as " : "", + username ? username : "", j->comline); + + pid = fork(); + if (pid < 0) + err(1, "fork"); + if (pid > 0) { + if (bg) { + j->flags |= JF_BACKGROUND; + requeue(j, &ready); + } else { + --*plimit; + add_proc(j, pid); + } + return 1; + } + if (bg) + setsid(); + + pwd = NULL; + lcap = NULL; + if ((clean || username) && injail && sjuser && + get_user_info(j, username, &pwd, &lcap) < 0) + exit(1); + if (injail) { + /* jail_attach won't chdir along with its chroot. */ + path = string_param(j->intparams[KP_PATH]); + if (path && chdir(path) < 0) { + jail_warnx(j, "chdir %s: %s", path, strerror(errno)); + exit(1); + } + if (int_param(j->intparams[IP_EXEC_FIB], &fib) && + setfib(fib) < 0) { + jail_warnx(j, "setfib: %s", strerror(errno)); + exit(1); + } + if (jail_attach(j->jid) < 0) { + jail_warnx(j, "jail_attach: %s", strerror(errno)); + exit(1); + } + } + if (clean || username) { + if (!(injail && sjuser) && + get_user_info(j, username, &pwd, &lcap) < 0) + exit(1); + if (clean) { + term = getenv("TERM"); + environ = &cleanenv; + setenv("PATH", "/bin:/usr/bin", 0); + setenv("TERM", term, 1); + } + if (setusercontext(lcap, pwd, pwd->pw_uid, username + ? LOGIN_SETALL & ~LOGIN_SETGROUP & ~LOGIN_SETLOGIN + : LOGIN_SETPATH | LOGIN_SETENV) < 0) { + jail_warnx(j, "setusercontext %s: %s", pwd->pw_name, + strerror(errno)); + exit(1); + } + login_close(lcap); + setenv("USER", pwd->pw_name, 1); + setenv("HOME", pwd->pw_dir, 1); + setenv("SHELL", + *pwd->pw_shell ? pwd->pw_shell : _PATH_BSHELL, 1); + if (clean && chdir(pwd->pw_dir) < 0) { + jail_warnx(j, "chdir %s: %s", + pwd->pw_dir, strerror(errno)); + exit(1); + } + endpwent(); + } + + if (consfd != 0 && (dup2(consfd, 1) < 0 || dup2(consfd, 2) < 0)) { + jail_warnx(j, "exec.consolelog: %s", strerror(errno)); + exit(1); + } + closefrom(3); + execvp(argv[0], argv); + jail_warnx(j, "exec %s: %s", argv[0], strerror(errno)); + exit(1); +} + +/* + * Check command exit status + */ +int +finish_command(struct cfjail *j, int *plimit) +{ + int error; + + if (j->flags & (JF_RUNQ | JF_BACKGROUND)) + return 0; + ++*plimit; + if (!TAILQ_EMPTY(&runnable)) + requeue(TAILQ_FIRST(&runnable), &ready); + error = 0; + if (j->flags & JF_TIMEOUT) { + j->flags &= ~JF_TIMEOUT; + if (j->comparam != IP_STOP_TIMEOUT) { + jail_warnx(j, "%s: timed out", j->comline); + failed(j); + error = -1; + } else if (verbose > 0) + jail_note(j, "timed out\n"); + } else if (j->pstatus != 0) { + if (WIFSIGNALED(j->pstatus)) + jail_warnx(j, "%s: exited on signal %d", + j->comline, WTERMSIG(j->pstatus)); + else + jail_warnx(j, "%s: failed", j->comline); + failed(j); + error = -1; + } + free(j->comline); + return error; +} + +/* + * Check for finished processed or timeouts. + */ +struct cfjail * +next_proc(int nonblock) +{ + struct kevent ke; + struct timespec ts; + struct timespec *tsp; + struct cfjail *j; + + if (!TAILQ_EMPTY(&sleeping)) { + again: + tsp = NULL; + if ((j = TAILQ_FIRST(&sleeping)) && j->timeout.tv_sec) { + clock_gettime(CLOCK_REALTIME, &ts); + ts.tv_sec = j->timeout.tv_sec - ts.tv_sec; + ts.tv_nsec = j->timeout.tv_nsec - ts.tv_nsec; + if (ts.tv_nsec < 0) { + ts.tv_sec--; + ts.tv_nsec += 1000000000; + } + if (ts.tv_sec < 0 || + (ts.tv_sec == 0 && ts.tv_nsec == 0)) { + j->flags |= JF_TIMEOUT; + clear_procs(j); + return j; + } + tsp = &ts; + } + if (nonblock) { + ts.tv_sec = 0; + ts.tv_nsec = 0; + tsp = &ts; + } + switch (kevent(kq, NULL, 0, &ke, 1, tsp)) { + case -1: + if (errno != EINTR) + err(1, "kevent"); + goto again; + case 0: + if (!nonblock) { + j = TAILQ_FIRST(&sleeping); + j->flags |= JF_TIMEOUT; + clear_procs(j); + return j; + } + break; + case 1: + (void)waitpid(ke.ident, NULL, WNOHANG); + if ((j = find_proc(ke.ident))) { + j->pstatus = ke.data; + return j; + } + goto again; + } + } + return NULL; +} + +/* + * Send SIGTERM to all processes in a jail and wait for them to die. + */ +int +term_procs(struct cfjail *j) +{ + struct kinfo_proc *ki; + int i, noted, pcnt, timeout; + + static kvm_t *kd; + + if (!int_param(j->intparams[IP_STOP_TIMEOUT], &timeout)) + timeout = DEFAULT_STOP_TIMEOUT; + else if (timeout == 0) + return 0; + + if (kd == NULL) { + kd = kvm_open(NULL, NULL, NULL, O_RDONLY, "jail"); + if (kd == NULL) + exit(1); + } + + ki = kvm_getprocs(kd, KERN_PROC_PROC, 0, &pcnt); + if (ki == NULL) + exit(1); + noted = 0; + for (i = 0; i < pcnt; i++) + if (ki[i].ki_jid == j->jid && + kill(ki[i].ki_pid, SIGTERM) == 0) { + add_proc(j, ki[i].ki_pid); + if (verbose > 0) { + if (!noted) { + noted = 1; + jail_note(j, "sent SIGTERM to:"); + } + printf(" %d", ki[i].ki_pid); + } + } + if (noted) + printf("\n"); + if (j->nprocs > 0) { + clock_gettime(CLOCK_REALTIME, &j->timeout); + j->timeout.tv_sec += timeout; + return 1; + } + return 0; +} + +/* + * Add a process to the hash, tied to a jail. + */ +static void +add_proc(struct cfjail *j, pid_t pid) +{ + struct kevent ke; + struct cfjail *tj; + struct phash *ph; + + if (!kq && (kq = kqueue()) < 0) + err(1, "kqueue"); + EV_SET(&ke, pid, EVFILT_PROC, EV_ADD, NOTE_EXIT, 0, NULL); + if (kevent(kq, &ke, 1, NULL, 0, NULL) < 0) + err(1, "kevent"); + ph = emalloc(sizeof(struct phash)); + ph->j = j; + ph->pid = pid; + LIST_INSERT_HEAD(&phash[pid % PHASH_SIZE], ph, le); + j->nprocs++; + if (j->timeout.tv_sec) { + TAILQ_REMOVE(j->queue, j, tq); + TAILQ_FOREACH(tj, &sleeping, tq) { + if (!tj->timeout.tv_sec || + j->timeout.tv_sec < tj->timeout.tv_sec || + (j->timeout.tv_sec == tj->timeout.tv_sec && + j->timeout.tv_nsec <= tj->timeout.tv_nsec)) { + TAILQ_INSERT_BEFORE(tj, j, tq); + break; + } + } + if (tj == NULL) + TAILQ_INSERT_TAIL(&sleeping, j, tq); + j->queue = &sleeping; + } else + requeue(j, &sleeping); +} + +/* + * Remove any processes from the hash that correspond to a jail. + */ +static void +clear_procs(struct cfjail *j) +{ + struct kevent ke; + struct phash *ph, *tph; + int i; + + j->nprocs = 0; + for (i = 0; i < PHASH_SIZE; i++) + LIST_FOREACH_SAFE(ph, &phash[i], le, tph) + if (ph->j == j) { + EV_SET(&ke, ph->pid, EVFILT_PROC, EV_DELETE, + NOTE_EXIT, 0, NULL); + (void)kevent(kq, &ke, 1, NULL, 0, NULL); + LIST_REMOVE(ph, le); + free(ph); + } +} + +/* + * Find the jail that corresponds to an exited process. + */ +static struct cfjail * +find_proc(pid_t pid) +{ + struct cfjail *j; + struct phash *ph; + + LIST_FOREACH(ph, &phash[pid % PHASH_SIZE], le) + if (ph->pid == pid) { + j = ph->j; + LIST_REMOVE(ph, le); + free(ph); + return --j->nprocs ? NULL : j; + } + return NULL; +} + +/* + * Look up a user in the passwd and login.conf files. + */ +static int +get_user_info(struct cfjail *j, const char *username, + const struct passwd **pwdp, login_cap_t **lcapp) +{ + const struct passwd *pwd; + + *pwdp = pwd = username ? getpwnam(username) : getpwuid(getuid()); + if (pwd == NULL) { + if (errno) + jail_warnx(j, "getpwnam%s%s: %s", username ? " " : "", + username ? username : "", strerror(errno)); + else if (username) + jail_warnx(j, "%s: no such user", username); + else + jail_warnx(j, "unknown uid %d", getuid()); + return -1; + } + *lcapp = login_getpwclass(pwd); + if (*lcapp == NULL) { + jail_warnx(j, "getpwclass %s: %s", pwd->pw_name, + strerror(errno)); + return -1; + } + /* Set the groups while the group file is still available */ + if (initgroups(pwd->pw_name, pwd->pw_gid) < 0) { + jail_warnx(j, "initgroups %s: %s", pwd->pw_name, + strerror(errno)); + return -1; + } + return 0; +} Added: projects/jailconf/usr.sbin/jail/config.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/jailconf/usr.sbin/jail/config.c Wed Oct 20 20:42:33 2010 (r214117) @@ -0,0 +1,786 @@ +/*- + * Copyright (c) 2010 James Gritton + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include +__FBSDID("$FreeBSD$"); + +#include +#include +#include + +#include +#include + +#include +#include +#include +#include +#include + +#include "jailp.h" + +struct ipspec { + const char *name; + enum intparam ipnum; + unsigned flags; +}; + +extern FILE *yyin; +extern int yynerrs; + +struct cfjails cfjails = TAILQ_HEAD_INITIALIZER(cfjails); + +static int cmp_intparam(const void *a, const void *b); +static void free_param(struct cfparams *pp, struct cfparam *p); +static void free_param_strings(struct cfparam *p); + +/* Note these must be in sort order */ +static const struct ipspec intparams[] = { + {"allow.dying", IP_ALLOW_DYING, PF_INTERNAL | PF_BOOL }, + {"allow.nodying", IP_ALLOW_DYING, PF_INTERNAL | PF_BOOL }, + {"command", IP_COMMAND, PF_INTERNAL }, + {"depend", IP_DEPEND, PF_INTERNAL }, + {"exec.clean", IP_EXEC_CLEAN, PF_INTERNAL | PF_BOOL }, + {"exec.consolelog", IP_EXEC_CONSOLELOG, PF_INTERNAL }, + {"exec.fib", IP_EXEC_FIB, PF_INTERNAL | PF_INT }, + {"exec.jail_user", IP_EXEC_JAIL_USER, PF_INTERNAL }, + {"exec.noclean", IP_EXEC_CLEAN, PF_INTERNAL | PF_BOOL }, + {"exec.nosystem_jail_user",IP_EXEC_SYSTEM_JAIL_USER,PF_INTERNAL | PF_BOOL }, + {"exec.poststart", IP_EXEC_POSTSTART, PF_INTERNAL }, + {"exec.poststop", IP_EXEC_POSTSTOP, PF_INTERNAL }, + {"exec.prestart", IP_EXEC_PRESTART, PF_INTERNAL }, + {"exec.prestop", IP_EXEC_PRESTOP, PF_INTERNAL }, + {"exec.start", IP_EXEC_START, PF_INTERNAL }, + {"exec.stop", IP_EXEC_STOP, PF_INTERNAL }, + {"exec.system_jail_user", IP_EXEC_SYSTEM_JAIL_USER, PF_INTERNAL | PF_BOOL }, + {"exec.system_user", IP_EXEC_SYSTEM_USER, PF_INTERNAL }, + {"exec.timeout", IP_EXEC_TIMEOUT, PF_INTERNAL | PF_INT }, + {"host.hostname", KP_HOSTNAME, 0 }, + {"interface", IP_INTERFACE, PF_INTERNAL }, + {"ip4.addr", KP_IP4_ADDR, 0 }, +#ifdef INET6 + {"ip6.addr", KP_IP6_ADDR, 0 }, +#endif + {"ip_hostname", IP_IP_HOSTNAME, PF_INTERNAL | PF_BOOL }, + {"jid", KP_JID, PF_INT }, + {"mount", IP_MOUNT, PF_INTERNAL }, + {"mount.devfs", IP_MOUNT_DEVFS, PF_INTERNAL | PF_BOOL }, + {"mount.devfs.ruleset", IP_MOUNT_DEVFS_RULESET, PF_INTERNAL }, + {"mount.fstab", IP_MOUNT_FSTAB, PF_INTERNAL }, + {"mount.nodevfs", IP_MOUNT_DEVFS, PF_INTERNAL | PF_BOOL }, + {"name", KP_NAME, 0 }, + {"noip_hostname", IP_IP_HOSTNAME, PF_INTERNAL | PF_BOOL }, + {"nopersist", KP_PERSIST, PF_BOOL }, + {"path", KP_PATH, 0 }, + {"persist", KP_PERSIST, PF_BOOL }, + {"stop.timeout", IP_STOP_TIMEOUT, PF_INTERNAL | PF_INT }, + {"vnet", KP_VNET, 0 }, + {"vnet.interface", IP_VNET_INTERFACE, PF_INTERNAL }, +}; + +/* + * Parse the jail configuration file. + */ +void +load_config(void) +{ + struct cfjails wild; + struct cfparams opp; + struct cfjail *j, *tj, *wj; + struct cfparam *p, *vp, *tp; + struct cfstring *s, *vs, *ns; + struct cfvar *v; + char *ep; + size_t varoff; + int did_self, jseq, pgen; + + if (!strcmp(cfname, "-")) { + cfname = "STDIN"; + yyin = stdin; + } else { + yyin = fopen(cfname, "r"); + if (!yyin) + err(1, "%s", cfname); + } + if (yyparse() || yynerrs) + exit(1); + + /* Separate the wildcard jails out from the actual jails. */ + jseq = 0; + TAILQ_INIT(&wild); + TAILQ_FOREACH_SAFE(j, &cfjails, tq, tj) { + j->seq = ++jseq; + if (wild_jail_name(j->name)) + requeue(j, &wild); + } + + TAILQ_FOREACH(j, &cfjails, tq) { + /* Set aside the jail's parameters. */ + TAILQ_INIT(&opp); + TAILQ_CONCAT(&opp, &j->params, tq); + /* + * The jail name implies its "name" or "jid" parameter, + * though they may also be explicitly set later on. + */ + add_param(j, NULL, + strtol(j->name, &ep, 10) && !*ep ? "jid" : "name", + j->name); + /* + * Collect parameters for the jail, global parameters/variables, + * and any matching wildcard jails. + */ + did_self = 0; + TAILQ_FOREACH(wj, &wild, tq) { + if (j->seq < wj->seq && !did_self) { + TAILQ_FOREACH(p, &opp, tq) + add_param(j, p, NULL, NULL); + did_self = 1; + } + if (wild_jail_match(j->name, wj->name)) + TAILQ_FOREACH(p, &wj->params, tq) + add_param(j, p, NULL, NULL); + } + if (!did_self) + TAILQ_FOREACH(p, &opp, tq) + add_param(j, p, NULL, NULL); + + /* Resolve any variable substitutions. */ + pgen = 0; + TAILQ_FOREACH(p, &j->params, tq) { + p->gen = ++pgen; + find_vars: + STAILQ_FOREACH(s, &p->val, tq) { + varoff = 0; + while ((v = STAILQ_FIRST(&s->vars))) { + TAILQ_FOREACH(vp, &j->params, tq) + if (!strcmp(vp->name, v->name)) + break; + if (!vp) { + jail_warnx(j, + "%s: variable \"%s\" not found", + p->name, v->name); + bad_var: + j->flags |= JF_FAILED; + TAILQ_FOREACH(vp, &j->params, tq) + if (vp->gen == pgen) + vp->flags |= PF_BAD; + goto free_var; + } + if (vp->flags & PF_BAD) + goto bad_var; + if (vp->gen == pgen) { + jail_warnx(j, "%s: variable loop", + v->name); + goto bad_var; + } + STAILQ_FOREACH(vs, &vp->val, tq) + if (!STAILQ_EMPTY(&vs->vars)) { + vp->gen = pgen; + TAILQ_REMOVE(&j->params, vp, + tq); + TAILQ_INSERT_BEFORE(p, vp, tq); + p = vp; + goto find_vars; + } + vs = STAILQ_FIRST(&vp->val); + if (STAILQ_NEXT(vs, tq) != NULL && + (s->s[0] != '\0' || + STAILQ_NEXT(v, tq))) { + jail_warnx(j, "%s: array cannot be " + "substituted inline", + p->name); + goto bad_var; + } + s->s = erealloc(s->s, s->len + vs->len + 1); + memmove(s->s + v->pos + varoff + vs->len, + s->s + v->pos + varoff, + s->len - (v->pos + varoff) + 1); + memcpy(s->s + v->pos + varoff, vs->s, vs->len); + varoff += vs->len; + s->len += vs->len; + while ((vs = STAILQ_NEXT(vs, tq))) { + ns = emalloc(sizeof(struct cfstring)); + ns->s = estrdup(vs->s); + ns->len = vs->len; + STAILQ_INIT(&ns->vars); + STAILQ_INSERT_AFTER(&p->val, s, ns, tq); + s = ns; + } + free_var: + free(v->name); + STAILQ_REMOVE_HEAD(&s->vars, tq); + free(v); + } + } + } + + /* Free the jail's original parameter list and any variables. */ + while ((p = TAILQ_FIRST(&opp))) + free_param(&opp, p); + TAILQ_FOREACH_SAFE(p, &j->params, tq, tp) + if (p->flags & PF_VAR) + free_param(&j->params, p); + } + while ((wj = TAILQ_FIRST(&wild))) { + free(wj->name); + while ((p = TAILQ_FIRST(&wj->params))) + free_param(&wj->params, p); + TAILQ_REMOVE(&wild, wj, tq); + } +} + +/* + * Create a new jail record. + */ +struct cfjail * +add_jail(void) +{ + struct cfjail *j; + + j = emalloc(sizeof(struct cfjail)); + memset(j, 0, sizeof(struct cfjail)); + TAILQ_INIT(&j->params); + STAILQ_INIT(&j->dep[DEP_FROM]); + STAILQ_INIT(&j->dep[DEP_TO]); + j->queue = &cfjails; + TAILQ_INSERT_TAIL(&cfjails, j, tq); + return j; +} + +/* + * Add a parameter to a jail. + */ +void +add_param(struct cfjail *j, const struct cfparam *p, const char *name, + const char *value) +{ + struct cfstrings nss; + struct cfparam *dp, *np; + struct cfstring *s, *ns; + struct cfvar *v, *nv; + unsigned flags; + + if (j == NULL) { + /* Create a single anonymous jail if one doesn't yet exist. */ + j = TAILQ_LAST(&cfjails, cfjails); + if (j == NULL) + j = add_jail(); + } + STAILQ_INIT(&nss); + if (p != NULL) { + name = p->name; *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-projects@FreeBSD.ORG Wed Oct 20 21:18:21 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D221D10656A5; Wed, 20 Oct 2010 21:18:21 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A6D7F8FC0A; Wed, 20 Oct 2010 21:18:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9KLILtc069163; Wed, 20 Oct 2010 21:18:21 GMT (envelope-from jamie@svn.freebsd.org) Received: (from jamie@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9KLILkb069162; Wed, 20 Oct 2010 21:18:21 GMT (envelope-from jamie@svn.freebsd.org) Message-Id: <201010202118.o9KLILkb069162@svn.freebsd.org> From: Jamie Gritton Date: Wed, 20 Oct 2010 21:18:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214120 - in projects/jailconf/lib: . libc X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2010 21:18:21 -0000 Author: jamie Date: Wed Oct 20 21:18:21 2010 New Revision: 214120 URL: http://svn.freebsd.org/changeset/base/214120 Log: Import section 2 man files so I can update jail(2). Added: projects/jailconf/lib/ projects/jailconf/lib/libc/ - copied from r214119, head/lib/libc/sys/ Directory Properties: projects/jailconf/lib/libc/sys/ (props changed) From owner-svn-src-projects@FreeBSD.ORG Wed Oct 20 21:19:37 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 439011065674; Wed, 20 Oct 2010 21:19:37 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 180BE8FC1F; Wed, 20 Oct 2010 21:19:37 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9KLJaXM069217; Wed, 20 Oct 2010 21:19:36 GMT (envelope-from jamie@svn.freebsd.org) Received: (from jamie@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9KLJaZi069215; Wed, 20 Oct 2010 21:19:36 GMT (envelope-from jamie@svn.freebsd.org) Message-Id: <201010202119.o9KLJaZi069215@svn.freebsd.org> From: Jamie Gritton Date: Wed, 20 Oct 2010 21:19:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214121 - projects/jailconf/lib/libc/sys X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2010 21:19:37 -0000 Author: jamie Date: Wed Oct 20 21:19:36 2010 New Revision: 214121 URL: http://svn.freebsd.org/changeset/base/214121 Log: Remove a section that went to jail(8), and fix a small grammar error. Modified: projects/jailconf/lib/libc/sys/jail.2 Modified: projects/jailconf/lib/libc/sys/jail.2 ============================================================================== --- projects/jailconf/lib/libc/sys/jail.2 Wed Oct 20 21:18:21 2010 (r214120) +++ projects/jailconf/lib/libc/sys/jail.2 Wed Oct 20 21:19:36 2010 (r214121) @@ -247,44 +247,6 @@ They return \-1 on failure, and set to indicate the error. .Pp .Rv -std jail_attach jail_remove -.Sh PRISON? -Once a process has been put in a prison, it and its descendants cannot escape -the prison. -.Pp -Inside the prison, the concept of -.Dq superuser -is very diluted. -In general, -it can be assumed that nothing can be mangled from inside a prison which -does not exist entirely inside that prison. -For instance the directory -tree below -.Dq Li path -can be manipulated all the ways a root can normally do it, including -.Dq Li "rm -rf /*" -but new device special nodes cannot be created because they reference -shared resources (the device drivers in the kernel). -The effective -.Dq securelevel -for a process is the greater of the global -.Dq securelevel -or, if present, the per-jail -.Dq securelevel . -.Pp -All IP activity will be forced to happen to/from the IP number specified, -which should be an alias on one of the network interfaces. -All connections to/from the loopback address -.Pf ( Li 127.0.0.1 -for IPv4, -.Li ::1 -for IPv6) will be changed to be to/from the primary address -of the jail for the given address family. -.Pp -It is possible to identify a process as jailed by examining -.Dq Li /proc//status : -it will show a field near the end of the line, either as -a single hyphen for a process at large, or the name currently -set for the prison for jailed processes. .Sh ERRORS The .Fn jail @@ -413,7 +375,7 @@ and .Fn jail_attach call .Xr chroot 2 -internally, so it can fail for all the same reasons. +internally, so they can fail for all the same reasons. Please consult the .Xr chroot 2 manual page for details. From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 19:11:16 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1049C106564A; Thu, 21 Oct 2010 19:11:16 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EF7298FC08; Thu, 21 Oct 2010 19:11:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LJBF0m000764; Thu, 21 Oct 2010 19:11:15 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LJBFF3000761; Thu, 21 Oct 2010 19:11:15 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010211911.o9LJBFF3000761@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 19:11:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214157 - in projects/binutils-2.17/contrib/binutils: . bfd bfd/doc bfd/po binutils binutils/doc binutils/po config contrib etc gas gas/config gas/doc gas/po gprof gprof/po include incl... X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 19:11:16 -0000 Author: dim Date: Thu Oct 21 19:11:14 2010 New Revision: 214157 URL: http://svn.freebsd.org/changeset/base/214157 Log: Merge ^vendor/binutils/dist@214082 into contrib/binutils. Added: projects/binutils-2.17/contrib/binutils/bfd/elf-vxworks.c - copied unchanged from r214082, vendor/binutils/dist/bfd/elf-vxworks.c projects/binutils-2.17/contrib/binutils/bfd/elf-vxworks.h - copied unchanged from r214082, vendor/binutils/dist/bfd/elf-vxworks.h projects/binutils-2.17/contrib/binutils/bfd/elf32-arm.c - copied, changed from r214082, vendor/binutils/dist/bfd/elf32-arm.c projects/binutils-2.17/contrib/binutils/bfd/elfxx-sparc.c - copied unchanged from r214082, vendor/binutils/dist/bfd/elfxx-sparc.c projects/binutils-2.17/contrib/binutils/bfd/elfxx-sparc.h - copied unchanged from r214082, vendor/binutils/dist/bfd/elfxx-sparc.h projects/binutils-2.17/contrib/binutils/binutils/dwarf.c - copied unchanged from r214082, vendor/binutils/dist/binutils/dwarf.c projects/binutils-2.17/contrib/binutils/binutils/dwarf.h - copied unchanged from r214082, vendor/binutils/dist/binutils/dwarf.h projects/binutils-2.17/contrib/binutils/gas/itbl-lex.h - copied unchanged from r214082, vendor/binutils/dist/gas/itbl-lex.h projects/binutils-2.17/contrib/binutils/include/elf/bfin.h - copied unchanged from r214082, vendor/binutils/dist/include/elf/bfin.h projects/binutils-2.17/contrib/binutils/include/elf/crx.h - copied unchanged from r214082, vendor/binutils/dist/include/elf/crx.h projects/binutils-2.17/contrib/binutils/include/elf/m32c.h - copied unchanged from r214082, vendor/binutils/dist/include/elf/m32c.h projects/binutils-2.17/contrib/binutils/include/elf/mt.h - copied unchanged from r214082, vendor/binutils/dist/include/elf/mt.h projects/binutils-2.17/contrib/binutils/ld/emulparams/elf32ppccommon.sh - copied unchanged from r214082, vendor/binutils/dist/ld/emulparams/elf32ppccommon.sh projects/binutils-2.17/contrib/binutils/libiberty/at-file.texi - copied unchanged from r214082, vendor/binutils/dist/libiberty/at-file.texi projects/binutils-2.17/contrib/binutils/libiberty/pexecute.c - copied unchanged from r214082, vendor/binutils/dist/libiberty/pexecute.c projects/binutils-2.17/contrib/binutils/libiberty/unlink-if-ordinary.c - copied unchanged from r214082, vendor/binutils/dist/libiberty/unlink-if-ordinary.c Deleted: projects/binutils-2.17/contrib/binutils/bfd/aout-encap.c projects/binutils-2.17/contrib/binutils/bfd/elf32-arm.h projects/binutils-2.17/contrib/binutils/bfd/elfarm-nabi.c projects/binutils-2.17/contrib/binutils/bfd/elfarm-oabi.c projects/binutils-2.17/contrib/binutils/config.if projects/binutils-2.17/contrib/binutils/config/mh-mingw32 projects/binutils-2.17/contrib/binutils/config/mt-linux projects/binutils-2.17/contrib/binutils/contrib/ projects/binutils-2.17/contrib/binutils/gas/bignum-copy.c projects/binutils-2.17/contrib/binutils/gas/config/te-aux.h projects/binutils-2.17/contrib/binutils/gas/config/te-ppcnw.h projects/binutils-2.17/contrib/binutils/gas/config/te-sysv32.h projects/binutils-2.17/contrib/binutils/gas/link.cmd projects/binutils-2.17/contrib/binutils/ld/emulparams/armelf_oabi.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/i386freebsd.sh projects/binutils-2.17/contrib/binutils/ld/emultempl/armelf_oabi.em projects/binutils-2.17/contrib/binutils/ld/emultempl/mipself.em projects/binutils-2.17/contrib/binutils/libiberty/config.table projects/binutils-2.17/contrib/binutils/opcodes/arm-opc.h Modified: projects/binutils-2.17/contrib/binutils/ChangeLog projects/binutils-2.17/contrib/binutils/MAINTAINERS projects/binutils-2.17/contrib/binutils/Makefile.def projects/binutils-2.17/contrib/binutils/Makefile.in projects/binutils-2.17/contrib/binutils/Makefile.tpl projects/binutils-2.17/contrib/binutils/bfd/ChangeLog projects/binutils-2.17/contrib/binutils/bfd/Makefile.am projects/binutils-2.17/contrib/binutils/bfd/Makefile.in projects/binutils-2.17/contrib/binutils/bfd/acinclude.m4 projects/binutils-2.17/contrib/binutils/bfd/aclocal.m4 projects/binutils-2.17/contrib/binutils/bfd/aout-arm.c projects/binutils-2.17/contrib/binutils/bfd/aout-sparcle.c projects/binutils-2.17/contrib/binutils/bfd/aout-target.h projects/binutils-2.17/contrib/binutils/bfd/aout0.c projects/binutils-2.17/contrib/binutils/bfd/aout32.c projects/binutils-2.17/contrib/binutils/bfd/aout64.c projects/binutils-2.17/contrib/binutils/bfd/aoutf1.h projects/binutils-2.17/contrib/binutils/bfd/aoutx.h projects/binutils-2.17/contrib/binutils/bfd/archive.c projects/binutils-2.17/contrib/binutils/bfd/archive64.c projects/binutils-2.17/contrib/binutils/bfd/archures.c projects/binutils-2.17/contrib/binutils/bfd/armnetbsd.c projects/binutils-2.17/contrib/binutils/bfd/bfd-in.h projects/binutils-2.17/contrib/binutils/bfd/bfd-in2.h projects/binutils-2.17/contrib/binutils/bfd/bfd.c projects/binutils-2.17/contrib/binutils/bfd/bfdio.c projects/binutils-2.17/contrib/binutils/bfd/bfdwin.c projects/binutils-2.17/contrib/binutils/bfd/binary.c projects/binutils-2.17/contrib/binutils/bfd/bout.c projects/binutils-2.17/contrib/binutils/bfd/cache.c projects/binutils-2.17/contrib/binutils/bfd/coff-alpha.c projects/binutils-2.17/contrib/binutils/bfd/coff-arm.c projects/binutils-2.17/contrib/binutils/bfd/coff-aux.c projects/binutils-2.17/contrib/binutils/bfd/coff-i386.c projects/binutils-2.17/contrib/binutils/bfd/coff-ia64.c projects/binutils-2.17/contrib/binutils/bfd/coff-mips.c projects/binutils-2.17/contrib/binutils/bfd/coff-ppc.c projects/binutils-2.17/contrib/binutils/bfd/coff-rs6000.c projects/binutils-2.17/contrib/binutils/bfd/coff-sparc.c projects/binutils-2.17/contrib/binutils/bfd/coff64-rs6000.c projects/binutils-2.17/contrib/binutils/bfd/coffcode.h projects/binutils-2.17/contrib/binutils/bfd/coffgen.c projects/binutils-2.17/contrib/binutils/bfd/cofflink.c projects/binutils-2.17/contrib/binutils/bfd/coffswap.h projects/binutils-2.17/contrib/binutils/bfd/config.bfd projects/binutils-2.17/contrib/binutils/bfd/config.in projects/binutils-2.17/contrib/binutils/bfd/configure projects/binutils-2.17/contrib/binutils/bfd/configure.host projects/binutils-2.17/contrib/binutils/bfd/configure.in projects/binutils-2.17/contrib/binutils/bfd/corefile.c projects/binutils-2.17/contrib/binutils/bfd/cpu-alpha.c projects/binutils-2.17/contrib/binutils/bfd/cpu-arc.c projects/binutils-2.17/contrib/binutils/bfd/cpu-arm.c projects/binutils-2.17/contrib/binutils/bfd/cpu-i386.c projects/binutils-2.17/contrib/binutils/bfd/cpu-ia64-opc.c projects/binutils-2.17/contrib/binutils/bfd/cpu-ia64.c projects/binutils-2.17/contrib/binutils/bfd/cpu-powerpc.c projects/binutils-2.17/contrib/binutils/bfd/cpu-rs6000.c projects/binutils-2.17/contrib/binutils/bfd/cpu-s390.c projects/binutils-2.17/contrib/binutils/bfd/cpu-sparc.c projects/binutils-2.17/contrib/binutils/bfd/demo64.c projects/binutils-2.17/contrib/binutils/bfd/dep-in.sed projects/binutils-2.17/contrib/binutils/bfd/doc/ChangeLog projects/binutils-2.17/contrib/binutils/bfd/doc/Makefile.am projects/binutils-2.17/contrib/binutils/bfd/doc/Makefile.in projects/binutils-2.17/contrib/binutils/bfd/doc/aoutx.texi projects/binutils-2.17/contrib/binutils/bfd/doc/archive.texi projects/binutils-2.17/contrib/binutils/bfd/doc/archures.texi projects/binutils-2.17/contrib/binutils/bfd/doc/bfd.texinfo projects/binutils-2.17/contrib/binutils/bfd/doc/bfdint.texi projects/binutils-2.17/contrib/binutils/bfd/doc/bfdio.texi projects/binutils-2.17/contrib/binutils/bfd/doc/bfdt.texi projects/binutils-2.17/contrib/binutils/bfd/doc/cache.texi projects/binutils-2.17/contrib/binutils/bfd/doc/chew.c projects/binutils-2.17/contrib/binutils/bfd/doc/coffcode.texi projects/binutils-2.17/contrib/binutils/bfd/doc/core.texi projects/binutils-2.17/contrib/binutils/bfd/doc/elf.texi projects/binutils-2.17/contrib/binutils/bfd/doc/fdl.texi projects/binutils-2.17/contrib/binutils/bfd/doc/format.texi projects/binutils-2.17/contrib/binutils/bfd/doc/hash.texi projects/binutils-2.17/contrib/binutils/bfd/doc/init.texi projects/binutils-2.17/contrib/binutils/bfd/doc/libbfd.texi projects/binutils-2.17/contrib/binutils/bfd/doc/linker.texi projects/binutils-2.17/contrib/binutils/bfd/doc/mmo.texi projects/binutils-2.17/contrib/binutils/bfd/doc/opncls.texi projects/binutils-2.17/contrib/binutils/bfd/doc/reloc.texi projects/binutils-2.17/contrib/binutils/bfd/doc/section.texi projects/binutils-2.17/contrib/binutils/bfd/doc/syms.texi projects/binutils-2.17/contrib/binutils/bfd/doc/targets.texi projects/binutils-2.17/contrib/binutils/bfd/dwarf1.c projects/binutils-2.17/contrib/binutils/bfd/dwarf2.c projects/binutils-2.17/contrib/binutils/bfd/ecoff.c projects/binutils-2.17/contrib/binutils/bfd/ecofflink.c projects/binutils-2.17/contrib/binutils/bfd/ecoffswap.h projects/binutils-2.17/contrib/binutils/bfd/efi-app-ia32.c projects/binutils-2.17/contrib/binutils/bfd/efi-app-ia64.c projects/binutils-2.17/contrib/binutils/bfd/elf-bfd.h projects/binutils-2.17/contrib/binutils/bfd/elf-eh-frame.c projects/binutils-2.17/contrib/binutils/bfd/elf-strtab.c projects/binutils-2.17/contrib/binutils/bfd/elf.c projects/binutils-2.17/contrib/binutils/bfd/elf32-arc.c projects/binutils-2.17/contrib/binutils/bfd/elf32-gen.c projects/binutils-2.17/contrib/binutils/bfd/elf32-i386.c projects/binutils-2.17/contrib/binutils/bfd/elf32-mips.c projects/binutils-2.17/contrib/binutils/bfd/elf32-ppc.c projects/binutils-2.17/contrib/binutils/bfd/elf32-ppc.h projects/binutils-2.17/contrib/binutils/bfd/elf32-s390.c projects/binutils-2.17/contrib/binutils/bfd/elf32-sparc.c projects/binutils-2.17/contrib/binutils/bfd/elf32.c projects/binutils-2.17/contrib/binutils/bfd/elf64-alpha.c projects/binutils-2.17/contrib/binutils/bfd/elf64-gen.c projects/binutils-2.17/contrib/binutils/bfd/elf64-mips.c projects/binutils-2.17/contrib/binutils/bfd/elf64-ppc.c projects/binutils-2.17/contrib/binutils/bfd/elf64-ppc.h projects/binutils-2.17/contrib/binutils/bfd/elf64-s390.c projects/binutils-2.17/contrib/binutils/bfd/elf64-sparc.c projects/binutils-2.17/contrib/binutils/bfd/elf64-x86-64.c projects/binutils-2.17/contrib/binutils/bfd/elf64.c projects/binutils-2.17/contrib/binutils/bfd/elfcode.h projects/binutils-2.17/contrib/binutils/bfd/elfcore.h projects/binutils-2.17/contrib/binutils/bfd/elflink.c projects/binutils-2.17/contrib/binutils/bfd/elfn32-mips.c projects/binutils-2.17/contrib/binutils/bfd/elfxx-ia64.c projects/binutils-2.17/contrib/binutils/bfd/elfxx-mips.c projects/binutils-2.17/contrib/binutils/bfd/elfxx-mips.h projects/binutils-2.17/contrib/binutils/bfd/elfxx-target.h projects/binutils-2.17/contrib/binutils/bfd/format.c projects/binutils-2.17/contrib/binutils/bfd/freebsd.h projects/binutils-2.17/contrib/binutils/bfd/gen-aout.c projects/binutils-2.17/contrib/binutils/bfd/genlink.h projects/binutils-2.17/contrib/binutils/bfd/hash.c projects/binutils-2.17/contrib/binutils/bfd/host-aout.c projects/binutils-2.17/contrib/binutils/bfd/i386aout.c projects/binutils-2.17/contrib/binutils/bfd/i386bsd.c projects/binutils-2.17/contrib/binutils/bfd/i386freebsd.c projects/binutils-2.17/contrib/binutils/bfd/i386linux.c projects/binutils-2.17/contrib/binutils/bfd/i386netbsd.c projects/binutils-2.17/contrib/binutils/bfd/ieee.c projects/binutils-2.17/contrib/binutils/bfd/ihex.c projects/binutils-2.17/contrib/binutils/bfd/init.c projects/binutils-2.17/contrib/binutils/bfd/libaout.h projects/binutils-2.17/contrib/binutils/bfd/libbfd-in.h projects/binutils-2.17/contrib/binutils/bfd/libbfd.c projects/binutils-2.17/contrib/binutils/bfd/libbfd.h projects/binutils-2.17/contrib/binutils/bfd/libcoff-in.h projects/binutils-2.17/contrib/binutils/bfd/libcoff.h projects/binutils-2.17/contrib/binutils/bfd/libecoff.h projects/binutils-2.17/contrib/binutils/bfd/libieee.h projects/binutils-2.17/contrib/binutils/bfd/libpei.h projects/binutils-2.17/contrib/binutils/bfd/libxcoff.h projects/binutils-2.17/contrib/binutils/bfd/linker.c projects/binutils-2.17/contrib/binutils/bfd/merge.c projects/binutils-2.17/contrib/binutils/bfd/mipsbsd.c projects/binutils-2.17/contrib/binutils/bfd/netbsd-core.c projects/binutils-2.17/contrib/binutils/bfd/netbsd.h projects/binutils-2.17/contrib/binutils/bfd/opncls.c projects/binutils-2.17/contrib/binutils/bfd/osf-core.c projects/binutils-2.17/contrib/binutils/bfd/pe-arm.c projects/binutils-2.17/contrib/binutils/bfd/pe-i386.c projects/binutils-2.17/contrib/binutils/bfd/pe-mips.c projects/binutils-2.17/contrib/binutils/bfd/pe-ppc.c projects/binutils-2.17/contrib/binutils/bfd/peXXigen.c projects/binutils-2.17/contrib/binutils/bfd/pei-mips.c projects/binutils-2.17/contrib/binutils/bfd/peicode.h projects/binutils-2.17/contrib/binutils/bfd/po/Make-in projects/binutils-2.17/contrib/binutils/bfd/po/SRC-POTFILES.in projects/binutils-2.17/contrib/binutils/bfd/po/bfd.pot projects/binutils-2.17/contrib/binutils/bfd/ppcboot.c projects/binutils-2.17/contrib/binutils/bfd/ptrace-core.c projects/binutils-2.17/contrib/binutils/bfd/reloc.c projects/binutils-2.17/contrib/binutils/bfd/reloc16.c projects/binutils-2.17/contrib/binutils/bfd/rs6000-core.c projects/binutils-2.17/contrib/binutils/bfd/sco5-core.c projects/binutils-2.17/contrib/binutils/bfd/section.c projects/binutils-2.17/contrib/binutils/bfd/simple.c projects/binutils-2.17/contrib/binutils/bfd/sparclinux.c projects/binutils-2.17/contrib/binutils/bfd/sparcnetbsd.c projects/binutils-2.17/contrib/binutils/bfd/srec.c projects/binutils-2.17/contrib/binutils/bfd/stab-syms.c projects/binutils-2.17/contrib/binutils/bfd/stabs.c projects/binutils-2.17/contrib/binutils/bfd/sunos.c projects/binutils-2.17/contrib/binutils/bfd/syms.c projects/binutils-2.17/contrib/binutils/bfd/sysdep.h projects/binutils-2.17/contrib/binutils/bfd/targets.c projects/binutils-2.17/contrib/binutils/bfd/tekhex.c projects/binutils-2.17/contrib/binutils/bfd/trad-core.c projects/binutils-2.17/contrib/binutils/bfd/version.h projects/binutils-2.17/contrib/binutils/bfd/xcoff-target.h projects/binutils-2.17/contrib/binutils/bfd/xcofflink.c projects/binutils-2.17/contrib/binutils/binutils/ChangeLog projects/binutils-2.17/contrib/binutils/binutils/MAINTAINERS projects/binutils-2.17/contrib/binutils/binutils/Makefile.am projects/binutils-2.17/contrib/binutils/binutils/Makefile.in projects/binutils-2.17/contrib/binutils/binutils/NEWS projects/binutils-2.17/contrib/binutils/binutils/acinclude.m4 projects/binutils-2.17/contrib/binutils/binutils/aclocal.m4 projects/binutils-2.17/contrib/binutils/binutils/addr2line.c projects/binutils-2.17/contrib/binutils/binutils/ar.c projects/binutils-2.17/contrib/binutils/binutils/arlex.l projects/binutils-2.17/contrib/binutils/binutils/arparse.y projects/binutils-2.17/contrib/binutils/binutils/arsup.c projects/binutils-2.17/contrib/binutils/binutils/arsup.h projects/binutils-2.17/contrib/binutils/binutils/binemul.c projects/binutils-2.17/contrib/binutils/binutils/binemul.h projects/binutils-2.17/contrib/binutils/binutils/bucomm.c projects/binutils-2.17/contrib/binutils/binutils/bucomm.h projects/binutils-2.17/contrib/binutils/binutils/budbg.h projects/binutils-2.17/contrib/binutils/binutils/budemang.c projects/binutils-2.17/contrib/binutils/binutils/budemang.h projects/binutils-2.17/contrib/binutils/binutils/coffdump.c projects/binutils-2.17/contrib/binutils/binutils/coffgrok.c projects/binutils-2.17/contrib/binutils/binutils/coffgrok.h projects/binutils-2.17/contrib/binutils/binutils/config.in projects/binutils-2.17/contrib/binutils/binutils/configure projects/binutils-2.17/contrib/binutils/binutils/configure.in projects/binutils-2.17/contrib/binutils/binutils/cxxfilt.c projects/binutils-2.17/contrib/binutils/binutils/debug.c projects/binutils-2.17/contrib/binutils/binutils/debug.h projects/binutils-2.17/contrib/binutils/binutils/deflex.l projects/binutils-2.17/contrib/binutils/binutils/defparse.c projects/binutils-2.17/contrib/binutils/binutils/defparse.h projects/binutils-2.17/contrib/binutils/binutils/defparse.y projects/binutils-2.17/contrib/binutils/binutils/dep-in.sed projects/binutils-2.17/contrib/binutils/binutils/dlltool.c projects/binutils-2.17/contrib/binutils/binutils/dlltool.h projects/binutils-2.17/contrib/binutils/binutils/dllwrap.c projects/binutils-2.17/contrib/binutils/binutils/doc/Makefile.am projects/binutils-2.17/contrib/binutils/binutils/doc/Makefile.in projects/binutils-2.17/contrib/binutils/binutils/doc/addr2line.1 projects/binutils-2.17/contrib/binutils/binutils/doc/ar.1 projects/binutils-2.17/contrib/binutils/binutils/doc/binutils.texi projects/binutils-2.17/contrib/binutils/binutils/doc/cxxfilt.man projects/binutils-2.17/contrib/binutils/binutils/doc/dlltool.1 projects/binutils-2.17/contrib/binutils/binutils/doc/fdl.texi projects/binutils-2.17/contrib/binutils/binutils/doc/nm.1 projects/binutils-2.17/contrib/binutils/binutils/doc/objcopy.1 projects/binutils-2.17/contrib/binutils/binutils/doc/objdump.1 projects/binutils-2.17/contrib/binutils/binutils/doc/ranlib.1 projects/binutils-2.17/contrib/binutils/binutils/doc/readelf.1 projects/binutils-2.17/contrib/binutils/binutils/doc/size.1 projects/binutils-2.17/contrib/binutils/binutils/doc/strings.1 projects/binutils-2.17/contrib/binutils/binutils/doc/strip.1 projects/binutils-2.17/contrib/binutils/binutils/emul_vanilla.c projects/binutils-2.17/contrib/binutils/binutils/filemode.c projects/binutils-2.17/contrib/binutils/binutils/ieee.c projects/binutils-2.17/contrib/binutils/binutils/nm.c projects/binutils-2.17/contrib/binutils/binutils/objcopy.c projects/binutils-2.17/contrib/binutils/binutils/objdump.c projects/binutils-2.17/contrib/binutils/binutils/po/Make-in projects/binutils-2.17/contrib/binutils/binutils/po/POTFILES.in projects/binutils-2.17/contrib/binutils/binutils/po/binutils.pot projects/binutils-2.17/contrib/binutils/binutils/prdbg.c projects/binutils-2.17/contrib/binutils/binutils/ranlib.sh projects/binutils-2.17/contrib/binutils/binutils/rclex.c projects/binutils-2.17/contrib/binutils/binutils/rclex.l projects/binutils-2.17/contrib/binutils/binutils/rcparse.y projects/binutils-2.17/contrib/binutils/binutils/rdcoff.c projects/binutils-2.17/contrib/binutils/binutils/rddbg.c projects/binutils-2.17/contrib/binutils/binutils/readelf.c projects/binutils-2.17/contrib/binutils/binutils/rename.c projects/binutils-2.17/contrib/binutils/binutils/resbin.c projects/binutils-2.17/contrib/binutils/binutils/rescoff.c projects/binutils-2.17/contrib/binutils/binutils/resrc.c projects/binutils-2.17/contrib/binutils/binutils/resres.c projects/binutils-2.17/contrib/binutils/binutils/size.c projects/binutils-2.17/contrib/binutils/binutils/srconv.c projects/binutils-2.17/contrib/binutils/binutils/stabs.c projects/binutils-2.17/contrib/binutils/binutils/strings.c projects/binutils-2.17/contrib/binutils/binutils/sysdump.c projects/binutils-2.17/contrib/binutils/binutils/sysinfo.y projects/binutils-2.17/contrib/binutils/binutils/syslex.l projects/binutils-2.17/contrib/binutils/binutils/unwind-ia64.c projects/binutils-2.17/contrib/binutils/binutils/unwind-ia64.h projects/binutils-2.17/contrib/binutils/binutils/version.c projects/binutils-2.17/contrib/binutils/binutils/wrstabs.c projects/binutils-2.17/contrib/binutils/config-ml.in projects/binutils-2.17/contrib/binutils/config.guess projects/binutils-2.17/contrib/binutils/config.sub projects/binutils-2.17/contrib/binutils/config/ChangeLog projects/binutils-2.17/contrib/binutils/configure projects/binutils-2.17/contrib/binutils/configure.in projects/binutils-2.17/contrib/binutils/etc/ChangeLog projects/binutils-2.17/contrib/binutils/etc/Makefile.in projects/binutils-2.17/contrib/binutils/gas/ChangeLog projects/binutils-2.17/contrib/binutils/gas/ChangeLog-0001 projects/binutils-2.17/contrib/binutils/gas/ChangeLog-0203 projects/binutils-2.17/contrib/binutils/gas/ChangeLog-9295 projects/binutils-2.17/contrib/binutils/gas/ChangeLog-9697 projects/binutils-2.17/contrib/binutils/gas/ChangeLog-9899 projects/binutils-2.17/contrib/binutils/gas/Makefile.am projects/binutils-2.17/contrib/binutils/gas/Makefile.in projects/binutils-2.17/contrib/binutils/gas/NEWS projects/binutils-2.17/contrib/binutils/gas/README projects/binutils-2.17/contrib/binutils/gas/acinclude.m4 projects/binutils-2.17/contrib/binutils/gas/aclocal.m4 projects/binutils-2.17/contrib/binutils/gas/app.c projects/binutils-2.17/contrib/binutils/gas/as.c projects/binutils-2.17/contrib/binutils/gas/as.h projects/binutils-2.17/contrib/binutils/gas/asintl.h projects/binutils-2.17/contrib/binutils/gas/atof-generic.c projects/binutils-2.17/contrib/binutils/gas/bignum.h projects/binutils-2.17/contrib/binutils/gas/bit_fix.h projects/binutils-2.17/contrib/binutils/gas/cgen.c projects/binutils-2.17/contrib/binutils/gas/cgen.h projects/binutils-2.17/contrib/binutils/gas/cond.c projects/binutils-2.17/contrib/binutils/gas/config.in projects/binutils-2.17/contrib/binutils/gas/config/aout_gnu.h projects/binutils-2.17/contrib/binutils/gas/config/atof-ieee.c projects/binutils-2.17/contrib/binutils/gas/config/atof-vax.c projects/binutils-2.17/contrib/binutils/gas/config/itbl-mips.h projects/binutils-2.17/contrib/binutils/gas/config/obj-aout.c projects/binutils-2.17/contrib/binutils/gas/config/obj-aout.h projects/binutils-2.17/contrib/binutils/gas/config/obj-coff.c projects/binutils-2.17/contrib/binutils/gas/config/obj-coff.h projects/binutils-2.17/contrib/binutils/gas/config/obj-ecoff.c projects/binutils-2.17/contrib/binutils/gas/config/obj-ecoff.h projects/binutils-2.17/contrib/binutils/gas/config/obj-elf.c projects/binutils-2.17/contrib/binutils/gas/config/obj-elf.h projects/binutils-2.17/contrib/binutils/gas/config/obj-ieee.c projects/binutils-2.17/contrib/binutils/gas/config/obj-ieee.h projects/binutils-2.17/contrib/binutils/gas/config/obj-multi.h projects/binutils-2.17/contrib/binutils/gas/config/tc-alpha.c projects/binutils-2.17/contrib/binutils/gas/config/tc-alpha.h projects/binutils-2.17/contrib/binutils/gas/config/tc-arc.c projects/binutils-2.17/contrib/binutils/gas/config/tc-arc.h projects/binutils-2.17/contrib/binutils/gas/config/tc-arm.c projects/binutils-2.17/contrib/binutils/gas/config/tc-arm.h projects/binutils-2.17/contrib/binutils/gas/config/tc-generic.c projects/binutils-2.17/contrib/binutils/gas/config/tc-generic.h projects/binutils-2.17/contrib/binutils/gas/config/tc-i386.c projects/binutils-2.17/contrib/binutils/gas/config/tc-i386.h projects/binutils-2.17/contrib/binutils/gas/config/tc-ia64.c projects/binutils-2.17/contrib/binutils/gas/config/tc-ia64.h projects/binutils-2.17/contrib/binutils/gas/config/tc-m68851.h projects/binutils-2.17/contrib/binutils/gas/config/tc-mips.c projects/binutils-2.17/contrib/binutils/gas/config/tc-mips.h projects/binutils-2.17/contrib/binutils/gas/config/tc-ppc.c projects/binutils-2.17/contrib/binutils/gas/config/tc-ppc.h projects/binutils-2.17/contrib/binutils/gas/config/tc-s390.c projects/binutils-2.17/contrib/binutils/gas/config/tc-s390.h projects/binutils-2.17/contrib/binutils/gas/config/tc-sparc.c projects/binutils-2.17/contrib/binutils/gas/config/tc-sparc.h projects/binutils-2.17/contrib/binutils/gas/config/te-386bsd.h projects/binutils-2.17/contrib/binutils/gas/config/te-freebsd.h projects/binutils-2.17/contrib/binutils/gas/config/te-nbsd.h projects/binutils-2.17/contrib/binutils/gas/config/te-sparcaout.h projects/binutils-2.17/contrib/binutils/gas/config/te-tmips.h projects/binutils-2.17/contrib/binutils/gas/configure projects/binutils-2.17/contrib/binutils/gas/configure.in projects/binutils-2.17/contrib/binutils/gas/debug.c projects/binutils-2.17/contrib/binutils/gas/dep-in.sed projects/binutils-2.17/contrib/binutils/gas/depend.c projects/binutils-2.17/contrib/binutils/gas/doc/Makefile.am projects/binutils-2.17/contrib/binutils/gas/doc/Makefile.in projects/binutils-2.17/contrib/binutils/gas/doc/all.texi projects/binutils-2.17/contrib/binutils/gas/doc/as.1 projects/binutils-2.17/contrib/binutils/gas/doc/as.texinfo projects/binutils-2.17/contrib/binutils/gas/doc/c-alpha.texi projects/binutils-2.17/contrib/binutils/gas/doc/c-arc.texi projects/binutils-2.17/contrib/binutils/gas/doc/c-arm.texi projects/binutils-2.17/contrib/binutils/gas/doc/c-i386.texi projects/binutils-2.17/contrib/binutils/gas/doc/c-ia64.texi projects/binutils-2.17/contrib/binutils/gas/doc/c-mips.texi projects/binutils-2.17/contrib/binutils/gas/doc/c-ppc.texi projects/binutils-2.17/contrib/binutils/gas/doc/c-sh.texi projects/binutils-2.17/contrib/binutils/gas/doc/c-sparc.texi projects/binutils-2.17/contrib/binutils/gas/doc/gasver.texi projects/binutils-2.17/contrib/binutils/gas/doc/internals.texi projects/binutils-2.17/contrib/binutils/gas/dw2gencfi.c projects/binutils-2.17/contrib/binutils/gas/dw2gencfi.h projects/binutils-2.17/contrib/binutils/gas/dwarf2dbg.c projects/binutils-2.17/contrib/binutils/gas/dwarf2dbg.h projects/binutils-2.17/contrib/binutils/gas/ecoff.c projects/binutils-2.17/contrib/binutils/gas/ecoff.h projects/binutils-2.17/contrib/binutils/gas/ehopt.c projects/binutils-2.17/contrib/binutils/gas/emul-target.h projects/binutils-2.17/contrib/binutils/gas/emul.h projects/binutils-2.17/contrib/binutils/gas/expr.c projects/binutils-2.17/contrib/binutils/gas/expr.h projects/binutils-2.17/contrib/binutils/gas/flonum-copy.c projects/binutils-2.17/contrib/binutils/gas/flonum-konst.c projects/binutils-2.17/contrib/binutils/gas/flonum-mult.c projects/binutils-2.17/contrib/binutils/gas/flonum.h projects/binutils-2.17/contrib/binutils/gas/frags.c projects/binutils-2.17/contrib/binutils/gas/frags.h projects/binutils-2.17/contrib/binutils/gas/hash.c projects/binutils-2.17/contrib/binutils/gas/hash.h projects/binutils-2.17/contrib/binutils/gas/input-file.c projects/binutils-2.17/contrib/binutils/gas/input-file.h projects/binutils-2.17/contrib/binutils/gas/input-scrub.c projects/binutils-2.17/contrib/binutils/gas/itbl-lex.l projects/binutils-2.17/contrib/binutils/gas/itbl-ops.c projects/binutils-2.17/contrib/binutils/gas/itbl-ops.h projects/binutils-2.17/contrib/binutils/gas/itbl-parse.y projects/binutils-2.17/contrib/binutils/gas/listing.c projects/binutils-2.17/contrib/binutils/gas/listing.h projects/binutils-2.17/contrib/binutils/gas/literal.c projects/binutils-2.17/contrib/binutils/gas/macro.c projects/binutils-2.17/contrib/binutils/gas/macro.h projects/binutils-2.17/contrib/binutils/gas/messages.c projects/binutils-2.17/contrib/binutils/gas/obj.h projects/binutils-2.17/contrib/binutils/gas/output-file.c projects/binutils-2.17/contrib/binutils/gas/output-file.h projects/binutils-2.17/contrib/binutils/gas/po/Make-in projects/binutils-2.17/contrib/binutils/gas/po/POTFILES.in projects/binutils-2.17/contrib/binutils/gas/po/gas.pot projects/binutils-2.17/contrib/binutils/gas/read.c projects/binutils-2.17/contrib/binutils/gas/read.h projects/binutils-2.17/contrib/binutils/gas/sb.c projects/binutils-2.17/contrib/binutils/gas/sb.h projects/binutils-2.17/contrib/binutils/gas/stabs.c projects/binutils-2.17/contrib/binutils/gas/struc-symbol.h projects/binutils-2.17/contrib/binutils/gas/subsegs.c projects/binutils-2.17/contrib/binutils/gas/subsegs.h projects/binutils-2.17/contrib/binutils/gas/symbols.c projects/binutils-2.17/contrib/binutils/gas/symbols.h projects/binutils-2.17/contrib/binutils/gas/tc.h projects/binutils-2.17/contrib/binutils/gas/write.c projects/binutils-2.17/contrib/binutils/gas/write.h projects/binutils-2.17/contrib/binutils/gprof/mips.c projects/binutils-2.17/contrib/binutils/gprof/po/Make-in projects/binutils-2.17/contrib/binutils/gprof/po/gprof.pot projects/binutils-2.17/contrib/binutils/include/ChangeLog projects/binutils-2.17/contrib/binutils/include/ansidecl.h projects/binutils-2.17/contrib/binutils/include/aout/ChangeLog projects/binutils-2.17/contrib/binutils/include/aout/aout64.h projects/binutils-2.17/contrib/binutils/include/aout/ar.h projects/binutils-2.17/contrib/binutils/include/aout/encap.h projects/binutils-2.17/contrib/binutils/include/aout/host.h projects/binutils-2.17/contrib/binutils/include/aout/ranlib.h projects/binutils-2.17/contrib/binutils/include/aout/reloc.h projects/binutils-2.17/contrib/binutils/include/aout/stab.def projects/binutils-2.17/contrib/binutils/include/aout/stab_gnu.h projects/binutils-2.17/contrib/binutils/include/aout/sun4.h projects/binutils-2.17/contrib/binutils/include/bfdlink.h projects/binutils-2.17/contrib/binutils/include/bin-bugs.h projects/binutils-2.17/contrib/binutils/include/coff/ChangeLog projects/binutils-2.17/contrib/binutils/include/coff/alpha.h projects/binutils-2.17/contrib/binutils/include/coff/arm.h projects/binutils-2.17/contrib/binutils/include/coff/aux-coff.h projects/binutils-2.17/contrib/binutils/include/coff/ecoff.h projects/binutils-2.17/contrib/binutils/include/coff/external.h projects/binutils-2.17/contrib/binutils/include/coff/i386.h projects/binutils-2.17/contrib/binutils/include/coff/ia64.h projects/binutils-2.17/contrib/binutils/include/coff/mips.h projects/binutils-2.17/contrib/binutils/include/coff/mipspe.h projects/binutils-2.17/contrib/binutils/include/coff/pe.h projects/binutils-2.17/contrib/binutils/include/coff/powerpc.h projects/binutils-2.17/contrib/binutils/include/coff/rs6000.h projects/binutils-2.17/contrib/binutils/include/coff/rs6k64.h projects/binutils-2.17/contrib/binutils/include/coff/sh.h projects/binutils-2.17/contrib/binutils/include/coff/sparc.h projects/binutils-2.17/contrib/binutils/include/coff/symconst.h projects/binutils-2.17/contrib/binutils/include/coff/ti.h projects/binutils-2.17/contrib/binutils/include/coff/xcoff.h projects/binutils-2.17/contrib/binutils/include/demangle.h projects/binutils-2.17/contrib/binutils/include/dis-asm.h projects/binutils-2.17/contrib/binutils/include/dyn-string.h projects/binutils-2.17/contrib/binutils/include/elf/ChangeLog projects/binutils-2.17/contrib/binutils/include/elf/ChangeLog-9103 projects/binutils-2.17/contrib/binutils/include/elf/alpha.h projects/binutils-2.17/contrib/binutils/include/elf/arc.h projects/binutils-2.17/contrib/binutils/include/elf/arm.h projects/binutils-2.17/contrib/binutils/include/elf/avr.h projects/binutils-2.17/contrib/binutils/include/elf/common.h projects/binutils-2.17/contrib/binutils/include/elf/cris.h projects/binutils-2.17/contrib/binutils/include/elf/d10v.h projects/binutils-2.17/contrib/binutils/include/elf/d30v.h projects/binutils-2.17/contrib/binutils/include/elf/dlx.h projects/binutils-2.17/contrib/binutils/include/elf/dwarf.h projects/binutils-2.17/contrib/binutils/include/elf/dwarf2.h projects/binutils-2.17/contrib/binutils/include/elf/external.h projects/binutils-2.17/contrib/binutils/include/elf/fr30.h projects/binutils-2.17/contrib/binutils/include/elf/frv.h projects/binutils-2.17/contrib/binutils/include/elf/h8.h projects/binutils-2.17/contrib/binutils/include/elf/hppa.h projects/binutils-2.17/contrib/binutils/include/elf/i370.h projects/binutils-2.17/contrib/binutils/include/elf/i386.h projects/binutils-2.17/contrib/binutils/include/elf/i860.h projects/binutils-2.17/contrib/binutils/include/elf/i960.h projects/binutils-2.17/contrib/binutils/include/elf/ia64.h projects/binutils-2.17/contrib/binutils/include/elf/internal.h projects/binutils-2.17/contrib/binutils/include/elf/ip2k.h projects/binutils-2.17/contrib/binutils/include/elf/iq2000.h projects/binutils-2.17/contrib/binutils/include/elf/m32r.h projects/binutils-2.17/contrib/binutils/include/elf/m68hc11.h projects/binutils-2.17/contrib/binutils/include/elf/m68k.h projects/binutils-2.17/contrib/binutils/include/elf/mcore.h projects/binutils-2.17/contrib/binutils/include/elf/mips.h projects/binutils-2.17/contrib/binutils/include/elf/mmix.h projects/binutils-2.17/contrib/binutils/include/elf/mn10200.h projects/binutils-2.17/contrib/binutils/include/elf/mn10300.h projects/binutils-2.17/contrib/binutils/include/elf/msp430.h projects/binutils-2.17/contrib/binutils/include/elf/openrisc.h projects/binutils-2.17/contrib/binutils/include/elf/or32.h projects/binutils-2.17/contrib/binutils/include/elf/pj.h projects/binutils-2.17/contrib/binutils/include/elf/ppc.h projects/binutils-2.17/contrib/binutils/include/elf/ppc64.h projects/binutils-2.17/contrib/binutils/include/elf/reloc-macros.h projects/binutils-2.17/contrib/binutils/include/elf/s390.h projects/binutils-2.17/contrib/binutils/include/elf/sh.h projects/binutils-2.17/contrib/binutils/include/elf/sparc.h projects/binutils-2.17/contrib/binutils/include/elf/v850.h projects/binutils-2.17/contrib/binutils/include/elf/vax.h projects/binutils-2.17/contrib/binutils/include/elf/x86-64.h projects/binutils-2.17/contrib/binutils/include/elf/xstormy16.h projects/binutils-2.17/contrib/binutils/include/elf/xtensa.h projects/binutils-2.17/contrib/binutils/include/fibheap.h projects/binutils-2.17/contrib/binutils/include/filenames.h projects/binutils-2.17/contrib/binutils/include/floatformat.h projects/binutils-2.17/contrib/binutils/include/fnmatch.h projects/binutils-2.17/contrib/binutils/include/gdbm.h projects/binutils-2.17/contrib/binutils/include/hashtab.h projects/binutils-2.17/contrib/binutils/include/ieee.h projects/binutils-2.17/contrib/binutils/include/libiberty.h projects/binutils-2.17/contrib/binutils/include/md5.h projects/binutils-2.17/contrib/binutils/include/objalloc.h projects/binutils-2.17/contrib/binutils/include/obstack.h projects/binutils-2.17/contrib/binutils/include/opcode/ChangeLog projects/binutils-2.17/contrib/binutils/include/opcode/ChangeLog-9103 projects/binutils-2.17/contrib/binutils/include/opcode/alpha.h projects/binutils-2.17/contrib/binutils/include/opcode/arc.h projects/binutils-2.17/contrib/binutils/include/opcode/arm.h projects/binutils-2.17/contrib/binutils/include/opcode/cgen.h projects/binutils-2.17/contrib/binutils/include/opcode/convex.h projects/binutils-2.17/contrib/binutils/include/opcode/i386.h projects/binutils-2.17/contrib/binutils/include/opcode/ia64.h projects/binutils-2.17/contrib/binutils/include/opcode/np1.h projects/binutils-2.17/contrib/binutils/include/opcode/pn.h projects/binutils-2.17/contrib/binutils/include/opcode/ppc.h projects/binutils-2.17/contrib/binutils/include/opcode/s390.h projects/binutils-2.17/contrib/binutils/include/opcode/sparc.h projects/binutils-2.17/contrib/binutils/include/partition.h projects/binutils-2.17/contrib/binutils/include/progress.h projects/binutils-2.17/contrib/binutils/include/safe-ctype.h projects/binutils-2.17/contrib/binutils/include/sort.h projects/binutils-2.17/contrib/binutils/include/splay-tree.h projects/binutils-2.17/contrib/binutils/include/symcat.h projects/binutils-2.17/contrib/binutils/include/ternary.h projects/binutils-2.17/contrib/binutils/include/xregex2.h projects/binutils-2.17/contrib/binutils/install-sh projects/binutils-2.17/contrib/binutils/ld/ChangeLog projects/binutils-2.17/contrib/binutils/ld/Makefile.am projects/binutils-2.17/contrib/binutils/ld/Makefile.in projects/binutils-2.17/contrib/binutils/ld/NEWS projects/binutils-2.17/contrib/binutils/ld/acinclude.m4 projects/binutils-2.17/contrib/binutils/ld/aclocal.m4 projects/binutils-2.17/contrib/binutils/ld/config.in projects/binutils-2.17/contrib/binutils/ld/configure projects/binutils-2.17/contrib/binutils/ld/configure.host projects/binutils-2.17/contrib/binutils/ld/configure.in projects/binutils-2.17/contrib/binutils/ld/configure.tgt projects/binutils-2.17/contrib/binutils/ld/deffile.h projects/binutils-2.17/contrib/binutils/ld/deffilep.y projects/binutils-2.17/contrib/binutils/ld/dep-in.sed projects/binutils-2.17/contrib/binutils/ld/emulparams/armelf.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/armelf_fbsd.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/armelf_linux.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/armelf_nbsd.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/armpe.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/elf32bmip.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/elf32bmipn32-defs.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/elf32btsmip.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/elf32ppc.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/elf32ppclinux.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/elf64_ia64.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/elf64_ia64_fbsd.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/elf64_s390.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/elf64alpha.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/elf64ppc.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/elf_i386.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/elf_s390.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/elf_x86_64.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/i386pe.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/i386pe_posix.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/mipsidt.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/mipsidtl.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/mipspe.sh projects/binutils-2.17/contrib/binutils/ld/emulparams/ppcpe.sh projects/binutils-2.17/contrib/binutils/ld/emultempl/alphaelf.em projects/binutils-2.17/contrib/binutils/ld/emultempl/armcoff.em projects/binutils-2.17/contrib/binutils/ld/emultempl/armelf.em projects/binutils-2.17/contrib/binutils/ld/emultempl/elf32.em projects/binutils-2.17/contrib/binutils/ld/emultempl/generic.em projects/binutils-2.17/contrib/binutils/ld/emultempl/ia64elf.em projects/binutils-2.17/contrib/binutils/ld/emultempl/linux.em projects/binutils-2.17/contrib/binutils/ld/emultempl/mipsecoff.em projects/binutils-2.17/contrib/binutils/ld/emultempl/needrelax.em projects/binutils-2.17/contrib/binutils/ld/emultempl/pe.em projects/binutils-2.17/contrib/binutils/ld/emultempl/ppc32elf.em projects/binutils-2.17/contrib/binutils/ld/emultempl/ppc64elf.em projects/binutils-2.17/contrib/binutils/ld/emultempl/sunos.em projects/binutils-2.17/contrib/binutils/ld/emultempl/ticoff.em projects/binutils-2.17/contrib/binutils/ld/emultempl/vanilla.em projects/binutils-2.17/contrib/binutils/ld/fdl.texi projects/binutils-2.17/contrib/binutils/ld/gen-doc.texi projects/binutils-2.17/contrib/binutils/ld/genscripts.sh projects/binutils-2.17/contrib/binutils/ld/ld.1 projects/binutils-2.17/contrib/binutils/ld/ld.h projects/binutils-2.17/contrib/binutils/ld/ld.texinfo projects/binutils-2.17/contrib/binutils/ld/ldcref.c projects/binutils-2.17/contrib/binutils/ld/ldctor.c projects/binutils-2.17/contrib/binutils/ld/ldctor.h projects/binutils-2.17/contrib/binutils/ld/ldemul.c projects/binutils-2.17/contrib/binutils/ld/ldemul.h projects/binutils-2.17/contrib/binutils/ld/ldexp.c projects/binutils-2.17/contrib/binutils/ld/ldexp.h projects/binutils-2.17/contrib/binutils/ld/ldfile.c projects/binutils-2.17/contrib/binutils/ld/ldfile.h projects/binutils-2.17/contrib/binutils/ld/ldgram.y projects/binutils-2.17/contrib/binutils/ld/ldint.texinfo projects/binutils-2.17/contrib/binutils/ld/ldlang.c projects/binutils-2.17/contrib/binutils/ld/ldlang.h projects/binutils-2.17/contrib/binutils/ld/ldlex.h projects/binutils-2.17/contrib/binutils/ld/ldlex.l projects/binutils-2.17/contrib/binutils/ld/ldmain.c projects/binutils-2.17/contrib/binutils/ld/ldmain.h projects/binutils-2.17/contrib/binutils/ld/ldmisc.c projects/binutils-2.17/contrib/binutils/ld/ldmisc.h projects/binutils-2.17/contrib/binutils/ld/ldver.c projects/binutils-2.17/contrib/binutils/ld/ldver.h projects/binutils-2.17/contrib/binutils/ld/ldver.texi projects/binutils-2.17/contrib/binutils/ld/ldwrite.c projects/binutils-2.17/contrib/binutils/ld/ldwrite.h projects/binutils-2.17/contrib/binutils/ld/lexsup.c projects/binutils-2.17/contrib/binutils/ld/mri.c projects/binutils-2.17/contrib/binutils/ld/mri.h projects/binutils-2.17/contrib/binutils/ld/pe-dll.c projects/binutils-2.17/contrib/binutils/ld/pe-dll.h projects/binutils-2.17/contrib/binutils/ld/po/Make-in projects/binutils-2.17/contrib/binutils/ld/po/POTFILES.in projects/binutils-2.17/contrib/binutils/ld/po/ld.pot projects/binutils-2.17/contrib/binutils/ld/scripttempl/elf.sc projects/binutils-2.17/contrib/binutils/ld/scripttempl/mips.sc projects/binutils-2.17/contrib/binutils/ld/scripttempl/pe.sc projects/binutils-2.17/contrib/binutils/ld/sysdep.h projects/binutils-2.17/contrib/binutils/libiberty/ChangeLog projects/binutils-2.17/contrib/binutils/libiberty/Makefile.in projects/binutils-2.17/contrib/binutils/libiberty/_doprnt.c projects/binutils-2.17/contrib/binutils/libiberty/aclocal.m4 projects/binutils-2.17/contrib/binutils/libiberty/alloca.c projects/binutils-2.17/contrib/binutils/libiberty/argv.c projects/binutils-2.17/contrib/binutils/libiberty/asprintf.c projects/binutils-2.17/contrib/binutils/libiberty/atexit.c projects/binutils-2.17/contrib/binutils/libiberty/basename.c projects/binutils-2.17/contrib/binutils/libiberty/bcmp.c projects/binutils-2.17/contrib/binutils/libiberty/bcopy.c projects/binutils-2.17/contrib/binutils/libiberty/bsearch.c projects/binutils-2.17/contrib/binutils/libiberty/bzero.c projects/binutils-2.17/contrib/binutils/libiberty/calloc.c projects/binutils-2.17/contrib/binutils/libiberty/choose-temp.c projects/binutils-2.17/contrib/binutils/libiberty/clock.c projects/binutils-2.17/contrib/binutils/libiberty/concat.c projects/binutils-2.17/contrib/binutils/libiberty/config.in projects/binutils-2.17/contrib/binutils/libiberty/configure projects/binutils-2.17/contrib/binutils/libiberty/copying-lib.texi projects/binutils-2.17/contrib/binutils/libiberty/copysign.c projects/binutils-2.17/contrib/binutils/libiberty/cp-demangle.c projects/binutils-2.17/contrib/binutils/libiberty/cp-demangle.h projects/binutils-2.17/contrib/binutils/libiberty/cp-demint.c projects/binutils-2.17/contrib/binutils/libiberty/cplus-dem.c projects/binutils-2.17/contrib/binutils/libiberty/dyn-string.c projects/binutils-2.17/contrib/binutils/libiberty/fdmatch.c projects/binutils-2.17/contrib/binutils/libiberty/ffs.c projects/binutils-2.17/contrib/binutils/libiberty/fibheap.c projects/binutils-2.17/contrib/binutils/libiberty/floatformat.c projects/binutils-2.17/contrib/binutils/libiberty/fnmatch.c projects/binutils-2.17/contrib/binutils/libiberty/functions.texi projects/binutils-2.17/contrib/binutils/libiberty/gather-docs projects/binutils-2.17/contrib/binutils/libiberty/getcwd.c projects/binutils-2.17/contrib/binutils/libiberty/getpagesize.c projects/binutils-2.17/contrib/binutils/libiberty/getpwd.c projects/binutils-2.17/contrib/binutils/libiberty/getruntime.c projects/binutils-2.17/contrib/binutils/libiberty/hashtab.c projects/binutils-2.17/contrib/binutils/libiberty/hex.c projects/binutils-2.17/contrib/binutils/libiberty/index.c projects/binutils-2.17/contrib/binutils/libiberty/insque.c projects/binutils-2.17/contrib/binutils/libiberty/lbasename.c projects/binutils-2.17/contrib/binutils/libiberty/libiberty.texi projects/binutils-2.17/contrib/binutils/libiberty/lrealpath.c projects/binutils-2.17/contrib/binutils/libiberty/maint-tool projects/binutils-2.17/contrib/binutils/libiberty/make-relative-prefix.c projects/binutils-2.17/contrib/binutils/libiberty/make-temp-file.c projects/binutils-2.17/contrib/binutils/libiberty/md5.c projects/binutils-2.17/contrib/binutils/libiberty/memchr.c projects/binutils-2.17/contrib/binutils/libiberty/memcmp.c projects/binutils-2.17/contrib/binutils/libiberty/memcpy.c projects/binutils-2.17/contrib/binutils/libiberty/memmove.c projects/binutils-2.17/contrib/binutils/libiberty/memset.c projects/binutils-2.17/contrib/binutils/libiberty/mkstemps.c projects/binutils-2.17/contrib/binutils/libiberty/objalloc.c projects/binutils-2.17/contrib/binutils/libiberty/obstack.c projects/binutils-2.17/contrib/binutils/libiberty/partition.c projects/binutils-2.17/contrib/binutils/libiberty/physmem.c projects/binutils-2.17/contrib/binutils/libiberty/putenv.c projects/binutils-2.17/contrib/binutils/libiberty/random.c projects/binutils-2.17/contrib/binutils/libiberty/regex.c projects/binutils-2.17/contrib/binutils/libiberty/rename.c projects/binutils-2.17/contrib/binutils/libiberty/rindex.c projects/binutils-2.17/contrib/binutils/libiberty/safe-ctype.c projects/binutils-2.17/contrib/binutils/libiberty/setenv.c projects/binutils-2.17/contrib/binutils/libiberty/sigsetmask.c projects/binutils-2.17/contrib/binutils/libiberty/sort.c projects/binutils-2.17/contrib/binutils/libiberty/spaces.c projects/binutils-2.17/contrib/binutils/libiberty/splay-tree.c projects/binutils-2.17/contrib/binutils/libiberty/strcasecmp.c projects/binutils-2.17/contrib/binutils/libiberty/strchr.c projects/binutils-2.17/contrib/binutils/libiberty/strdup.c projects/binutils-2.17/contrib/binutils/libiberty/strerror.c projects/binutils-2.17/contrib/binutils/libiberty/strncasecmp.c projects/binutils-2.17/contrib/binutils/libiberty/strncmp.c projects/binutils-2.17/contrib/binutils/libiberty/strrchr.c projects/binutils-2.17/contrib/binutils/libiberty/strsignal.c projects/binutils-2.17/contrib/binutils/libiberty/strstr.c projects/binutils-2.17/contrib/binutils/libiberty/strtod.c projects/binutils-2.17/contrib/binutils/libiberty/strtol.c projects/binutils-2.17/contrib/binutils/libiberty/strtoul.c projects/binutils-2.17/contrib/binutils/libiberty/ternary.c projects/binutils-2.17/contrib/binutils/libiberty/tmpnam.c projects/binutils-2.17/contrib/binutils/libiberty/vasprintf.c projects/binutils-2.17/contrib/binutils/libiberty/vfork.c projects/binutils-2.17/contrib/binutils/libiberty/vfprintf.c projects/binutils-2.17/contrib/binutils/libiberty/vprintf.c projects/binutils-2.17/contrib/binutils/libiberty/vsprintf.c projects/binutils-2.17/contrib/binutils/libiberty/waitpid.c projects/binutils-2.17/contrib/binutils/libiberty/xatexit.c projects/binutils-2.17/contrib/binutils/libiberty/xexit.c projects/binutils-2.17/contrib/binutils/libiberty/xmalloc.c projects/binutils-2.17/contrib/binutils/libiberty/xmemdup.c projects/binutils-2.17/contrib/binutils/libiberty/xstrdup.c projects/binutils-2.17/contrib/binutils/libiberty/xstrerror.c projects/binutils-2.17/contrib/binutils/libtool.m4 projects/binutils-2.17/contrib/binutils/ltcf-c.sh projects/binutils-2.17/contrib/binutils/ltcf-cxx.sh projects/binutils-2.17/contrib/binutils/ltcf-gcj.sh projects/binutils-2.17/contrib/binutils/ltconfig projects/binutils-2.17/contrib/binutils/ltmain.sh projects/binutils-2.17/contrib/binutils/missing projects/binutils-2.17/contrib/binutils/mkinstalldirs projects/binutils-2.17/contrib/binutils/move-if-change projects/binutils-2.17/contrib/binutils/opcodes/ChangeLog projects/binutils-2.17/contrib/binutils/opcodes/Makefile.am projects/binutils-2.17/contrib/binutils/opcodes/Makefile.in projects/binutils-2.17/contrib/binutils/opcodes/aclocal.m4 projects/binutils-2.17/contrib/binutils/opcodes/alpha-dis.c projects/binutils-2.17/contrib/binutils/opcodes/alpha-opc.c projects/binutils-2.17/contrib/binutils/opcodes/arc-dis.c projects/binutils-2.17/contrib/binutils/opcodes/arc-dis.h projects/binutils-2.17/contrib/binutils/opcodes/arc-ext.c projects/binutils-2.17/contrib/binutils/opcodes/arc-ext.h projects/binutils-2.17/contrib/binutils/opcodes/arc-opc.c projects/binutils-2.17/contrib/binutils/opcodes/arm-dis.c projects/binutils-2.17/contrib/binutils/opcodes/cgen-asm.c projects/binutils-2.17/contrib/binutils/opcodes/cgen-asm.in projects/binutils-2.17/contrib/binutils/opcodes/cgen-dis.c projects/binutils-2.17/contrib/binutils/opcodes/cgen-dis.in projects/binutils-2.17/contrib/binutils/opcodes/cgen-ibld.in projects/binutils-2.17/contrib/binutils/opcodes/cgen-opc.c projects/binutils-2.17/contrib/binutils/opcodes/cgen.sh projects/binutils-2.17/contrib/binutils/opcodes/config.in projects/binutils-2.17/contrib/binutils/opcodes/configure projects/binutils-2.17/contrib/binutils/opcodes/configure.in projects/binutils-2.17/contrib/binutils/opcodes/dep-in.sed projects/binutils-2.17/contrib/binutils/opcodes/dis-buf.c projects/binutils-2.17/contrib/binutils/opcodes/dis-init.c projects/binutils-2.17/contrib/binutils/opcodes/disassemble.c projects/binutils-2.17/contrib/binutils/opcodes/i386-dis.c projects/binutils-2.17/contrib/binutils/opcodes/ia64-asmtab.c projects/binutils-2.17/contrib/binutils/opcodes/ia64-asmtab.h projects/binutils-2.17/contrib/binutils/opcodes/ia64-dis.c projects/binutils-2.17/contrib/binutils/opcodes/ia64-gen.c projects/binutils-2.17/contrib/binutils/opcodes/ia64-ic.tbl projects/binutils-2.17/contrib/binutils/opcodes/ia64-opc-a.c projects/binutils-2.17/contrib/binutils/opcodes/ia64-opc-b.c projects/binutils-2.17/contrib/binutils/opcodes/ia64-opc-d.c projects/binutils-2.17/contrib/binutils/opcodes/ia64-opc-f.c projects/binutils-2.17/contrib/binutils/opcodes/ia64-opc-i.c projects/binutils-2.17/contrib/binutils/opcodes/ia64-opc-m.c projects/binutils-2.17/contrib/binutils/opcodes/ia64-opc-x.c projects/binutils-2.17/contrib/binutils/opcodes/ia64-opc.c projects/binutils-2.17/contrib/binutils/opcodes/ia64-opc.h projects/binutils-2.17/contrib/binutils/opcodes/ia64-raw.tbl projects/binutils-2.17/contrib/binutils/opcodes/ia64-waw.tbl projects/binutils-2.17/contrib/binutils/opcodes/opintl.h projects/binutils-2.17/contrib/binutils/opcodes/po/Make-in projects/binutils-2.17/contrib/binutils/opcodes/po/POTFILES.in projects/binutils-2.17/contrib/binutils/opcodes/po/opcodes.pot projects/binutils-2.17/contrib/binutils/opcodes/ppc-dis.c projects/binutils-2.17/contrib/binutils/opcodes/ppc-opc.c projects/binutils-2.17/contrib/binutils/opcodes/s390-dis.c projects/binutils-2.17/contrib/binutils/opcodes/s390-mkopc.c projects/binutils-2.17/contrib/binutils/opcodes/s390-opc.c projects/binutils-2.17/contrib/binutils/opcodes/s390-opc.txt projects/binutils-2.17/contrib/binutils/opcodes/sh-dis.c projects/binutils-2.17/contrib/binutils/opcodes/sh-opc.h projects/binutils-2.17/contrib/binutils/opcodes/sparc-dis.c projects/binutils-2.17/contrib/binutils/opcodes/sparc-opc.c projects/binutils-2.17/contrib/binutils/opcodes/sysdep.h projects/binutils-2.17/contrib/binutils/symlink-tree projects/binutils-2.17/contrib/binutils/ylwrap Directory Properties: projects/binutils-2.17/contrib/binutils/ (props changed) Modified: projects/binutils-2.17/contrib/binutils/ChangeLog ============================================================================== --- projects/binutils-2.17/contrib/binutils/ChangeLog Thu Oct 21 19:04:51 2010 (r214156) +++ projects/binutils-2.17/contrib/binutils/ChangeLog Thu Oct 21 19:11:14 2010 (r214157) @@ -1,40 +1,1802 @@ -2004-05-06 Daniel Jacobowitz +2006-05-17 Daniel Jacobowitz - * src-release (do-tar): Add directories to the tar file. + * src-release (MAKEINFOFLAGS): Define. + (do-proto-toplev): Pass MAKEINFOFLAGS to submakes. -2004-05-06 Daniel Jacobowitz +2006-04-10 Ben Elliston + + * contrib: Remove directory. + +2006-04-06 Carlos O'Donell + + * Makefile.tpl: Add install-html target. + * Makefile.def: Add install-html target. + * Makefile.in: Regenerate. + * configure.in: Add --with-datarootdir, --with-docdir, + and --with-htmldir options. + * configure: Regenerate. + +2006-03-31 Ben Elliston + + PR binutils/1860 + * configure.in: Require makeinfo 4.4 or higher. + * configure: Regenerate. + +2006-03-14 Paolo Bonzini + + * Makefile.in: Regenerate. + +2006-03-14 Paolo Bonzini + + Sync with gcc: + 2006-03-10 Aldy Hernandez + + * configure.in: Handle --disable- generically. + * configure: Regenerate. + + 2006-02-21 Rafael Avila de Espindola + + * Makefile.tpl (BUILD_CONFIGDIRS): Remove. + (TARGET_CONFIGDIRS): Remove. + * configure.in: Remove AC_SUBST(target_configdirs). + * Makefile.in, configure: Regenerated. + + +2006-03-01 H.J. Lu + + PR libgcj/17311 + * ltmain.sh: Don't use "$finalize_rpath" for compile. + +2006-02-20 Paolo Bonzini + + PR bootstrap/25670 + + * Makefile.tpl ([+compare-target+]): Print explanation messages. + + * Makefile.def (ADAFLAGS, BOOT_ADAFLAGS, LANGUAGES): New flags_to_pass. + * Makefile.tpl (BASE_FLAGS_TO_PASS): Support optional flags_to_pass. + (EXTRA_GCC_FLAGS): Remove ADAFLAGS, BOOT_ADAFLAGS, LANGUAGES, + BUILD_PREFIX, BUILD_PREFIX_1. + * configure.in: (BUILD_PREFIX, BUILD_PREFIX_1): Don't substitute. + + * Makefile.def (bootstrap stage 1): Pass LIBCFLAGS too. + * Makefile.tpl (POSTSTAGE1_FLAGS_TO_PASS): Override LIBCFLAGS too. + + * Makefile.tpl (configure-stage[+id+]-[+prefix+][+module+], + all-stage[+id+]-[+prefix+][+module+], : Use $(current_stage) instead + of `cat stage_current`. Always provide the `r' and `s' variables. + (clean-stage[+id+]-[+prefix+][+module+]): Likewise, and make it into + a single shell execution. + (configure-[+prefix+][+module+], all-[+prefix+][+module+]): For + bootstrapped modules, make the stage1 module if the build was not + started yet, else build the current stage. + (all-host, all-target): Omit bootstrapped modules (if bootstrapping). + (all-build, all-host, all-target, [+make_target+]-host, + [+make_target+]-target): Do not use \-continued lines. + (target modules): Depend on stage_last, not all-gcc, if bootstrapping. + (current_stage, restrap, stage_last): New. + + * Makefile.in: Regenerate. + * configure: Regenerate. + +2006-02-14 Paolo Bonzini + + Sync from gcc: + + 2006-01-31 Richard Guenther + Paolo Bonzini + + * Makefile.def (target_modules): Add libgcc-math target module. + * configure.in (target_libraries): Add libgcc-math target library. + (--enable-libgcc-math): New configure switch. + * Makefile.in: Re-generate. + * configure: Re-generate. + * libgcc-math: New toplevel directory. + + 2006-01-18 Richard Henderson + Jakub Jelinek + Diego Novillo + + * libgomp: New directory. + * Makefile.def: Add target_module libgomp. + * Makefile.in: Regenerate. + * configure.in (target_libraries): Add target-libgomp. + * configure: Regenerate. + +2006-02-14 Paolo Bonzini + Andreas Schwab + + * configure: Regenerate. + +2006-01-16 Paolo Bonzini + + * configure.in: Set with_gnu_as, with_gnu_ld, with_newlib earlier. + Set md_exec_prefix. Use ACX_CHECK_INSTALLED_TARGET_TOOL to find + the assembler, linker and binutils. + * configure: Regenerate. + +2006-01-16 Nick Clifton + + * config.sub, config.guess: Sync from config repository. + +2006-01-05 Alexandre Oliva + + * Makefile.tpl (clean-stage[+id+]-[+prefix+][+module+]): Remove + @ from continuation. + * Makefile.in: Rebuilt. + +2006-01-04 Paolo Bonzini + + Sync from gcc: + + 2006-01-04 Paolo Bonzini + + PR bootstrap/24252 + + * Makefile.def (flags_to_pass): Add STAGE1_CFLAGS and STAGE1_LANGUAGES. + * Makefile.tpl (OBJDUMP): New. + (EXTRA_HOST_FLAGS): Add it. + (EXTRA_GCC_FLAGS): Remove flags already specified in flags_to_pass. + + * Makefile.tpl (stage[+id+]-start, stage[+id+]-end): Do not try + to use symbolic links between directories. Avoid race conditions + or make them harmless. + * configure.in: Do not try to use symbolic links between directories. + + * Makefile.def (LEAN): Pass. + * Makefile.tpl (LEAN): Define. + (stage[+id+]-start): Accept that the previous directory does not + exist, if the bootstrap is lean. + (stage[+id+]-bubble): Invoke lean bootstrap commands after + stage[+id+]-start. Use a makefile variable and an `if' instead of a + configure substitution. + ([+compare-target+]): Likewise. + ([+bootstrap-target+]-lean): New. + * configure.in: Remove lean bootstrap support from here. + + * Makefile.in: Regenerate. + * configure: Regenerate. + + 2006-01-02 Andreas Schwab + + * configure.in: When reconfiguring remove Makefile in + all stage directories. + * configure: Regenerate. + +2005-12-27 Leif Ekblad + + * configure.in: Add support for RDOS target. + * configure: Regenerate. + +2005-12-27 Nick Clifton + + PR binutils/1990 + * libtool.m4: Synchronize with version in GCC sources. + +2005-12-20 Paolo Bonzini + + Revert Ada-related part of the previous change. + + * Makefile.def (ADAFLAGS, BOOT_ADAFLAGS, ADAFLAGS_FOR_TARGET): + Do not pass. + * Makefile.tpl (BOOT_ADAFLAGS): Do not define. + * Makefile.in: Regenerate. + * configure.in: Do not include mt-ppc-aix target fragment. + * configure: Regenerate. + +2005-12-19 Paolo Bonzini + + * configure.in: Select appropriate fragments for PowerPC/AIX. + * configure: Regenerate. + + * Makefile.def (flags_to_pass): Add ADAFLAGS, BOOT_ADAFLAGS, + BOOT_CFLAGS, BOOT_LDFLAGS. + * Makefile.tpl (POSTSTAGE1_FLAGS_TO_PASS): Handle BOOT_ADAFLAGS, + BOOT_CFLAGS, BOOT_LDFLAGS. + (TARGET_FLAGS_TO_PASS): Handle ADAFLAGS_FOR_TARGET. + (stage[+id+]-bubble): Pass flags recursively to the comparison target. + (stage): Fail if we cannot complete the work. + * Makefile.in: Regenerate. + +2005-12-16 Jeff Johnston + + * COPYING.NEWLIB: Update copyright year for default + copyright. + +2005-12-15 Paolo Bonzini + + * Makefile.tpl (all, do-[+make_target+], do-check, install, + install-host-nogcc): Don't invoke $(stage) at the end. + * Makefile.in: Regenerate. + +2005-12-14 Paolo Bonzini + + * configure.in: Flip the top-level bootstrap switch. + * configure: Regenerate. + + Merge from gcc: + + 2005-12-14 Daniel Jacobowitz + + * Makefile.tpl: Throughout the file, use : $(MAKE) along with + $(stage) and $(unstage). + (EXTRA_TARGET_FLAGS): Correct double-quoting. + (all): Remove stray semicolon. + (local-distclean): Don't handle multilib.tmp and multilib.out. + (install.all): Set $s for consistency. + (configure-[+prefix+][+module+]): Instead of [+deps+], handle + check_multilibs setting. Always make the install directory. + (configure-stage[+id+]-[+prefix+][+module+]): Likewise. + Correct @if/@endif. + (all-stage[+id+]-[+prefix+][+module+]): Correct @if/@endif. + ($(TARGET_SUBDIR)/[+module+]/multilib.out): Remove. + (stage[+id+]-start, stage[+id+]-end): Stage $(TARGET_SUBDIR). + (multilib.out): Remove. + * Makefile.in: Regenerated. + +2005-12-12 Nathan Sidwell + + * config.sub: Replace ms1 arch with mt. Allow ms1 as alias. + * configure.in: Replace ms1 arch with mt. + * configure: Rebuilt. + +2005-12-05 Paolo Bonzini + + Sync with gcc: + +2005-12-12 Nathan Sidwell + + * config.sub: Replace ms1 arch with mt. Allow ms1 as alias. + * configure.in: Replace ms1 arch with mt. + * configure: Rebuilt. + +2005-12-05 Paolo Bonzini + + Sync with gcc: + + 2005-12-05 Paolo Bonzini + + * configure.in (CONFIGURED_BISON, CONFIGURED_YACC, CONFIGURED_M4, + CONFIGURED_FLEX, CONFIGURED_LEX, CONFIGURED_MAKEINFO): Remove + "CONFIGURED_" from the AC_CHECK_PROGS invocation. Move below. + Find in-tree tools if available. + (EXPECT, RUNTEST, LIPO, STRIP): Find them and substitute them. + (CONFIGURED_*_FOR_TARGET): Don't set nor substitute. + (*_FOR_TARGET): Set them with GCC_TARGET_TOOL. + (COMPILER_*_FOR_TARGET): New. + * Makefile.tpl (HOST_EXPORTS): Add *_FOR_TARGET symbols that gcc needs. + (BASE_TARGET_EXPORTS): Use COMPILER_*_FOR_TARGET symbols. + (CONFIGURED_*, USUAL_*): Remove. + (BISON, YACC, FLEX, LEX, M4, MAKEINFO, EXPECT, RUNTEST, LIPO, + STRIP): Use autoconf substitutions. + (COMPILER_AS_FOR_TARGET, COMPILER_LD_FOR_TARGET, + COMPILER_NM_FOR_TARGET): New. + (EXTRA_HOST_FLAGS): Pass LIPO and STRIP. + + (all): Make all-host and all-target in parallel. + (do-[+make_target+], do-check, install, [+compare-target+]): Ensure + that $$r and $$s are set before invoking a recursive make. + (stage[+id+]-bubble): Likewise, and invoke the comparison at the end. + ([+bootstrap-target+]): Inline most of the `all' target. + + 2005-11-29 Ben Elliston + + * Makefile.tpl (clean-target-libgcc): Invoke clean-target-libgcc + from the gcc build directory. + * Makefile.in: Regenerate. + + 2005-11-29 Ben Elliston + + * Makefile.def: Add new libdecnumber host_module. Make all-gcc + depend on all-libdecnumber. + * configure.in (host_libs): Include libdecnumber. + * Makefile.in: Regenerate. + * configure: Likewise. + + 2005-11-21 Kean Johnston + + * config.sub, config.guess: Sync from upstream sources. + +2005-11-11 Daniel Jacobowitz + + * Makefile.def: Remove gdb dependencies for gdbtk. + * Makefile.tpl (CONFIGURE_GDB_TK, INSTALL_GDB_TK): New variables. + (configure-gdb, install-gdb): New rules. + * configure.in: Set CONFIGURE_GDB_TK and INSTALL_GDB_TK. + * Makefile.in, configure: Regenerated. + +2005-10-22 Paolo Bonzini + + PR bootstrap/24297 + * Makefile.tpl (do-[+make-target+], do-check, install, + stage[+id+]-bubble, [+compare-target+]): Ensure $$r and $$s + are set before recursing. + * Makefile.in: Regenerate. + +2005-10-20 Eric Botcazou + + PR bootstrap/18939 + * Makefile.def (gcc) : Fix thinko. + * Makefile.in: Regenerate. + +2005-10-17 Bernd Schmidt + + * configure.in (bfin-*-*): Use test, not brackets, in if statement. + * configure: Regenerate. + +2005-10-09 Kazu Hirata + + * configure.in (arm-*-linux-gnueabi): Add to noconfigdirs + target-libffi, target-qthreads, target-libjava, and + targetlibobjc. + * configure: Regenerate. + +2005-10-06 Daniel Jacobowitz + + * Makefile.def (flags_to_pass): Add OBJDUMP_FOR_TARGET. + * Makefile.tpl (BASE_TARGET_EXPORTS): Add OBJDUMP. + (OBJDUMP_FOR_TARGET, CONFIGURED_OBJDUMP_FOR_TARGET) + (USUAL_OBJDUMP_FOR_TARGET): New. + (EXTRA_TARGET_FLAGS): Add OBJDUMP. + * configure.in: Check for $OBJDUMP_FOR_TARGET. + * configure, Makefile.in: Regenerated. + +2005-10-05 Paolo Bonzini + + * Makefile.tpl (all) [gcc-no-bootstrap]: Make prebootstrap packages + before other host packages. + +2005-10-05 Paolo Bonzini + + PR bootstrap/22340 + + * configure.in (default_target): Remove. + * Makefile.tpl (all): Do not use prerequisites as subroutines + (all) [gcc-bootstrap]: Bootstrap gcc first if it was not done yet. + (do-[+make_target+], check, install, [+bootstrap_target+]): Do not + use prerequisites as subroutines. + (check-host, check-target): New. + (bootstrap configure & all targets): Do not use stage*-start + if the directory layout is already ok. + (non-bootstrap configure & all targets): Prepend a $(unstage). + (stage[+id+]-bubble): Do that here. Do not use NOTPARALLEL. + (NOTPARALLEL): Remove. + (unstage, stage variables): New variables. + (unstage, stage targets): Simply expand to those variables. + + * configure: Regenerate. + * Makefile.in: Regenerate. + +2005-10-04 James E Wilson + + * Makefile.def (lang_env_dependencies): Add libmudflap. + * Makefile.in: Regenerate. + +2005-10-03 Catherine Moore + + * configure.in (bfin-*-*): Support bfin. + * configure: Regenerated. + +2005-09-30 H.J. Lu + + * configure.in (*-*-darwin*): Build bfd, binutils and opcodes. + * configure: Regenerated. + +2005-09-28 Geoffrey Keating + + * Makefile.tpl (BASE_TARGET_EXPORTS): Add LIPO, STRIP. + (LIPO_FOR_TARGET): New. + (CONFIGURED_LIPO_FOR_TARGET): New. + (USUAL_LIPO_FOR_TARGET): New. + (STRIP_FOR_TARGET): New. + (CONFIGURED_STRIP_FOR_TARGET): New. + (USUAL_STRIP_FOR_TARGET): New. + * Makefile.def (flags_to_pass): Add LIPO_FOR_TARGET and + STRIP_FOR_TARGET. + * configure.in: Set LIPO_FOR_TARGET, STRIP_FOR_TARGET, + CONFIGURED_LIPO_FOR_TARGET, CONFIGURED_STRIP_FOR_TARGET. + * Makefile.in: Regenerate. + * configure: Regenerate. + +2005-09-19 David Edelsohn + + * configure.in (powerpc-*-aix*): Add target-libssp to noconfigdirs. + (rs6000-*-aix*): Same. + * configure: Regenerate. + +2005-09-14 Francois-Xavier Coudert + + * configure.in: Recognize f95 in the --enable-languages option, + and substitute it for fortran, issuing a warning. + * configure: Regenerate. + +2005-09-07 Ben Elliston + + Import from Autoconf sources: + + 2005-09-06 Paul Eggert + * move-if-change: Don't output "$2 is unchanged"; suggested by Ben + Elliston. Handle weird characters correctly. + +2005-08-30 Phil Edwards + + * configure.in (*-*-vxworks*): Add target-libstdc++-v3 to noconfigdirs. + * configure: Regenerated. + +2005-08-20 Richard Earnshaw + + * Makefile.def (libssp): Add to lang_env_dependencies. + * Makefile.in: Regenerate. + +2005-08-17 Christian Groessler + + * Makefile.tpl: (USUAL_CC_FOR_TARGET): Add missing trailing slash. + * Makefile.in: Regenerate. + +2005-08-12 Paolo Bonzini + + * configure.in: Replace NCN_STRICT_CHECK_TOOL with + NCN_STRICT_CHECK_TOOLS, and likewise for NCN_STRICT_CHECK_TARGET_TOOLS. + Look for alternate names of the target cc and c++ + * configure: Regenerate. + +2005-08-08 Paolo Bonzini + + * configure.in (CC_FOR_TARGET, CXX_FOR_TARGET, GCJ_FOR_TARGET, + GCC_FOR_TARGET, RAW_CXX_FOR_TARGET, GFORTRAN_FOR_TARGET): Find + them with NCN_STRICT_CHECK_TARGET_TOOL, like the other target + tools; remove code to manually set them. + (Target tools): Look in the environment for them. + * Makefile.tpl (CC_FOR_TARGET, CXX_FOR_TARGET, GCJ_FOR_TARGET, + GCC_FOR_TARGET, RAW_CXX_FOR_TARGET, GFORTRAN_FOR_TARGET): Redefine. + (AS_FOR_TARGET, LD_FOR_TARGET, NM_FOR_TARGET): Look into gcc + build directory. + (CONFIGURED_CC_FOR_TARGET, CONFIGURED_CXX_FOR_TARGET, + CONFIGURED_GCJ_FOR_TARGET, CONFIGURED_GCC_FOR_TARGET, + CONFIGURED_GFORTRAN_FOR_TARGET, USUAL_CC_FOR_TARGET, + USUAL_CXX_FOR_TARGET, USUAL_GCJ_FOR_TARGET, USUAL_GCC_FOR_TARGET, + USUAL_RAW_CXX_FOR_TARGET, USUAL_GFORTRAN_FOR_TARGET): New. + (CXX_FOR_TARGET_FOR_RECURSIVE_MAKE, + RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE, RECURSE_FLAGS): Delete. + * configure: Regenerate. + * Makefile.in: Regenerate. + +2005-07-27 Mark Mitchell + + * Makefile.tpl (EXTRA_TARGET_FLAGS): Set LDFLAGS=LDFLAGS_FOR_TARGET. + * Makefile.def (flags_to_pass): Add LDFLAGS_FOR_TARGET. + * Makefile.in: Regenerated. + +2005-07-26 Mark Mitchell + + * Makefile.tpl (SYSROOT_CFLAGS_FOR_TARGET): New variable. + (CFLAGS_FOR_TARGET): Use it. + (CXXFLAGS_FOR_TARGET): Likewise. + * Makefile.in: Regenerated. + * configure.in (--with-build-sysroot): New option. + * configure: Regenerated. + +2005-07-24 Paolo Bonzini + + * Makefile.tpl: Wrap install between unstage and stage + * Makefile.in: Regenerate. + +2005-07-16 Kelley Cook + + * all files: Update FSF address. + +2005-07-14 Jim Blandy + + * configure.in: Add cases for Renesas m32c. + * configure: Regenerated. + +2005-07-14 Kelley Cook + + * COPYING, compile, config-ml.in, config.guess, + config.sub, install-sh, missing, mkinstalldirs, + symlink-tree, ylwrap: Sync from upstream sources. + +2005-07-13 Eric Christopher + + * configure.in: Add toplevel noconfigdir support for tpf. + * configure: Regenerate. + +2005-07-11 Jakub Jelinek + + * Makefile.def (target_modules): Add libssp. + * configure.in (target_libraries): Add target-libssp. + * configure: Rebuilt. + * Makefile.in: Rebuilt. + +2005-07-11 Paolo Bonzini + + PR ada/22340 + + * Makefile.def: Sync with gcc. + * Makefile.tpl (POSTSTAGE1_FLAGS_TO_PASS): Fix pasto. + * Makefile.in: Regenerate. + +2005-07-07 Andreas Schwab + + * Makefile.def (flags_to_pass): Add CFLAGS_FOR_BUILD. + * Makefile.tpl (EXTRA_GCC_FLAGS): Don't pass CFLAGS_FOR_BUILD here. + * Makefile.in: Regenerated. + +2005-07-07 Kazu Hirata + + * configure.in: Add --enable-libssp and --disable-libssp. + * configure: Regenerate with autoconf-2.13. + +2005-07-06 Geoffrey Keating + + * configure.in: Don't build sim or rda when targetting darwin. + * configure: Regenerate. + +2005-07-04 Ben Elliston + + * src-release (do-proto-toplev): Remove dejagnu bits. + (DEJAGNU_SUPPORT_DIRS): Remove. + (dejagnu.tar.bz2, dejagnu.tar): Likewise. + (GDBD_SUPPORT_DIRS): Likewise. + (gdb+dejagnu.tar.bz2, gdb+dejagnu.tar): Likewise. + (INSIGHTD_SUPPORT_DIRS): Likewise. + (insight+dejagnu.tar.bz2, insight+dejagnu.tar): Likewise. + +2005-06-30 Ben Elliston + + * setup.com (mpw): Remove unused directive. + +2005-06-22 Paolo Bonzini + + * Makefile.def (stagefeedback): Come after profile. + Define profiledbootstrap target. + * Makefile.tpl (profiledbootstrap): Remove. + (stageprofile-end): Zap stagefeedback. + (stagefeedback-start): Copy all .gcda files, not only GCC's. + * Makefile.in: Regenerate. + +2005-06-13 Zack Weinberg + + * depcomp: Update from automake CVS. Add 'ia64hp' stanza. + In 'cpp' stanza, support '#line' as well as '# '. + +2005-06-07 Hans-Peter Nilsson + + * configure.in (unsupported_languages): New macro. + : Set unsupported_languages. Name explicit + non-ported target libraries in noconfigdirs. + Ditto, except for non-aout, non-elf, + non-linux-gnu. Remove libgcj_ex_libffi. + : Set add_this_lang=no if the language is in + unsupported_languages. + * configure: Regenerate. + +2005-06-04 Tobias Schl"uter + + * configure.in: Fix typo in handling of --with-mpfr-dir. + * configure: Regenerate. + +2005-06-02 Jim Blandy + + * config.sub: Add cases for the Renesas m32c. (This patch has been + accepted into the master sources.) + +2005-06-02 Aldy Hernandez + Michael Snyder + Stan Cox + + * configure.in: Set noconfigdirs for ms1. + + * configure: Regenerate. + +2005-05-25 Paolo Bonzini + + * Makefile.tpl (stage[+id+]-start): Iterate over target module as well. + (Dependencies): Consider target modules for bootstrap dependencies. + Make target bootstrap modules depend on each stage's gcc. + * Makefile.in: Regenerate. + +2005-05-20 Paolo Bonzini + + * Makefile.def (configure-gcc): Depend on binutils having been built. + (all-gcc): No need to do it here. + * Makefile.in: Regenerate. + +2005-05-19 Paul Brook + + * configure.in: Rewrite misleading error message when requested + language cannot be built. + * configure: Regenerate. + +2005-05-15 Daniel Jacobowitz + + * ylwrap: Import from Automake 1.9.5. + +2005-05-04 Mike Stump + + * configure.in: Always pass --target to target configures as + otherwise rebuilds that do --recheck will fail. + * configure: Rebuilt. + +2005-05-04 Paolo Bonzini + + * Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Rename from + STAGE_HOST_EXPORTS. + (configure, all): Add bootstrap support. + (Host modules, target modules): Pass post-stage1 flags and exports. + (Top-level bootstrap): Remove bootstrap rules, expanded elsewhere. + * Makefile.in: Regenerate. + +2005-04-29 Paolo Bonzini + + Sync from gcc: + + 2005-04-22 Bernd Schmidt + + * config.sub: Update from master copy. + + 2005-04-19 Hans-Peter Nilsson + + * configure.in : New local variable + libgcj_ex_libffi. Have specific match for *-*-linux*. Separate + matches for "*-*-aout" and "*-*-elf". Don't disable libffi for + "*-*-elf" and "*-*-linux*". + * configure: Regenerate. + +2005-04-06 Paolo Bonzini + + * Makefile.tpl (BUILD_CONFIGARGS): Include --with-build-subdir. + (TARGET_CONFIGARGS): Include --with-target-subdir. + (configure, all): New macros. Use them throughout. + +2005-04-05 Paolo Bonzini + + * Makefile.tpl: Sync with gcc. + * Makefile.in: Regenerate. + +2005-03-30 J"orn Rennecke + + * config/mh-mingw32: Delete. + * configure.in: Don't use it. + * configure: Regenerate. + +2005-03-31 Paolo Bonzini + + * Makefile.def (bfd, opcodes, libstdc++-v3, libmudflap): Set lib_path. + * Makefile.tpl (SET_LIB_PATH, REALLY_SET_LIB_PATH): Remove. + (HOST_EXPORTS, STAGE_HOST_EXPORTS, TARGET_EXPORTS): Set $(RPATH_ENVVAR). + (HOST_LIB_PATH): Generate from Makefile.def. + (TARGET_LIB_PATH): Likewise. + (Old bootstrap targets): Include TARGET_LIB_PATH into RPATH_ENVVAR. + * Makefile.in: Regenerate. + * configure.in (set_lib_path, SET_LIB_PATH, SET_GCC_LIB_PATH): Remove. + (RPATH_ENVVAR): Include Darwin case. + * configure: Regenerate. + +2005-03-25 Paolo Bonzini + + * configure.in (RPATH_ENVVAR): Set to DYLD_LIBRARY_PATH on Darwin. + * configure: Regenerate. + +2005-03-21 Zack Weinberg + + * Makefile.def: Remove libstdcxx_incdir, libsubdir, gxx_include_dir, + gcc_version, and gcc_version_trigger from set of flags to pass. + * Makefile.tpl: Remove definitions of above variables. + (config.status): Remove dependency on $(gcc_version_trigger). + * Makefile.in: Regenerate. + * configure.in: Do not reference config/gcc-version.m4 nor + config/gxx-include-dir.m4. Do not invoke TL_AC_GCC_VERSION nor + TL_AC_GXX_INCLUDE_DIR. Do not set gcc_version_trigger. + * configure: Regenerate. + +2005-03-16 Manfred Hollstein + Andrew Pinski + + * Makefile.tpl (check-[+module+]): Fix shell statement inside if ... fi. + * Makefile.in: Regenerate. + +2005-03-01 Alexandre Oliva + + PR libgcj/20160 + * ltmain.sh: Avoid creating archives with components that have + duplicate basenames. + +2005-02-28 Andrew Pinski + + PR bootstrap/20250 + * Makefile.tpl (HOST target installs): Fix copy and pasto, use install + instead of check. + * Makefile.in: Regenerate. + +2005-02-28 Paolo Bonzini + + Sync from gcc. + + 2005-02-28 Paolo Bonzini + + PR bootstrap/17383 + * Makefile.def (target_modules): Remove "stage", now unnecessary. + * Makefile.tpl (HOST_SUBDIR): New substitution. + (STAGE_HOST_EXPORTS, EXPECT, HOST_LIB_PATH, USUAL_AR_FOR_TARGET, + USUAL_AS_FOR_TARGET, USUAL_DLLTOOL_FOR_TARGET, USUAL_GCC_FOR_TARGET, + USUAL_LD_FOR_TARGET, USUAL_NM_FOR_TARGET, USUAL_OBJDUMP_FOR_TARGET, + USUAL_RANLIB_FOR_TARGET, USUAL_WINDRES_FOR_TARGET): Use it. + (Host modules, Bootstrapped modules): Use it. + (Build modules, Target modules): Do not create symlink trees, + always configure out-of-srcdir. + (distclean): Try removing $(host_subdir) with rm before using rm -rf. + * configure.in (FLAGS_FOR_TARGET, CC_FOR_TARGET, GCJ_FOR_TARGET, + GFORTRAN_FOR_TARGET, CXX_FOR_TARGET, RAW_CXX_FOR_TARGET): Use + $(HOST_SUBDIR). Create a symlink for host_subdir. + + * Makefile.in: Regenerate. + * configure: Regenerate. + + Merged from libada-gnattools-branch: + 2004-11-28 Nathanael Nerode + + * Makefile.def: Add gnattools as a module, depending on target-libada. + * Makefile.in: Regenerate. + * configure.in: Include gnattools in host_tools; disable it if ada + is disabled. + * configure: Regenerate. + +2005-02-23 Nick Clifton + + * configure: Regenerate. + +2005-02-22 Paul Schlie + + * configure.in: Allow darwin targeted ports to build tk, itcl and + libgui. + +2005-02-21 Eric Botcazou + + PR libgcj/10353 + * configure.in (noconfigdirs) : Add libgcj. + * configure: Regenerate. + +2005-02-08 Andrew Cagney + + * MAINTAINERS: Delete reference to dejagnu/ and mmalloc/ from the + gdb/ section. Update GDB's URL. + +2005-01-31 Andrew Cagney + + * gettext.m4: Only set ENABLE_NLS when gettext is present. + +2005-01-29 Hans-Peter Nilsson + + * configure.in (noconfigdirs) : Match like cris-*-*. + : Only disable target-newlib and + target-libgloss when not *-*-elf and *-*-aout. + * configure: Regenerate. + +2005-01-27 Andrew Cagney + + * gettext.m4: Don't use NONE as a default for CATOBJEXT. + +2005-01-24 Andrew Cagney + + * gettext.m4: Only fall back to ../intl/ when it's present. + +2005-01-17 Kelley Cook + + * install-sh, config.sub: Import from upstream. + +2005-01-17 Kelley Cook + + PR bootstrap/18222 + * Makefile.def: Pass CPPFLAGS_FOR_TARGET. + * Makefile.tpl: Define target CPPFLAGS on CPPFLAGS_FOR_TARGET. + * Makefile.in: Regenerate. + +2005-01-03 Paolo Bonzini + + Revert 2004-12-28 Makefile changes, a better fix will be + applied to mainline and src after GCC 4.0 branches. + +2004-12-28 Paolo Bonzini + + PR bootstrap/17383 + + * Makefile.def (target_modules): Remove stage parameter, + it is always true now. + * Makefile.tpl (configure-build-[+module+], + configure-target-[+module+]): Always build symlink tree + for the directory and for include. BUILD_SUBDIR and + TARGET_SUBDIR cannot be . anymore. + * Makefile.in: Regenerate. + +2004-12-25 David Edelsohn + + Revert 2004-12-08 Makefile changes. + +2004-12-16 Andrew Stubbs + + * configure.in (sh64-*-*): Reenable gprof. + * configure: Regenerate. + +2004-12-09 Jim Blandy + + * MAINTAINERS: List 'depcomp' as part of automake. + +2004-12-08 David Edelsohn + + * Makefile.def (flags_to_pass): Add PICFLAG_FOR_TARGET. + * Makefile.tpl (EXTRA_HOST_FLAGS): Add PICFLAG. + (EXTRA_TARGET_FLAGS): Add PICFLAG. + * Makefile.in: Regenerate. + +2004-12-07 Matt Kraai + + * Makefile.tpl: Generate normal dependencies if the LHS module is + not bootstrapped. + * Makefile.in: Regenerate. + +2004-12-03 Richard Sandiford + + * configure.in: Include config/gxx-include-dir.m4. Use + TL_AC_GXX_INCLUDE_DIR. Remove some now-redundant AC_SUBSTs. + * configure: Regenerate. + +2004-12-03 Richard Sandiford + + * config.if: Delete. + * configure.in: Set libstdcxx_incdir directly. + * configure: Regenerate. + * MAINTAINERS: Remove mention of config.if. + * src-release (DEVO_SUPPORT): Remove config.if. + +2004-12-02 Eric Christopher + + * Makefile.tpl (clean-target-libgcc): Add stmp-dirs to list + of things to remove. + * Makefile.in: Regenerate. + +2004-12-02 Richard Sandiford + + * configure.in: Clear gcc_version_trigger if the file doesn't exist. + * configure: Regenerate. + +2004-12-02 Richard Sandiford + + * configure.in: Include config/gcc-version.m4. Use TL_AC_GCC_VERSION + to set gcc_version_trigger. Remove some now-redundant AC_SUBSTs. + * configure: Regenerate. + +2004-11-26 John David Anglin + + * configure.in (hppa*-*-linux*): Don't add libgcj to noconfigdirs. + (hppa*64*-*-*): Delete incorrect comment. + * configure: Rebuilt. + +2004-11-15 Kelley Cook + + * install-sh, compile: Import from automake. + +2004-11-15 Kelley Cook + + * config.guess, config.sub: Import from savannnah. + +2004-11-12 Mike Stump + + * Makefile.def: Add html support. + * Makefile.tpl: Likewise. + * Makefile.in: Regenerate. + +2004-11-11 Geoffrey Keating + + PR 18423 + * configure.in: Remove all instances of build-fixincludes from + noconfigdirs. + (build_configargs): Supply --target to subdirectories. + * configure: Regenerate. + + * Makefile.def: Make gcc install depend on fixincludes install. + * Makefile.in: Regenerate. + +2004-11-08 Hans-Peter Nilsson + + * configure.in (noconfigdirs) [mmix-*-*]: Disable + target-libgfortran. + * configure: Regenerate. + +2004-11-07 David Edelsohn + + * config-ml.in: Pass FCFLAGS for multilibs, handle GFORTRAN + like CC. + +2004-11-05 Paolo Bonzini + + * Makefile.def (host fixincludes): Specify missing targets. + * Makefile.in: Regenerate. + +2004-11-04 H.J. Lu + + PR other/17783 + * configure.in: Set up LD_LIBRARY_PATH by default for gcc. + * configure: Regenerated. + +2004-11-04 Daniel Jacobowitz + + * configure.in (arm-*-oabi*, thumb-*-oabi*): Remove. + * configure: Regenerated. + +2004-10-28 Eric B. Weddington + + PR target/18151 + * configure.in (case ${target}): Do not build fixincludes for avr. + * configure: Regenerated. + +2004-10-26 Paolo Bonzini + + * configure.in (case ${target}): Do not build fixincludes + on platforms where it is not used. + * configure: Regenerated. + +2004-10-23 Daniel Jacobowitz + + * configure.in: Use an absolute path to install-sh. + * configure: Regenerated. + +2004-10-19 Andrew Cagney + + * src-release (do-djunpack, do-md5sum): Install the generated file + directly into the proto-toplev/ directory. + +2004-10-19 Andrew Cagney + + * src-release (GDB_SUPPORT_DIRS): Remove utils and intl. + +2004-10-12 Kelley Cook + + * configure.in (*-*-cygwin*): Supress warning if newlib not present. + * configure: Regenerate. + +2004-10-06 Paolo Bonzini + + Fix wrong conflict resolution in: + + 2004-08-16 Paolo Bonzini + + * Makefile.in: Regenerate. + * Makefile.tpl (Autogenerated `all-*' targets): Invoke $(TARGET-*) + in the recursive `make', instead of hardwiring `all'. + (Autogenerated TARGET-* variables): New. + +2004-10-05 Ulrich Weigand + + Merged from GCC / libtool upstream: + 2004-10-02 P.J. Darcy + * ltcf-c.sh (tpf*): Add ld_shlibs=yes. + * ltcf-cxx.sh (tpf*): Likewise. + * ltconfig (tpf*): Add TPF OS configuration support. + +2004-09-30 Tomer Levi + + * configure.in: Enable target-libgloss for crx-*-*. + * configure: Regenerate. + +2004-09-24 Michael Roth + + * configure.in (--without-headers): Add missing double quotes. + * configure: Regenerate. + +2004-09-24 Kelley Cook + + * ylwrap: Revert to previous version. + +2004-09-23 H.J. Lu + + PR bootstrap/17369 + * Makefile.tpl (REALLY_SET_LIB_PATH): Add @SET_GCC_LIB_PATH@. *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 19:27:27 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC947106564A; Thu, 21 Oct 2010 19:27:27 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id DB9B18FC16; Thu, 21 Oct 2010 19:27:27 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LJRRMS001213; Thu, 21 Oct 2010 19:27:27 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LJRRGu001210; Thu, 21 Oct 2010 19:27:27 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010211927.o9LJRRGu001210@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 19:27:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214159 - in projects/binutils-2.17/contrib/binutils/ld: . emultempl X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 19:27:28 -0000 Author: dim Date: Thu Oct 21 19:27:27 2010 New Revision: 214159 URL: http://svn.freebsd.org/changeset/base/214159 Log: Reapply change from r210245. In binutils 2.17, the code in question has moved from ld/emultempl/elf32.em to ld/ldlang.c, so apply approximately the same change as upstream, which has description: * ldlang.c (lang_insert_orphan): Add __start_
symbol assignment inside output section statement. Ensure only one set of symbols per output section. * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-dollar sections before dollar sections. Correct add_child list insertion. Taken from upstream git commit 7e01d69a19a8fd079887f26853c8565da15ff340, with permission to use it under GPLv2 from the author. Modified: projects/binutils-2.17/contrib/binutils/ld/emultempl/pe.em projects/binutils-2.17/contrib/binutils/ld/ldlang.c Modified: projects/binutils-2.17/contrib/binutils/ld/emultempl/pe.em ============================================================================== --- projects/binutils-2.17/contrib/binutils/ld/emultempl/pe.em Thu Oct 21 19:17:40 2010 (r214158) +++ projects/binutils-2.17/contrib/binutils/ld/emultempl/pe.em Thu Oct 21 19:27:27 2010 (r214159) @@ -1525,6 +1525,7 @@ gld_${EMULATION_NAME}_place_orphan (asec char *dollar = NULL; lang_output_section_statement_type *os; lang_statement_list_type add_child; + lang_statement_union_type **pl; secname = bfd_get_section_name (s->owner, s); @@ -1644,47 +1645,29 @@ gld_${EMULATION_NAME}_place_orphan (asec os = lang_insert_orphan (s, secname, after, place, address, &add_child); } - { - lang_statement_union_type **pl = &os->children.head; - - if (dollar != NULL) - { - bfd_boolean found_dollar; - - /* The section name has a '$'. Sort it with the other '$' - sections. */ - found_dollar = FALSE; - for ( ; *pl != NULL; pl = &(*pl)->header.next) - { - lang_input_section_type *ls; - const char *lname; + /* If the section name has a '\$', sort it with the other '\$' + sections. */ + for (pl = &os->children.head; *pl != NULL; pl = &(*pl)->header.next) + { + lang_input_section_type *ls; + const char *lname; - if ((*pl)->header.type != lang_input_section_enum) - continue; + if ((*pl)->header.type != lang_input_section_enum) + continue; - ls = &(*pl)->input_section; + ls = &(*pl)->input_section; - lname = bfd_get_section_name (ls->section->owner, ls->section); - if (strchr (lname, '$') == NULL) - { - if (found_dollar) - break; - } - else - { - found_dollar = TRUE; - if (strcmp (orig_secname, lname) < 0) - break; - } - } - } + lname = bfd_get_section_name (ls->section->owner, ls->section); + if (strchr (lname, '\$') != NULL + && (dollar == NULL || strcmp (orig_secname, lname) < 0)) + break; + } - if (add_child.head != NULL) - { - add_child.head->header.next = *pl; - *pl = add_child.head; - } - } + if (add_child.head != NULL) + { + *add_child.tail = *pl; + *pl = add_child.head; + } return TRUE; } Modified: projects/binutils-2.17/contrib/binutils/ld/ldlang.c ============================================================================== --- projects/binutils-2.17/contrib/binutils/ld/ldlang.c Thu Oct 21 19:17:40 2010 (r214158) +++ projects/binutils-2.17/contrib/binutils/ld/ldlang.c Thu Oct 21 19:27:27 2010 (r214159) @@ -1349,8 +1349,26 @@ lang_insert_orphan (asection *s, lang_list_init (stat_ptr); } + if (link_info.relocatable || (s->flags & (SEC_LOAD | SEC_ALLOC)) == 0) + address = exp_intop (0); + + load_base = NULL; + if (after != NULL && after->load_base != NULL) + { + etree_type *lma_from_vma; + lma_from_vma = exp_binop ('-', after->load_base, + exp_nameop (ADDR, after->name)); + load_base = exp_binop ('+', lma_from_vma, + exp_nameop (ADDR, secname)); + } + + os_tail = ((lang_output_section_statement_type **) + lang_output_section_statement.tail); + os = lang_enter_output_section_statement (secname, address, 0, NULL, NULL, + load_base, 0); + ps = NULL; - if (config.build_constructors) + if (config.build_constructors && *os_tail == os) { /* If the name of the section is representable in C, then create symbols to mark the start and the end of the section. */ @@ -1373,24 +1391,6 @@ lang_insert_orphan (asection *s, } } - if (link_info.relocatable || (s->flags & (SEC_LOAD | SEC_ALLOC)) == 0) - address = exp_intop (0); - - load_base = NULL; - if (after != NULL && after->load_base != NULL) - { - etree_type *lma_from_vma; - lma_from_vma = exp_binop ('-', after->load_base, - exp_nameop (ADDR, after->name)); - load_base = exp_binop ('+', lma_from_vma, - exp_nameop (ADDR, secname)); - } - - os_tail = ((lang_output_section_statement_type **) - lang_output_section_statement.tail); - os = lang_enter_output_section_statement (secname, address, 0, NULL, NULL, - load_base, 0); - if (add_child == NULL) add_child = &os->children; lang_add_section (add_child, s, os); From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 19:58:20 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8314106564A; Thu, 21 Oct 2010 19:58:20 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 979C58FC0A; Thu, 21 Oct 2010 19:58:20 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LJwKnT002097; Thu, 21 Oct 2010 19:58:20 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LJwKPD002095; Thu, 21 Oct 2010 19:58:20 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010211958.o9LJwKPD002095@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 19:58:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214165 - projects/binutils-2.17/gnu/usr.bin/binutils X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 19:58:20 -0000 Author: dim Date: Thu Oct 21 19:58:20 2010 New Revision: 214165 URL: http://svn.freebsd.org/changeset/base/214165 Log: Update binutils VERSION define for 2.17, and create separate TARGET_VENDOR and TARGET_OS defines. Set TARGET_TUPLE from BINUTILS_ARCH, TARGET_VENDOR and TARGET_OS. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/Makefile.inc0 Modified: projects/binutils-2.17/gnu/usr.bin/binutils/Makefile.inc0 ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/Makefile.inc0 Thu Oct 21 19:56:26 2010 (r214164) +++ projects/binutils-2.17/gnu/usr.bin/binutils/Makefile.inc0 Thu Oct 21 19:58:20 2010 (r214165) @@ -4,15 +4,17 @@ # use the normal "Makefile.inc" mechanism, because we need some of these # definitions before the sub-Makefile is processed. -VERSION= "2.15 [FreeBSD] 2005-06-08" +VERSION= "2.17 [FreeBSD] 2007-08-07" TARGET_ARCH?= ${MACHINE_ARCH} +TARGET_VENDOR?= unknown +TARGET_OS?= freebsd .if ${TARGET_ARCH} == "amd64" BINUTILS_ARCH=x86_64 .else BINUTILS_ARCH=${TARGET_ARCH} .endif -TARGET_TUPLE?= ${BINUTILS_ARCH}-obrien-freebsd +TARGET_TUPLE?= ${BINUTILS_ARCH}-${TARGET_VENDOR}-${TARGET_OS} # RELTOP is the relative path to this point in the source or object # tree, from any subdirectory of same. It gets extra "../" prefixes From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:01:22 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04742106566B; Thu, 21 Oct 2010 20:01:22 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E806F8FC17; Thu, 21 Oct 2010 20:01:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LK1LqX002215; Thu, 21 Oct 2010 20:01:21 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LK1L1f002213; Thu, 21 Oct 2010 20:01:21 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212001.o9LK1L1f002213@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:01:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214166 - projects/binutils-2.17/gnu/usr.bin/binutils/libiberty X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:01:22 -0000 Author: dim Date: Thu Oct 21 20:01:21 2010 New Revision: 214166 URL: http://svn.freebsd.org/changeset/base/214166 Log: Use one file per line in SRCS= definition, to make insertions and deletions easier. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libiberty/Makefile Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libiberty/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/libiberty/Makefile Thu Oct 21 19:58:20 2010 (r214165) +++ projects/binutils-2.17/gnu/usr.bin/binutils/libiberty/Makefile Thu Oct 21 20:01:21 2010 (r214166) @@ -5,11 +5,30 @@ .PATH: ${SRCDIR}/libiberty LIB= iberty -SRCS= argv.c concat.c choose-temp.c cp-demangle.c cp-demint.c \ - cplus-dem.c dyn-string.c getpwd.c getruntime.c floatformat.c \ - hashtab.c hex.c lbasename.c lrealpath.c make-relative-prefix.c \ - make-temp-file.c objalloc.c obstack.c safe-ctype.c xatexit.c \ - xexit.c xmalloc.c xstrdup.c xstrerror.c +SRCS= argv.c \ + concat.c \ + choose-temp.c \ + cp-demangle.c \ + cp-demint.c \ + cplus-dem.c \ + dyn-string.c \ + getpwd.c \ + getruntime.c \ + floatformat.c \ + hashtab.c \ + hex.c \ + lbasename.c \ + lrealpath.c \ + make-relative-prefix.c \ + make-temp-file.c \ + objalloc.c \ + obstack.c \ + safe-ctype.c \ + xatexit.c \ + xexit.c \ + xmalloc.c \ + xstrdup.c \ + xstrerror.c # The following files are needed by gdb(1) SRCS+= splay-tree.c From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:02:48 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 369101065670; Thu, 21 Oct 2010 20:02:48 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 25E6E8FC12; Thu, 21 Oct 2010 20:02:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LK2mM0002277; Thu, 21 Oct 2010 20:02:48 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LK2mkD002275; Thu, 21 Oct 2010 20:02:48 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212002.o9LK2mkD002275@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:02:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214167 - projects/binutils-2.17/gnu/usr.bin/binutils/libiberty X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:02:48 -0000 Author: dim Date: Thu Oct 21 20:02:47 2010 New Revision: 214167 URL: http://svn.freebsd.org/changeset/base/214167 Log: Add new upstream file to libiberty. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libiberty/Makefile Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libiberty/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/libiberty/Makefile Thu Oct 21 20:01:21 2010 (r214166) +++ projects/binutils-2.17/gnu/usr.bin/binutils/libiberty/Makefile Thu Oct 21 20:02:47 2010 (r214167) @@ -24,6 +24,7 @@ SRCS= argv.c \ objalloc.c \ obstack.c \ safe-ctype.c \ + unlink-if-ordinary.c \ xatexit.c \ xexit.c \ xmalloc.c \ From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:04:28 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E78A0106564A; Thu, 21 Oct 2010 20:04:28 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D57348FC14; Thu, 21 Oct 2010 20:04:28 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LK4Sl5002344; Thu, 21 Oct 2010 20:04:28 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LK4Spr002341; Thu, 21 Oct 2010 20:04:28 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212004.o9LK4Spr002341@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:04:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214168 - projects/binutils-2.17/gnu/usr.bin/binutils/libbfd X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:04:29 -0000 Author: dim Date: Thu Oct 21 20:04:28 2010 New Revision: 214168 URL: http://svn.freebsd.org/changeset/base/214168 Log: Regenerate bfd.h and config.h.fbsd. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/bfd.h projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/config.h.fbsd Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/bfd.h ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/bfd.h Thu Oct 21 20:02:47 2010 (r214167) +++ projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/bfd.h Thu Oct 21 20:04:28 2010 (r214168) @@ -10,7 +10,8 @@ /* Main header file for the bfd library -- portable access to object files. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. Contributed by Cygnus Support. @@ -28,7 +29,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 __BFD_H_SEEN__ #define __BFD_H_SEEN__ @@ -103,14 +104,6 @@ typedef int bfd_boolean; #define FALSE 0 #define TRUE 1 -#if 0 -/* Poison. */ -#undef false -#undef true -#define false dont_use_false_in_bfd -#define true dont_use_true_in_bfd -#endif - #ifdef BFD64 #ifndef BFD_HOST_64_BIT @@ -158,6 +151,9 @@ typedef unsigned long bfd_size_type; #endif /* not BFD64 */ +#define HALF_BFD_SIZE_TYPE \ + (((bfd_size_type) 1) << (8 * sizeof (bfd_size_type) / 2)) + #ifndef BFD_HOST_64_BIT /* Fall back on a 32 bit type. The idea is to make these types always available for function return types, but in the case that @@ -252,6 +248,10 @@ bfd_format; /* The sections in this BFD specify a memory page. */ #define HAS_LOAD_PAGE 0x1000 + +/* This BFD has been created by the linker and doesn't correspond + to any input file. */ +#define BFD_LINKER_CREATED 0x2000 /* Symbols and relocation. */ @@ -322,7 +322,8 @@ typedef struct bfd_section *sec_ptr; #define bfd_get_section_lma(bfd, ptr) ((ptr)->lma + 0) #define bfd_get_section_alignment(bfd, ptr) ((ptr)->alignment_power + 0) #define bfd_section_name(bfd, ptr) ((ptr)->name) -#define bfd_section_size(bfd, ptr) (bfd_get_section_size_before_reloc(ptr)) +#define bfd_section_size(bfd, ptr) ((ptr)->size) +#define bfd_get_section_size(ptr) ((ptr)->size) #define bfd_section_vma(bfd, ptr) ((ptr)->vma) #define bfd_section_lma(bfd, ptr) ((ptr)->lma) #define bfd_section_alignment(bfd, ptr) ((ptr)->alignment_power) @@ -334,6 +335,10 @@ typedef struct bfd_section *sec_ptr; #define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE) #define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE) #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE) +/* Find the address one past the end of SEC. */ +#define bfd_get_section_limit(bfd, sec) \ + (((sec)->rawsize ? (sec)->rawsize : (sec)->size) \ + / bfd_octets_per_byte (bfd)) typedef struct stat stat_type; @@ -385,6 +390,8 @@ struct bfd_hash_table struct bfd_hash_entry **table; /* The number of slots in the hash table. */ unsigned int size; + /* The size of elements. */ + unsigned int entsize; /* A function used to create new elements in the hash table. The first entry is itself a pointer to an element. When this function is first invoked, this pointer will be NULL. However, @@ -404,7 +411,8 @@ extern bfd_boolean bfd_hash_table_init (struct bfd_hash_table *, struct bfd_hash_entry *(*) (struct bfd_hash_entry *, struct bfd_hash_table *, - const char *)); + const char *), + unsigned int); /* Initialize a hash table specifying a size. */ extern bfd_boolean bfd_hash_table_init_n @@ -412,7 +420,7 @@ extern bfd_boolean bfd_hash_table_init_n struct bfd_hash_entry *(*) (struct bfd_hash_entry *, struct bfd_hash_table *, const char *), - unsigned int size); + unsigned int, unsigned int); /* Free up a hash table. */ extern void bfd_hash_table_free @@ -447,6 +455,24 @@ extern void bfd_hash_traverse bfd_boolean (*) (struct bfd_hash_entry *, void *), void *info); +/* Allows the default size of a hash table to be configured. New hash + tables allocated using bfd_hash_table_init will be created with + this size. */ +extern void bfd_hash_set_default_size (bfd_size_type); + +/* This structure is used to keep track of stabs in sections + information while linking. */ + +struct stab_info +{ + /* A hash table used to hold stabs strings. */ + struct bfd_strtab_hash *strings; + /* The header file hash table. */ + struct bfd_hash_table includes; + /* The first .stabstr section. */ + struct bfd_section *stabstr; +}; + #define COFF_SWAP_TABLE (void *) &bfd_coff_std_swap_table /* User program access to BFD facilities. */ @@ -519,6 +545,8 @@ extern bfd_boolean bfd_cache_close (bfd *abfd); /* NB: This declaration should match the autogenerated one in libbfd.h. */ +extern bfd_boolean bfd_cache_close_all (void); + extern bfd_boolean bfd_record_phdr (bfd *, unsigned long, bfd_boolean, flagword, bfd_boolean, bfd_vma, bfd_boolean, bfd_boolean, unsigned int, struct bfd_section **); @@ -548,6 +576,9 @@ void bfd_putl16 (bfd_vma, void *); bfd_uint64_t bfd_get_bits (const void *, int, bfd_boolean); void bfd_put_bits (bfd_uint64_t, void *, int, bfd_boolean); + +extern bfd_boolean bfd_section_already_linked_table_init (void); +extern void bfd_section_already_linked_table_free (void); /* Externally visible ECOFF routines. */ @@ -601,8 +632,6 @@ extern bfd_boolean bfd_ecoff_write_accum (void *handle, bfd *abfd, struct ecoff_debug_info *debug, const struct ecoff_debug_swap *swap, struct bfd_link_info *info, file_ptr where); -extern bfd_boolean bfd_mips_ecoff_create_embedded_relocs - (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **); /* Externally visible ELF routines. */ @@ -616,28 +645,44 @@ struct bfd_link_needed_list enum dynamic_lib_link_class { DYN_NORMAL = 0, DYN_AS_NEEDED = 1, - DYN_DT_NEEDED = 2 + DYN_DT_NEEDED = 2, + DYN_NO_ADD_NEEDED = 4, + DYN_NO_NEEDED = 8 +}; + +enum notice_asneeded_action { + notice_as_needed, + notice_not_needed, + notice_needed }; extern bfd_boolean bfd_elf_record_link_assignment - (bfd *, struct bfd_link_info *, const char *, bfd_boolean); + (bfd *, struct bfd_link_info *, const char *, bfd_boolean, + bfd_boolean); extern struct bfd_link_needed_list *bfd_elf_get_needed_list (bfd *, struct bfd_link_info *); extern bfd_boolean bfd_elf_get_bfd_needed_list (bfd *, struct bfd_link_needed_list **); extern bfd_boolean bfd_elf_size_dynamic_sections (bfd *, const char *, const char *, const char *, const char * const *, - struct bfd_link_info *, struct bfd_section **, struct bfd_elf_version_tree *); + struct bfd_link_info *, struct bfd_section **, + struct bfd_elf_version_tree *); +extern bfd_boolean bfd_elf_size_dynsym_hash_dynstr + (bfd *, struct bfd_link_info *); extern void bfd_elf_set_dt_needed_name (bfd *, const char *); extern const char *bfd_elf_get_dt_soname (bfd *); extern void bfd_elf_set_dyn_lib_class (bfd *, int); +extern int bfd_elf_get_dyn_lib_class + (bfd *); extern struct bfd_link_needed_list *bfd_elf_get_runpath_list (bfd *, struct bfd_link_info *); extern bfd_boolean bfd_elf_discard_info (bfd *, struct bfd_link_info *); +extern unsigned int _bfd_elf_default_action_discarded + (struct bfd_section *); /* Return an upper bound on the number of bytes required to store a copy of ABFD's program header table entries. Return -1 if an error @@ -669,7 +714,7 @@ extern int bfd_get_elf_phdrs the remote memory. */ extern bfd *bfd_elf_bfd_from_remote_memory (bfd *templ, bfd_vma ehdr_vma, bfd_vma *loadbasep, - int (*target_read_memory) (bfd_vma vma, char *myaddr, int len)); + int (*target_read_memory) (bfd_vma vma, bfd_byte *myaddr, int len)); /* Return the arch_size field of an elf bfd, or -1 if not elf. */ extern int bfd_get_arch_size @@ -682,10 +727,20 @@ extern int bfd_get_sign_extend_vma extern struct bfd_section *_bfd_elf_tls_setup (bfd *, struct bfd_link_info *); +extern void _bfd_fix_excluded_sec_syms + (bfd *, struct bfd_link_info *); + +extern unsigned bfd_m68k_mach_to_features (int); + +extern int bfd_m68k_features_to_mach (unsigned); + extern bfd_boolean bfd_m68k_elf32_create_embedded_relocs - (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **); -extern bfd_boolean bfd_mips_elf32_create_embedded_relocs - (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **); + (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, + char **); + +extern bfd_boolean bfd_bfin_elf32_create_embedded_relocs + (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, + char **); /* SunOS shared library support routines for the linker. */ @@ -694,7 +749,8 @@ extern struct bfd_link_needed_list *bfd_ extern bfd_boolean bfd_sunos_record_link_assignment (bfd *, struct bfd_link_info *, const char *); extern bfd_boolean bfd_sunos_size_dynamic_sections - (bfd *, struct bfd_link_info *, struct bfd_section **, struct bfd_section **, struct bfd_section **); + (bfd *, struct bfd_link_info *, struct bfd_section **, + struct bfd_section **, struct bfd_section **); /* Linux shared library support routines for the linker. */ @@ -802,12 +858,19 @@ extern bfd_boolean bfd_elf32_arm_allocat extern bfd_boolean bfd_elf32_arm_process_before_allocation (bfd *, struct bfd_link_info *, int); +void bfd_elf32_arm_set_target_relocs + (struct bfd_link_info *, int, char *, int, int); + extern bfd_boolean bfd_elf32_arm_get_bfd_for_interworking (bfd *, struct bfd_link_info *); extern bfd_boolean bfd_elf32_arm_add_glue_sections_to_bfd (bfd *, struct bfd_link_info *); +/* ELF ARM mapping symbol support */ +extern bfd_boolean bfd_is_arm_mapping_symbol_name + (const char * name); + /* ARM Note section processing. */ extern bfd_boolean bfd_arm_merge_machines (bfd *, bfd *); @@ -836,16 +899,51 @@ extern void bfd_elf32_ia64_after_parse extern void bfd_elf64_ia64_after_parse (int); +/* This structure is used for a comdat section, as in PE. A comdat + section is associated with a particular symbol. When the linker + sees a comdat section, it keeps only one of the sections with a + given name and associated with a given symbol. */ + +struct coff_comdat_info +{ + /* The name of the symbol associated with a comdat section. */ + const char *name; + + /* The local symbol table index of the symbol associated with a + comdat section. This is only meaningful to the object file format + specific code; it is not an index into the list returned by + bfd_canonicalize_symtab. */ + long symbol; +}; + +extern struct coff_comdat_info *bfd_coff_get_comdat_section + (bfd *, struct bfd_section *); + /* Extracted from init.c. */ void bfd_init (void); /* Extracted from opncls.c. */ +bfd *bfd_fopen (const char *filename, const char *target, + const char *mode, int fd); + bfd *bfd_openr (const char *filename, const char *target); bfd *bfd_fdopenr (const char *filename, const char *target, int fd); bfd *bfd_openstreamr (const char *, const char *, void *); +bfd *bfd_openr_iovec (const char *filename, const char *target, + void *(*open) (struct bfd *nbfd, + void *open_closure), + void *open_closure, + file_ptr (*pread) (struct bfd *nbfd, + void *stream, + void *buf, + file_ptr nbytes, + file_ptr offset), + int (*close) (struct bfd *nbfd, + void *stream)); + bfd *bfd_openw (const char *filename, const char *target); bfd_boolean bfd_close (bfd *abfd); @@ -989,23 +1087,6 @@ long bfd_get_size (bfd *abfd); /* Extracted from bfdwin.c. */ /* Extracted from section.c. */ -/* This structure is used for a comdat section, as in PE. A comdat - section is associated with a particular symbol. When the linker - sees a comdat section, it keeps only one of the sections with a - given name and associated with a given symbol. */ - -struct bfd_comdat_info -{ - /* The name of the symbol associated with a comdat section. */ - const char *name; - - /* The local symbol table index of the symbol associated with a - comdat section. This is only meaningful to the object file format - specific code; it is not an index into the list returned by - bfd_canonicalize_symtab. */ - long symbol; -}; - typedef struct bfd_section { /* The name of the section; the name isn't a copy, the pointer is @@ -1021,6 +1102,9 @@ typedef struct bfd_section /* The next section in the list belonging to the BFD, or NULL. */ struct bfd_section *next; + /* The previous section in the list belonging to the BFD, or NULL. */ + struct bfd_section *prev; + /* The field flags contains attributes of the section. Some flags are read in from the object file, and some are synthesized from other information. */ @@ -1040,23 +1124,17 @@ typedef struct bfd_section some relocation information too. */ #define SEC_RELOC 0x004 - /* ELF reserves 4 processor specific bits and 8 operating system - specific bits in sh_flags; at present we can get away with just - one in communicating between the assembler and BFD, but this - isn't a good long-term solution. */ -#define SEC_ARCH_BIT_0 0x008 - /* A signal to the OS that the section contains read only data. */ -#define SEC_READONLY 0x010 +#define SEC_READONLY 0x008 /* The section contains code only. */ -#define SEC_CODE 0x020 +#define SEC_CODE 0x010 /* The section contains data only. */ -#define SEC_DATA 0x040 +#define SEC_DATA 0x020 /* The section will reside in ROM. */ -#define SEC_ROM 0x080 +#define SEC_ROM 0x040 /* The section contains constructor information. This section type is used by the linker to create lists of constructors and @@ -1068,30 +1146,19 @@ typedef struct bfd_section sections called <<__CTOR_LIST__>> and relocate the data contained within - exactly the operations it would peform on standard data. */ -#define SEC_CONSTRUCTOR 0x100 +#define SEC_CONSTRUCTOR 0x080 /* The section has contents - a data section could be <> | <>; a debug section could be <> */ -#define SEC_HAS_CONTENTS 0x200 +#define SEC_HAS_CONTENTS 0x100 /* An instruction to the linker to not output the section even if it has information which would normally be written. */ -#define SEC_NEVER_LOAD 0x400 - - /* The section is a COFF shared library section. This flag is - only for the linker. If this type of section appears in - the input file, the linker must copy it to the output file - without changing the vma or size. FIXME: Although this - was originally intended to be general, it really is COFF - specific (and the flag was renamed to indicate this). It - might be cleaner to have some more general mechanism to - allow the back end to control what the linker does with - sections. */ -#define SEC_COFF_SHARED_LIBRARY 0x800 +#define SEC_NEVER_LOAD 0x200 /* The section contains thread local data. */ -#define SEC_THREAD_LOCAL 0x1000 +#define SEC_THREAD_LOCAL 0x400 /* The section has GOT references. This flag is only for the linker, and is currently only used by the elf32-hppa back end. @@ -1099,46 +1166,46 @@ typedef struct bfd_section in this section, which indicate to the linker that the section contains PIC code, and must be handled specially when doing a static link. */ -#define SEC_HAS_GOT_REF 0x4000 +#define SEC_HAS_GOT_REF 0x800 /* The section contains common symbols (symbols may be defined multiple times, the value of a symbol is the amount of space it requires, and the largest symbol value is the one used). Most targets have exactly one of these (which we translate to bfd_com_section_ptr), but ECOFF has two. */ -#define SEC_IS_COMMON 0x8000 +#define SEC_IS_COMMON 0x1000 /* The section contains only debugging information. For example, this is set for ELF .debug and .stab sections. strip tests this flag to see if a section can be discarded. */ -#define SEC_DEBUGGING 0x10000 +#define SEC_DEBUGGING 0x2000 /* The contents of this section are held in memory pointed to by the contents field. This is checked by bfd_get_section_contents, and the data is retrieved from memory if appropriate. */ -#define SEC_IN_MEMORY 0x20000 +#define SEC_IN_MEMORY 0x4000 /* The contents of this section are to be excluded by the linker for executable and shared objects unless those objects are to be further relocated. */ -#define SEC_EXCLUDE 0x40000 +#define SEC_EXCLUDE 0x8000 /* The contents of this section are to be sorted based on the sum of the symbol and addend values specified by the associated relocation entries. Entries without associated relocation entries will be appended to the end of the section in an unspecified order. */ -#define SEC_SORT_ENTRIES 0x80000 +#define SEC_SORT_ENTRIES 0x10000 /* When linking, duplicate sections of the same name should be discarded, rather than being combined into a single section as is usually done. This is similar to how common symbols are handled. See SEC_LINK_DUPLICATES below. */ -#define SEC_LINK_ONCE 0x100000 +#define SEC_LINK_ONCE 0x20000 /* If SEC_LINK_ONCE is set, this bitfield describes how the linker should handle duplicate sections. */ -#define SEC_LINK_DUPLICATES 0x600000 +#define SEC_LINK_DUPLICATES 0x40000 /* This value for SEC_LINK_DUPLICATES means that duplicate sections with the same name should simply be discarded. */ @@ -1147,55 +1214,69 @@ typedef struct bfd_section /* This value for SEC_LINK_DUPLICATES means that the linker should warn if there are any duplicate sections, although it should still only link one copy. */ -#define SEC_LINK_DUPLICATES_ONE_ONLY 0x200000 +#define SEC_LINK_DUPLICATES_ONE_ONLY 0x80000 /* This value for SEC_LINK_DUPLICATES means that the linker should warn if any duplicate sections are a different size. */ -#define SEC_LINK_DUPLICATES_SAME_SIZE 0x400000 +#define SEC_LINK_DUPLICATES_SAME_SIZE 0x100000 /* This value for SEC_LINK_DUPLICATES means that the linker should warn if any duplicate sections contain different contents. */ -#define SEC_LINK_DUPLICATES_SAME_CONTENTS 0x600000 +#define SEC_LINK_DUPLICATES_SAME_CONTENTS \ + (SEC_LINK_DUPLICATES_ONE_ONLY | SEC_LINK_DUPLICATES_SAME_SIZE) /* This section was created by the linker as part of dynamic relocation or other arcane processing. It is skipped when going through the first-pass output, trusting that someone else up the line will take care of it later. */ -#define SEC_LINKER_CREATED 0x800000 +#define SEC_LINKER_CREATED 0x200000 /* This section should not be subject to garbage collection. */ -#define SEC_KEEP 0x1000000 +#define SEC_KEEP 0x400000 /* This section contains "short" data, and should be placed "near" the GP. */ -#define SEC_SMALL_DATA 0x2000000 - - /* This section contains data which may be shared with other - executables or shared objects. */ -#define SEC_SHARED 0x4000000 - - /* When a section with this flag is being linked, then if the size of - the input section is less than a page, it should not cross a page - boundary. If the size of the input section is one page or more, it - should be aligned on a page boundary. */ -#define SEC_BLOCK 0x8000000 - - /* Conditionally link this section; do not link if there are no - references found to any symbol in the section. */ -#define SEC_CLINK 0x10000000 +#define SEC_SMALL_DATA 0x800000 /* Attempt to merge identical entities in the section. Entity size is given in the entsize field. */ -#define SEC_MERGE 0x20000000 +#define SEC_MERGE 0x1000000 /* If given with SEC_MERGE, entities to merge are zero terminated strings where entsize specifies character size instead of fixed size entries. */ -#define SEC_STRINGS 0x40000000 +#define SEC_STRINGS 0x2000000 /* This section contains data about section groups. */ -#define SEC_GROUP 0x80000000 +#define SEC_GROUP 0x4000000 + + /* The section is a COFF shared library section. This flag is + only for the linker. If this type of section appears in + the input file, the linker must copy it to the output file + without changing the vma or size. FIXME: Although this + was originally intended to be general, it really is COFF + specific (and the flag was renamed to indicate this). It + might be cleaner to have some more general mechanism to + allow the back end to control what the linker does with + sections. */ +#define SEC_COFF_SHARED_LIBRARY 0x10000000 + + /* This section contains data which may be shared with other + executables or shared objects. This is for COFF only. */ +#define SEC_COFF_SHARED 0x20000000 + + /* When a section with this flag is being linked, then if the size of + the input section is less than a page, it should not cross a page + boundary. If the size of the input section is one page or more, + it should be aligned on a page boundary. This is for TI + TMS320C54X only. */ +#define SEC_TIC54X_BLOCK 0x40000000 + + /* Conditionally link this section; do not link if there are no + references found to any symbol in the section. This is for TI + TMS320C54X only. */ +#define SEC_TIC54X_CLINK 0x80000000 /* End of section flags. */ @@ -1204,9 +1285,6 @@ typedef struct bfd_section /* See the vma field. */ unsigned int user_set_vma : 1; - /* Whether relocations have been processed. */ - unsigned int reloc_done : 1; - /* A mark flag used by some of the linker backends. */ unsigned int linker_mark : 1; @@ -1214,8 +1292,9 @@ typedef struct bfd_section output sections that have an input section. */ unsigned int linker_has_input : 1; - /* A mark flag used by some linker backends for garbage collection. */ + /* Mark flags used by some linker backends for garbage collection. */ unsigned int gc_mark : 1; + unsigned int gc_mark_from_eh : 1; /* The following flags are used by the ELF linker. */ @@ -1233,22 +1312,20 @@ typedef struct bfd_section /* Nonzero if this section uses RELA relocations, rather than REL. */ unsigned int use_rela_p:1; - /* Bits used by various backends. */ - unsigned int has_tls_reloc:1; + /* Bits used by various backends. The generic code doesn't touch + these fields. */ - /* Nonzero if this section needs the relax finalize pass. */ - unsigned int need_finalize_relax:1; + /* Nonzero if this section has TLS related relocations. */ + unsigned int has_tls_reloc:1; /* Nonzero if this section has a gp reloc. */ unsigned int has_gp_reloc:1; - /* Unused bits. */ - unsigned int flag13:1; - unsigned int flag14:1; - unsigned int flag15:1; - unsigned int flag16:4; - unsigned int flag20:4; - unsigned int flag24:8; + /* Nonzero if this section needs the relax finalize pass. */ + unsigned int need_finalize_relax:1; + + /* Whether relocations have been processed. */ + unsigned int reloc_done : 1; /* End of internal packed boolean fields. */ @@ -1267,13 +1344,18 @@ typedef struct bfd_section /* The size of the section in octets, as it will be output. Contains a value even if the section has no contents (e.g., the - size of <<.bss>>). This will be filled in after relocation. */ - bfd_size_type _cooked_size; + size of <<.bss>>). */ + bfd_size_type size; - /* The original size on disk of the section, in octets. Normally this - value is the same as the size, but if some relaxing has - been done, then this value will be bigger. */ - bfd_size_type _raw_size; + /* For input sections, the original size on disk of the section, in + octets. This field is used by the linker relaxation code. It is + currently only set for sections where the linker relaxation scheme + doesn't cache altered section and reloc contents (stabs, eh_frame, + SEC_MERGE, some coff relaxing targets), and thus the original size + needs to be kept to read the section multiple times. + For output sections, rawsize holds the section size calculated on + a previous linker relaxation pass. */ + bfd_size_type rawsize; /* If this section is going to be output, then this value is the offset in *bytes* into the output section of the first byte in the @@ -1330,9 +1412,6 @@ typedef struct bfd_section /* Entity size for merging purposes. */ unsigned int entsize; - /* Optional information about a COMDAT entry; NULL if not COMDAT. */ - struct bfd_comdat_info *comdat; - /* Points to the kept section if this section is a link-once section, and is discarded. */ struct bfd_section *kept_section; @@ -1357,8 +1436,14 @@ typedef struct bfd_section struct bfd_symbol *symbol; struct bfd_symbol **symbol_ptr_ptr; - struct bfd_link_order *link_order_head; - struct bfd_link_order *link_order_tail; + /* Early in the link process, map_head and map_tail are used to build + a list of input sections attached to an output section. Later, + output sections use these fields for a list of bfd_link_order + structs. */ + union { + struct bfd_link_order *link_order; + struct bfd_section *s; + } map_head, map_tail; } asection; /* These sections are global, and are managed by BFD. The application @@ -1397,48 +1482,161 @@ extern const struct bfd_symbol * const b extern const struct bfd_symbol * const bfd_com_symbol; extern const struct bfd_symbol * const bfd_und_symbol; extern const struct bfd_symbol * const bfd_ind_symbol; -#define bfd_get_section_size_before_reloc(section) \ - ((section)->_raw_size) -#define bfd_get_section_size_after_reloc(section) \ - ((section)->reloc_done ? (section)->_cooked_size \ - : (abort (), (bfd_size_type) 1)) /* Macros to handle insertion and deletion of a bfd's sections. These only handle the list pointers, ie. do not adjust section_count, target_index etc. */ -#define bfd_section_list_remove(ABFD, PS) \ +#define bfd_section_list_remove(ABFD, S) \ + do \ + { \ + asection *_s = S; \ + asection *_next = _s->next; \ + asection *_prev = _s->prev; \ + if (_prev) \ + _prev->next = _next; \ + else \ + (ABFD)->sections = _next; \ + if (_next) \ + _next->prev = _prev; \ + else \ + (ABFD)->section_last = _prev; \ + } \ + while (0) +#define bfd_section_list_append(ABFD, S) \ + do \ + { \ + asection *_s = S; \ + bfd *_abfd = ABFD; \ + _s->next = NULL; \ + if (_abfd->section_last) \ + { \ + _s->prev = _abfd->section_last; \ + _abfd->section_last->next = _s; \ + } \ + else \ + { \ + _s->prev = NULL; \ + _abfd->sections = _s; \ + } \ + _abfd->section_last = _s; \ + } \ + while (0) +#define bfd_section_list_prepend(ABFD, S) \ + do \ + { \ + asection *_s = S; \ + bfd *_abfd = ABFD; \ + _s->prev = NULL; \ + if (_abfd->sections) \ + { \ + _s->next = _abfd->sections; \ + _abfd->sections->prev = _s; \ + } \ + else \ + { \ + _s->next = NULL; \ + _abfd->section_last = _s; \ + } \ + _abfd->sections = _s; \ + } \ + while (0) +#define bfd_section_list_insert_after(ABFD, A, S) \ do \ { \ - asection **_ps = PS; \ - asection *_s = *_ps; \ - *_ps = _s->next; \ - if (_s->next == NULL) \ - (ABFD)->section_tail = _ps; \ + asection *_a = A; \ + asection *_s = S; \ + asection *_next = _a->next; \ + _s->next = _next; \ + _s->prev = _a; \ + _a->next = _s; \ + if (_next) \ + _next->prev = _s; \ + else \ + (ABFD)->section_last = _s; \ } \ while (0) -#define bfd_section_list_insert(ABFD, PS, S) \ +#define bfd_section_list_insert_before(ABFD, B, S) \ do \ { \ - asection **_ps = PS; \ + asection *_b = B; \ asection *_s = S; \ - _s->next = *_ps; \ - *_ps = _s; \ - if (_s->next == NULL) \ - (ABFD)->section_tail = &_s->next; \ + asection *_prev = _b->prev; \ + _s->prev = _prev; \ + _s->next = _b; \ + _b->prev = _s; \ + if (_prev) \ + _prev->next = _s; \ + else \ + (ABFD)->sections = _s; \ } \ while (0) +#define bfd_section_removed_from_list(ABFD, S) \ + ((S)->next == NULL ? (ABFD)->section_last != (S) : (S)->next->prev != (S)) + +#define BFD_FAKE_SECTION(SEC, FLAGS, SYM, SYM_PTR, NAME, IDX) \ + /* name, id, index, next, prev, flags, user_set_vma, */ \ + { NAME, IDX, 0, NULL, NULL, FLAGS, 0, \ + \ + /* linker_mark, linker_has_input, gc_mark, gc_mark_from_eh, */ \ + 0, 0, 1, 0, \ + \ + /* segment_mark, sec_info_type, use_rela_p, has_tls_reloc, */ \ + 0, 0, 0, 0, \ + \ + /* has_gp_reloc, need_finalize_relax, reloc_done, */ \ + 0, 0, 0, \ + \ + /* vma, lma, size, rawsize */ \ + 0, 0, 0, 0, \ + \ + /* output_offset, output_section, alignment_power, */ \ + 0, (struct bfd_section *) &SEC, 0, \ + \ + /* relocation, orelocation, reloc_count, filepos, rel_filepos, */ \ + NULL, NULL, 0, 0, 0, \ + \ + /* line_filepos, userdata, contents, lineno, lineno_count, */ \ + 0, NULL, NULL, NULL, 0, \ + \ + /* entsize, kept_section, moving_line_filepos, */ \ + 0, NULL, 0, \ + \ + /* target_index, used_by_bfd, constructor_chain, owner, */ \ + 0, NULL, NULL, NULL, \ + \ + /* symbol, */ \ + (struct bfd_symbol *) SYM, \ + \ + /* symbol_ptr_ptr, */ \ + (struct bfd_symbol **) SYM_PTR, \ + \ + /* map_head, map_tail */ \ + { NULL }, { NULL } \ + } void bfd_section_list_clear (bfd *); asection *bfd_get_section_by_name (bfd *abfd, const char *name); +asection *bfd_get_section_by_name_if + (bfd *abfd, + const char *name, + bfd_boolean (*func) (bfd *abfd, asection *sect, void *obj), + void *obj); + char *bfd_get_unique_section_name (bfd *abfd, const char *templat, int *count); asection *bfd_make_section_old_way (bfd *abfd, const char *name); +asection *bfd_make_section_anyway_with_flags + (bfd *abfd, const char *name, flagword flags); + asection *bfd_make_section_anyway (bfd *abfd, const char *name); +asection *bfd_make_section_with_flags + (bfd *, const char *name, flagword flags); + asection *bfd_make_section (bfd *, const char *name); bfd_boolean bfd_set_section_flags @@ -1449,6 +1647,11 @@ void bfd_map_over_sections void (*func) (bfd *abfd, asection *sect, void *obj), void *obj); +asection *bfd_sections_find_if + (bfd *abfd, + bfd_boolean (*operation) (bfd *abfd, asection *sect, void *obj), + void *obj); + bfd_boolean bfd_set_section_size (bfd *abfd, asection *sec, bfd_size_type val); @@ -1460,14 +1663,16 @@ bfd_boolean bfd_get_section_contents (bfd *abfd, asection *section, void *location, file_ptr offset, bfd_size_type count); +bfd_boolean bfd_malloc_and_get_section + (bfd *abfd, asection *section, bfd_byte **buf); + bfd_boolean bfd_copy_private_section_data (bfd *ibfd, asection *isec, bfd *obfd, asection *osec); #define bfd_copy_private_section_data(ibfd, isection, obfd, osection) \ BFD_SEND (obfd, _bfd_copy_private_section_data, \ (ibfd, isection, obfd, osection)) -void _bfd_strip_section_from_output - (struct bfd_link_info *info, asection *section); +bfd_boolean bfd_generic_is_group_section (bfd *, const asection *sec); bfd_boolean bfd_generic_discard_group (bfd *abfd, asection *group); @@ -1485,11 +1690,22 @@ enum bfd_architecture #define bfd_mach_m68040 6 #define bfd_mach_m68060 7 #define bfd_mach_cpu32 8 -#define bfd_mach_mcf5200 9 -#define bfd_mach_mcf5206e 10 -#define bfd_mach_mcf5307 11 -#define bfd_mach_mcf5407 12 -#define bfd_mach_mcf528x 13 +#define bfd_mach_mcf_isa_a_nodiv 9 +#define bfd_mach_mcf_isa_a 10 +#define bfd_mach_mcf_isa_a_mac 11 +#define bfd_mach_mcf_isa_a_emac 12 +#define bfd_mach_mcf_isa_aplus 13 +#define bfd_mach_mcf_isa_aplus_mac 14 +#define bfd_mach_mcf_isa_aplus_emac 15 +#define bfd_mach_mcf_isa_b_nousp 16 +#define bfd_mach_mcf_isa_b_nousp_mac 17 +#define bfd_mach_mcf_isa_b_nousp_emac 18 +#define bfd_mach_mcf_isa_b 19 +#define bfd_mach_mcf_isa_b_mac 20 +#define bfd_mach_mcf_isa_b_emac 21 +#define bfd_mach_mcf_isa_b_float 22 +#define bfd_mach_mcf_isa_b_float_mac 23 +#define bfd_mach_mcf_isa_b_float_emac 24 bfd_arch_vax, /* DEC Vax */ bfd_arch_i960, /* Intel 960 */ /* The order of the following is important. @@ -1511,7 +1727,6 @@ enum bfd_architecture bfd_arch_or32, /* OpenRISC 32 */ - bfd_arch_a29k, /* AMD 29000 */ bfd_arch_sparc, /* SPARC */ #define bfd_mach_sparc 1 /* The difference between v8plus and v9 is that v9 is a true 64 bit env. */ @@ -1528,6 +1743,9 @@ enum bfd_architecture #define bfd_mach_sparc_v9_p(mach) \ ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9b \ && (mach) != bfd_mach_sparc_sparclite_le) +/* Nonzero if MACH is a 64 bit sparc architecture. */ +#define bfd_mach_sparc_64bit_p(mach) \ + ((mach) >= bfd_mach_sparc_v9 && (mach) != bfd_mach_sparc_v8plusb) bfd_arch_mips, /* MIPS Rxxxx */ #define bfd_mach_mips3000 3000 #define bfd_mach_mips3900 3900 @@ -1568,7 +1786,6 @@ enum bfd_architecture bfd_arch_i860, /* Intel 860 */ bfd_arch_i370, /* IBM 360/370 Mainframes */ bfd_arch_romp, /* IBM ROMP PC/RT */ - bfd_arch_alliant, /* Alliant */ bfd_arch_convex, /* Convex */ bfd_arch_m88k, /* Motorola 88xxx */ bfd_arch_m98k, /* Motorola 98xxx */ @@ -1631,12 +1848,20 @@ enum bfd_architecture #define bfd_mach_sh 1 #define bfd_mach_sh2 0x20 #define bfd_mach_sh_dsp 0x2d +#define bfd_mach_sh2a 0x2a +#define bfd_mach_sh2a_nofpu 0x2b +#define bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu 0x2a1 +#define bfd_mach_sh2a_nofpu_or_sh3_nommu 0x2a2 +#define bfd_mach_sh2a_or_sh4 0x2a3 +#define bfd_mach_sh2a_or_sh3e 0x2a4 #define bfd_mach_sh2e 0x2e #define bfd_mach_sh3 0x30 +#define bfd_mach_sh3_nommu 0x31 #define bfd_mach_sh3_dsp 0x3d #define bfd_mach_sh3e 0x3e #define bfd_mach_sh4 0x40 #define bfd_mach_sh4_nofpu 0x41 +#define bfd_mach_sh4_nommu_nofpu 0x42 #define bfd_mach_sh4a 0x4a #define bfd_mach_sh4a_nofpu 0x4b #define bfd_mach_sh4al_dsp 0x4d @@ -1676,6 +1901,9 @@ enum bfd_architecture #define bfd_mach_arc_6 6 #define bfd_mach_arc_7 7 #define bfd_mach_arc_8 8 + bfd_arch_m32c, /* Renesas M16C/M32C. */ +#define bfd_mach_m16c 0x75 +#define bfd_mach_m32c 0x78 bfd_arch_m32r, /* Renesas M32R (formerly Mitsubishi M32R/D) */ #define bfd_mach_m32r 1 /* For backwards compatibility. */ #define bfd_mach_m32rx 'x' @@ -1692,6 +1920,7 @@ enum bfd_architecture #define bfd_mach_frvsimple 2 #define bfd_mach_fr300 300 #define bfd_mach_fr400 400 +#define bfd_mach_fr450 450 #define bfd_mach_frvtomcat 499 /* fr500 prototype */ #define bfd_mach_fr500 500 #define bfd_mach_fr550 550 @@ -1705,6 +1934,10 @@ enum bfd_architecture bfd_arch_iq2000, /* Vitesse IQ2000. */ #define bfd_mach_iq2000 1 #define bfd_mach_iq10 2 + bfd_arch_mt, +#define bfd_mach_ms1 1 +#define bfd_mach_mrisc2 2 +#define bfd_mach_ms2 3 bfd_arch_pj, bfd_arch_avr, /* Atmel AVR microcontrollers. */ #define bfd_mach_avr1 1 @@ -1712,7 +1945,16 @@ enum bfd_architecture #define bfd_mach_avr3 3 #define bfd_mach_avr4 4 #define bfd_mach_avr5 5 + bfd_arch_bfin, /* ADI Blackfin */ +#define bfd_mach_bfin 1 + bfd_arch_cr16c, /* National Semiconductor CompactRISC. */ +#define bfd_mach_cr16c 1 + bfd_arch_crx, /* National Semiconductor CRX. */ +#define bfd_mach_crx 1 bfd_arch_cris, /* Axis CRIS */ +#define bfd_mach_cris_v0_v10 255 +#define bfd_mach_cris_v32 32 +#define bfd_mach_cris_v10_v32 1032 *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:05:37 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E02C106566B; Thu, 21 Oct 2010 20:05:37 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (unknown [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 97B2F8FC19; Thu, 21 Oct 2010 20:05:36 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id C99812A28D2A; Thu, 21 Oct 2010 22:05:35 +0200 (CEST) Date: Thu, 21 Oct 2010 22:05:35 +0200 From: Ed Schouten To: Dimitry Andric Message-ID: <20101021200535.GH77125@hoeg.nl> References: <201010211958.o9LJwKPD002095@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/9ZOS6odDaRI+0hI" Content-Disposition: inline In-Reply-To: <201010211958.o9LJwKPD002095@svn.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-projects@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r214165 - projects/binutils-2.17/gnu/usr.bin/binutils X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:05:37 -0000 --/9ZOS6odDaRI+0hI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Dimitry Andric , 20101021 21:58: > +TARGET_VENDOR?=3D unknown This is where you have to show some creativity! Why not set it to `onmydesk'? ;-) --=20 Ed Schouten WWW: http://80386.nl/ --/9ZOS6odDaRI+0hI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkzAnQ8ACgkQ52SDGA2eCwV17wCeJDfmY6o8fjWYXqipmgu4sFWS MTIAn3ebrAxqXpg+L0zHOocfKwDhatoL =ay6z -----END PGP SIGNATURE----- --/9ZOS6odDaRI+0hI-- From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:08:17 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 243E0106564A; Thu, 21 Oct 2010 20:08:17 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1384B8FC0A; Thu, 21 Oct 2010 20:08:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LK8GTk002456; Thu, 21 Oct 2010 20:08:16 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LK8GaP002454; Thu, 21 Oct 2010 20:08:16 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212008.o9LK8GaP002454@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:08:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214169 - projects/binutils-2.17/gnu/usr.bin/binutils/libbfd X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:08:17 -0000 Author: dim Date: Thu Oct 21 20:08:16 2010 New Revision: 214169 URL: http://svn.freebsd.org/changeset/base/214169 Log: Use one file per line in SRCS= definition, to make insertions and deletions easier, and sort the file list. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile Thu Oct 21 20:04:28 2010 (r214168) +++ projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile Thu Oct 21 20:08:16 2010 (r214169) @@ -5,11 +5,41 @@ .PATH: ${SRCDIR}/bfd ${SRCDIR}/opcodes LIB= bfd -SRCS+= archive.c archive64.c archures.c bfd.c bfdwin.c binary.c cache.c \ - coffgen.c corefile.c elf.c elf-eh-frame.c elf-strtab.c format.c \ - hash.c ihex.c init.c libbfd.c linker.c merge.c opncls.c reloc.c \ - section.c srec.c stab-syms.c stabs.c syms.c targets.c tekhex.c \ - targmatch.h dwarf1.c dwarf2.c config.h bfdver.h bfdio.c simple.c +SRCS+= archive.c \ + archive64.c \ + archures.c \ + bfd.c \ + bfdio.c \ + bfdver.h \ + bfdwin.c \ + binary.c \ + cache.c \ + coffgen.c \ + config.h \ + corefile.c \ + dwarf1.c \ + dwarf2.c \ + elf-eh-frame.c \ + elf-strtab.c \ + elf.c \ + format.c \ + hash.c \ + ihex.c \ + init.c \ + libbfd.c \ + linker.c \ + merge.c \ + opncls.c \ + reloc.c \ + section.c \ + simple.c \ + srec.c \ + stab-syms.c \ + stabs.c \ + syms.c \ + targets.c \ + targmatch.h \ + tekhex.c WARNS?= 0 .if (${TARGET_ARCH} == "ia64" || ${TARGET_ARCH} == "sparc64") WARNS?= 2 From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:17:14 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E56501065670; Thu, 21 Oct 2010 20:17:13 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D46378FC19; Thu, 21 Oct 2010 20:17:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LKHDGC002743; Thu, 21 Oct 2010 20:17:13 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LKHDtN002739; Thu, 21 Oct 2010 20:17:13 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212017.o9LKHDtN002739@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:17:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214170 - projects/binutils-2.17/gnu/usr.bin/binutils/libbfd X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:17:14 -0000 Author: dim Date: Thu Oct 21 20:17:13 2010 New Revision: 214170 URL: http://svn.freebsd.org/changeset/base/214170 Log: Update BFD version and date, and add new upstream files. Also remove the elf32-arm-fbsd.c kludge; it is now integrated cleanly into contrib/binutils/bfd/elf32-arm.c. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile.arm projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile.sparc64 Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile Thu Oct 21 20:08:16 2010 (r214169) +++ projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile Thu Oct 21 20:17:13 2010 (r214170) @@ -21,6 +21,7 @@ SRCS+= archive.c \ dwarf2.c \ elf-eh-frame.c \ elf-strtab.c \ + elf-vxworks.c \ elf.c \ format.c \ hash.c \ @@ -81,8 +82,8 @@ CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECT # XXX:DEO should grab BFD_VERSION_DATE from ${VERSION}... bfdver.h: Makefile - echo '#define BFD_VERSION 215000000' > ${.TARGET} - echo '#define BFD_VERSION_DATE 20050317' >> ${.TARGET} + echo '#define BFD_VERSION 217000000' > ${.TARGET} + echo '#define BFD_VERSION_DATE 20070807' >> ${.TARGET} echo '#define BFD_VERSION_STRING ${VERSION}' >> ${.TARGET} targmatch.h: targmatch.sed config.bfd Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile.arm ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile.arm Thu Oct 21 20:08:16 2010 (r214169) +++ projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile.arm Thu Oct 21 20:17:13 2010 (r214170) @@ -8,7 +8,7 @@ DEFAULT_VECTOR= bfd_elf32_littlearm_vec SRCS+= cpu-arm.c \ elf32.c \ - elf32-arm-fbsd.c \ + elf32-arm.c \ elf32-gen.c \ elf32-target.h \ elflink.c @@ -19,27 +19,3 @@ VECS+= bfd_elf32_littlearm_vec .else VECS+= bfd_elf32_bigarm_vec .endif - -CLEANFILES+= elf32-arm-fbsd.c - -# XXX: We should really add the FreeBSD case in elf32_arm_nabi_grok_prstatus -# instead of defining our own elf32_fbsd_arm_grok_prstatus. -# -elf32-arm-fbsd.c: elfarm-nabi.c - cat ${.ALLSRC} | sed \ - -e s/ELFOSABI_ARM/ELFOSABI_FREEBSD/g \ - -e "s/\(.*#define.*\)elf32_arm_nabi_grok_prstatus/\1elf32_fbsd_arm_grok_prstatus/" \ - -e s/"#include.*elf32-arm.h.*//" >${.TARGET} - echo ' \ - static bfd_boolean \ - elf32_fbsd_arm_grok_prstatus(bfd *abfd, Elf_Internal_Note *note) \ - { size_t raw_size =68 ; int offset = 28; \ - if (note->descsz != 96) return (FALSE); \ - if (elf_tdata(abfd)->core_signal == 0) \ - elf_tdata (abfd)->core_signal = ((int *)(note->descdata))[5]; \ - elf_tdata (abfd)->core_pid = ((int *)(note->descdata))[6]; \ - /* Make a ".reg/999" section. */ \ - return _bfd_elfcore_make_pseudosection (abfd, ".reg",raw_size, \ - note->descpos + offset); \ - }' >> ${.TARGET} - echo '#include "elf32-arm.h"' >> ${.TARGET} Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile.sparc64 ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile.sparc64 Thu Oct 21 20:08:16 2010 (r214169) +++ projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile.sparc64 Thu Oct 21 20:17:13 2010 (r214170) @@ -11,6 +11,8 @@ SRCS+= aout32.c \ elf64-sparc.c \ elf64-target.h \ elflink.c \ + elfxx-sparc.c \ + elfxx-sparc.h \ sparcnetbsd.c \ sunos.c From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:18:34 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CB95106566B; Thu, 21 Oct 2010 20:18:34 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3A7568FC16; Thu, 21 Oct 2010 20:18:34 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LKIYGZ002812; Thu, 21 Oct 2010 20:18:34 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LKIYGV002810; Thu, 21 Oct 2010 20:18:34 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212018.o9LKIYGV002810@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:18:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214171 - projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:18:34 -0000 Author: dim Date: Thu Oct 21 20:18:34 2010 New Revision: 214171 URL: http://svn.freebsd.org/changeset/base/214171 Log: Regenerate config.h for libbinutils. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/config.h Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/config.h ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/config.h Thu Oct 21 20:17:13 2010 (r214170) +++ projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/config.h Thu Oct 21 20:18:34 2010 (r214171) @@ -3,208 +3,271 @@ /* FreeBSD isn't any form of AIX. */ #define bin_dummy_emulation bin_vanilla_emulation -/* config.h. Generated automatically by configure. */ -/* config.in. Generated automatically from configure.in by autoheader. */ +/* config.h. Generated by configure. */ +/* config.in. Generated from configure.in by autoheader. */ -/* Define if using alloca.c. */ +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP + systems. This function is required for `alloca.c' support on those systems. + */ +/* #undef CRAY_STACKSEG_END */ + +/* Define to 1 if using `alloca.c'. */ /* #undef C_ALLOCA */ -/* Define to empty if the keyword does not work. */ -/* #undef const */ +/* Define to 1 if NLS is requested */ +/* #undef ENABLE_NLS */ -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ -/* #undef CRAY_STACKSEG_END */ +/* Suffix used for executables, if any. */ +#define EXECUTABLE_SUFFIX "" -/* Define if you have alloca, as a function or macro. */ +/* Define to 1 if you have `alloca', as a function or macro. */ #define HAVE_ALLOCA 1 -/* Define if you have and it should be used (not on Ultrix). */ +/* Define to 1 if you have and it should be used (not on Ultrix). + */ /* #undef HAVE_ALLOCA_H */ -/* Define if you have a working `mmap' system call. */ -#define HAVE_MMAP 1 +/* Define to 1 if you have the header file. */ +/* #undef HAVE_ARGZ_H */ -/* Define if you have that is POSIX.1 compatible. */ -#define HAVE_SYS_WAIT_H 1 +/* Define to 1 if you have the `dcgettext' function. */ +/* #undef HAVE_DCGETTEXT */ -/* Define as __inline if that's what the C compiler calls it. */ -/* #undef inline */ +/* Define to 1 if you have the declaration of `environ', and to 0 if you + don't. */ +#define HAVE_DECL_ENVIRON 0 + +/* Define to 1 if you have the declaration of `fprintf', and to 0 if you + don't. */ +#define HAVE_DECL_FPRINTF 1 + +/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you + don't. */ +#define HAVE_DECL_GETC_UNLOCKED 1 + +/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. + */ +#define HAVE_DECL_GETENV 1 + +/* Is the prototype for getopt in in the expected format? */ +#define HAVE_DECL_GETOPT 1 + +/* Define to 1 if you have the declaration of `sbrk', and to 0 if you don't. + */ +#define HAVE_DECL_SBRK 1 + +/* Define to 1 if you have the declaration of `snprintf', and to 0 if you + don't. */ +#define HAVE_DECL_SNPRINTF 1 + +/* Define to 1 if you have the declaration of `stpcpy', and to 0 if you don't. + */ +#define HAVE_DECL_STPCPY 1 + +/* Define to 1 if you have the declaration of `strstr', and to 0 if you don't. + */ +#define HAVE_DECL_STRSTR 1 + +/* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you + don't. */ +#define HAVE_DECL_VSNPRINTF 1 -/* Define to `long' if doesn't define. */ -/* #undef off_t */ +/* Does the platform use an executable suffix? */ +/* #undef HAVE_EXECUTABLE_SUFFIX */ -/* Define to `unsigned' if doesn't define. */ -/* #undef size_t */ +/* Define to 1 if you have the header file. */ +#define HAVE_FCNTL_H 1 -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ -/* #undef STACK_DIRECTION */ +/* Is fopen64 available? */ +/* #undef HAVE_FOPEN64 */ -/* Define if you have the ANSI C header files. */ -#define STDC_HEADERS 1 +/* Define to 1 if you have the `getcwd' function. */ +#define HAVE_GETCWD 1 -/* Define if lex declares yytext as a char * by default, not a char[]. */ -#define YYTEXT_POINTER 1 +/* Define to 1 if you have the `getc_unlocked' function. */ +#define HAVE_GETC_UNLOCKED 1 -/* Define if you have the __argz_count function. */ -/* #undef HAVE___ARGZ_COUNT */ +/* Define to 1 if you have the `getpagesize' function. */ +#define HAVE_GETPAGESIZE 1 -/* Define if you have the __argz_next function. */ -/* #undef HAVE___ARGZ_NEXT */ +/* Define as 1 if you have gettext and don't want to use GNU gettext. */ +/* #undef HAVE_GETTEXT */ -/* Define if you have the __argz_stringify function. */ -/* #undef HAVE___ARGZ_STRINGIFY */ +/* Does define struct utimbuf? */ +#define HAVE_GOOD_UTIME_H 1 -/* Define if you have the dcgettext function. */ -/* #undef HAVE_DCGETTEXT */ +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 -/* Define if you have the getc_unlocked function. */ -#define HAVE_GETC_UNLOCKED 1 +/* Define if your locale.h file contains LC_MESSAGES. */ +#define HAVE_LC_MESSAGES 1 -/* Define if you have the getcwd function. */ -#define HAVE_GETCWD 1 +/* Define to 1 if you have the header file. */ +#define HAVE_LIMITS_H 1 -/* Define if you have the getpagesize function. */ -#define HAVE_GETPAGESIZE 1 +/* Define to 1 if you have the header file. */ +#define HAVE_LOCALE_H 1 -/* Define if you have the munmap function. */ +/* Define to 1 if you have the header file. */ +/* #undef HAVE_MALLOC_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have a working `mmap' system call. */ +#define HAVE_MMAP 1 + +/* Define to 1 if you have the `munmap' function. */ #define HAVE_MUNMAP 1 -/* Define if you have the putenv function. */ +/* Define to 1 if you have the header file. */ +#define HAVE_NL_TYPES_H 1 + +/* Define to 1 if you have the `putenv' function. */ #define HAVE_PUTENV 1 -/* Define if you have the sbrk function. */ +/* Define to 1 if you have the `sbrk' function. */ #define HAVE_SBRK 1 -/* Define if you have the setenv function. */ +/* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 -/* Define if you have the setlocale function. */ +/* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 -/* Define if you have the setmode function. */ +/* Define to 1 if you have the `setmode' function. */ #define HAVE_SETMODE 1 -/* Define if you have the stpcpy function. */ +/* Is stat64 available? */ +/* #undef HAVE_STAT64 */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the stpcpy function */ #define HAVE_STPCPY 1 -/* Define if you have the strcasecmp function. */ +/* Define to 1 if you have the `strcasecmp' function. */ #define HAVE_STRCASECMP 1 -/* Define if you have the strchr function. */ +/* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 -/* Define if you have the strcoll function. */ +/* Define to 1 if you have the `strcoll' function. */ #define HAVE_STRCOLL 1 -/* Define if you have the utimes function. */ -#define HAVE_UTIMES 1 - -/* Define if you have the header file. */ -/* #undef HAVE_ARGZ_H */ - -/* Define if you have the header file. */ -#define HAVE_FCNTL_H 1 - -/* Define if you have the header file. */ -#define HAVE_LIMITS_H 1 +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 -/* Define if you have the header file. */ -#define HAVE_LOCALE_H 1 +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 -/* Define if you have the header file. */ -/* #undef HAVE_MALLOC_H */ +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_FILE_H 1 -/* Define if you have the header file. */ -#define HAVE_NL_TYPES_H 1 +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_PARAM_H 1 -/* Define if you have the header file. */ -#define HAVE_STDLIB_H 1 +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 -/* Define if you have the header file. */ -#define HAVE_STRING_H 1 +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 -/* Define if you have the header file. */ -#define HAVE_STRINGS_H 1 +/* Define to 1 if you have that is POSIX.1 compatible. */ +#define HAVE_SYS_WAIT_H 1 -/* Define if you have the header file. */ -#define HAVE_SYS_FILE_H 1 +/* Is the type time_t defined in ? */ +#define HAVE_TIME_T_IN_TIME_H 1 -/* Define if you have the header file. */ -#define HAVE_SYS_PARAM_H 1 +/* Is the type time_t defined in ? */ +#define HAVE_TIME_T_IN_TYPES_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the `utimes' function. */ +#define HAVE_UTIMES 1 + +/* Define to 1 if you have the header file. */ /* #undef HAVE_VALUES_H */ -/* Name of package */ -#define PACKAGE "binutils" +/* Define to 1 if you have the `__argz_count' function. */ +/* #undef HAVE___ARGZ_COUNT */ -/* Version number of package */ -/* #define VERSION "2.15" */ +/* Define to 1 if you have the `__argz_next' function. */ +/* #undef HAVE___ARGZ_NEXT */ -/* Define if you have the stpcpy function */ -#define HAVE_STPCPY 1 +/* Define to 1 if you have the `__argz_stringify' function. */ +/* #undef HAVE___ARGZ_STRINGIFY */ -/* Define if your locale.h file contains LC_MESSAGES. */ -#define HAVE_LC_MESSAGES 1 +/* Name of package */ +#define PACKAGE "binutils" -/* Define to 1 if NLS is requested */ -/* #define ENABLE_NLS 1 */ +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" -/* Define as 1 if you have gettext and don't want to use GNU gettext. */ -/* #undef HAVE_GETTEXT */ +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" -/* Does the platform use an executable suffix? */ -/* #undef HAVE_EXECUTABLE_SUFFIX */ +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" -/* Suffix used for executables, if any. */ -#define EXECUTABLE_SUFFIX "" +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" -/* Is fopen64 available? */ -/* #undef HAVE_FOPEN64 */ +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" -/* Enable LFS */ -/* #undef _LARGEFILE64_SOURCE */ +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown */ +/* #undef STACK_DIRECTION */ -/* Is the type time_t defined in ? */ -#define HAVE_TIME_T_IN_TIME_H 1 +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 -/* Is the type time_t defined in ? */ -#define HAVE_TIME_T_IN_TYPES_H 1 +/* Configured target name. */ +/* #define TARGET "i386-unknown-freebsd9.0" */ -/* Does define struct utimbuf? */ -#define HAVE_GOOD_UTIME_H 1 +/* Define to 1 if user symbol names have a leading underscore, 0 if not. */ +#define TARGET_PREPENDS_UNDERSCORE 0 -/* Define if fprintf is not declared in system header files. */ -/* #undef NEED_DECLARATION_FPRINTF */ +/* Use b modifier when opening binary files? */ +/* #undef USE_BINARY_FOPEN */ -/* Define if strstr is not declared in system header files. */ -/* #undef NEED_DECLARATION_STRSTR */ +/* Version number of package */ +/* #define VERSION "2.17" */ -/* Define if sbrk is not declared in system header files. */ -/* #undef NEED_DECLARATION_SBRK */ +/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a + `char[]'. */ +#define YYTEXT_POINTER 1 -/* Define if getenv is not declared in system header files. */ -/* #undef NEED_DECLARATION_GETENV */ +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif -/* Define if environ is not declared in system header files. */ -#define NEED_DECLARATION_ENVIRON 1 +/* Enable LFS */ +/* #undef _LARGEFILE64_SOURCE */ -/* Use b modifier when opening binary files? */ -/* #undef USE_BINARY_FOPEN */ +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ -/* Configured target name. */ -/* #define TARGET "amd64-unknown-freebsd5.2" */ +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +/* #undef inline */ +#endif -/* Define to 1 if user symbol names have a leading underscore, 0 if not. */ -#define TARGET_PREPENDS_UNDERSCORE 0 +/* Define to `long' if does not define. */ +/* #undef off_t */ +/* Define to `unsigned' if does not define. */ +/* #undef size_t */ From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:20:34 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E363106566B; Thu, 21 Oct 2010 20:20:34 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3D7498FC1E; Thu, 21 Oct 2010 20:20:34 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LKKYVq002887; Thu, 21 Oct 2010 20:20:34 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LKKYdp002885; Thu, 21 Oct 2010 20:20:34 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212020.o9LKKYdp002885@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:20:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214172 - projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:20:34 -0000 Author: dim Date: Thu Oct 21 20:20:33 2010 New Revision: 214172 URL: http://svn.freebsd.org/changeset/base/214172 Log: Use one file per line in SRCS= definition, to make insertions and deletions easier, and sort the file list. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/Makefile Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/Makefile Thu Oct 21 20:18:34 2010 (r214171) +++ projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/Makefile Thu Oct 21 20:20:33 2010 (r214172) @@ -5,9 +5,23 @@ .PATH: ${SRCDIR}/binutils LIB= binutils -SRCS+= arlex.l arparse.y arsup.c bucomm.c debug.c filemode.c \ - ieee.c rdcoff.c rddbg.c rename.c stabs.c unwind-ia64.c \ - wrstabs.c version.c binemul.c budemang.c emul_vanilla.c +SRCS+= arlex.l \ + arparse.y \ + arsup.c \ + binemul.c \ + bucomm.c \ + budemang.c \ + debug.c \ + emul_vanilla.c \ + filemode.c \ + ieee.c \ + rdcoff.c \ + rddbg.c \ + rename.c \ + stabs.c \ + unwind-ia64.c \ + version.c \ + wrstabs.c WARNS?= 0 CFLAGS+= -DTARGET=\"${BINUTILS_ARCH}-obrien-freebsd\" CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\" From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:21:36 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D968C106564A; Thu, 21 Oct 2010 20:21:36 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C8EB78FC15; Thu, 21 Oct 2010 20:21:36 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LKLaeX002945; Thu, 21 Oct 2010 20:21:36 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LKLa1V002943; Thu, 21 Oct 2010 20:21:36 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212021.o9LKLa1V002943@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:21:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214173 - projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:21:36 -0000 Author: dim Date: Thu Oct 21 20:21:36 2010 New Revision: 214173 URL: http://svn.freebsd.org/changeset/base/214173 Log: Add new upstream file, and update TARGET definition. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/Makefile Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/Makefile Thu Oct 21 20:20:33 2010 (r214172) +++ projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/Makefile Thu Oct 21 20:21:36 2010 (r214173) @@ -12,6 +12,7 @@ SRCS+= arlex.l \ bucomm.c \ budemang.c \ debug.c \ + dwarf.c \ emul_vanilla.c \ filemode.c \ ieee.c \ @@ -23,7 +24,7 @@ SRCS+= arlex.l \ version.c \ wrstabs.c WARNS?= 0 -CFLAGS+= -DTARGET=\"${BINUTILS_ARCH}-obrien-freebsd\" +CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\" CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\" CFLAGS+= -D_GNU_SOURCE CFLAGS+= -I${SRCDIR}/binutils From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:22:32 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F7321065670; Thu, 21 Oct 2010 20:22:32 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3D9568FC19; Thu, 21 Oct 2010 20:22:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LKMWbT003049; Thu, 21 Oct 2010 20:22:32 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LKMWsG003047; Thu, 21 Oct 2010 20:22:32 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212022.o9LKMWsG003047@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:22:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214175 - projects/binutils-2.17/gnu/usr.bin/binutils/as X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:22:32 -0000 Author: dim Date: Thu Oct 21 20:22:32 2010 New Revision: 214175 URL: http://svn.freebsd.org/changeset/base/214175 Log: Regenerate config.h for as. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/as/config.h Modified: projects/binutils-2.17/gnu/usr.bin/binutils/as/config.h ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/as/config.h Thu Oct 21 20:22:00 2010 (r214174) +++ projects/binutils-2.17/gnu/usr.bin/binutils/as/config.h Thu Oct 21 20:22:32 2010 (r214175) @@ -1,194 +1,206 @@ /* $FreeBSD$ */ -#define HAVE_DECL_GETOPT 1 - - /* config.h. Generated by configure. */ -/* config.in. Generated automatically from configure.in by autoheader. */ +/* config.in. Generated from configure.in by autoheader. */ -/* Define if using alloca.c. */ -/* #undef C_ALLOCA */ +/* Define if using AIX 5.2 value for C_WEAKEXT. */ +/* #undef AIX_WEAK_SUPPORT */ -/* Define to empty if the keyword does not work. */ -/* #undef const */ +/* assert broken? */ +/* #undef BROKEN_ASSERT */ -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP + systems. This function is required for `alloca.c' support on those systems. + */ /* #undef CRAY_STACKSEG_END */ -/* Define if you have alloca, as a function or macro. */ -#define HAVE_ALLOCA 1 +/* Compiling cross-assembler? */ +/* #undef CROSS_COMPILE */ -/* Define if you have and it should be used (not on Ultrix). */ -/* #undef HAVE_ALLOCA_H */ +/* Define to 1 if using `alloca.c'. */ +/* #undef C_ALLOCA */ -/* Define if you have a working `mmap' system call. */ -#define HAVE_MMAP 1 +/* Default architecture. */ +/* #define DEFAULT_ARCH "i386" */ -/* Define as __inline if that's what the C compiler calls it. */ -/* #undef inline */ +/* Default CRIS architecture. */ +/* #undef DEFAULT_CRIS_ARCH */ -/* Define to `long' if doesn't define. */ -/* #undef off_t */ +/* Default emulation. */ +/* #define DEFAULT_EMULATION "i386elf" */ -/* Define to `unsigned' if doesn't define. */ -/* #undef size_t */ +/* Supported emulations. */ +/* #define EMULATIONS &i386elf, */ -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ -/* #undef STACK_DIRECTION */ +/* Define to 1 if NLS is requested */ +/* #undef ENABLE_NLS */ -/* Define if you have the ANSI C header files. */ -#define STDC_HEADERS 1 +/* Define to 1 if you have `alloca', as a function or macro. */ +#define HAVE_ALLOCA 1 -/* Define if lex declares yytext as a char * by default, not a char[]. */ -#define YYTEXT_POINTER 1 +/* Define to 1 if you have and it should be used (not on Ultrix). + */ +/* #undef HAVE_ALLOCA_H */ -/* Define if you have the __argz_count function. */ -/* #undef HAVE___ARGZ_COUNT */ +/* Define to 1 if you have the header file. */ +/* #undef HAVE_ARGZ_H */ -/* Define if you have the __argz_next function. */ -/* #undef HAVE___ARGZ_NEXT */ +/* Define to 1 if you have the `dcgettext' function. */ +/* #undef HAVE_DCGETTEXT */ -/* Define if you have the __argz_stringify function. */ -/* #undef HAVE___ARGZ_STRINGIFY */ +/* Is the prototype for getopt in in the expected format? */ +#define HAVE_DECL_GETOPT 1 -/* Define if you have the dcgettext function. */ -/* #undef HAVE_DCGETTEXT */ +/* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you + don't. */ +#define HAVE_DECL_VSNPRINTF 1 -/* Define if you have the getcwd function. */ +/* Define to 1 if you have the header file. */ +#define HAVE_ERRNO_H 1 + +/* Define to 1 if you have the `getcwd' function. */ #define HAVE_GETCWD 1 -/* Define if you have the getpagesize function. */ +/* Define to 1 if you have the `getpagesize' function. */ #define HAVE_GETPAGESIZE 1 -/* Define if you have the munmap function. */ -#define HAVE_MUNMAP 1 - -/* Define if you have the putenv function. */ -#define HAVE_PUTENV 1 - -/* Define if you have the remove function. */ -/* #undef HAVE_REMOVE */ +/* Define as 1 if you have gettext and don't want to use GNU gettext. */ +/* #undef HAVE_GETTEXT */ -/* Define if you have the sbrk function. */ -#define HAVE_SBRK 1 +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 -/* Define if you have the setenv function. */ -#define HAVE_SETENV 1 +/* Define if your locale.h file contains LC_MESSAGES. */ +#define HAVE_LC_MESSAGES 1 -/* Define if you have the setlocale function. */ -#define HAVE_SETLOCALE 1 +/* Define to 1 if you have the header file. */ +#define HAVE_LIMITS_H 1 -/* Define if you have the stpcpy function. */ -#define HAVE_STPCPY 1 +/* Define to 1 if you have the header file. */ +#define HAVE_LOCALE_H 1 -/* Define if you have the strcasecmp function. */ -#define HAVE_STRCASECMP 1 +/* Define to 1 if you have the header file. */ +/* #undef HAVE_MALLOC_H */ -/* Define if you have the strchr function. */ -#define HAVE_STRCHR 1 +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 -/* Define if you have the unlink function. */ -#define HAVE_UNLINK 1 +/* Define to 1 if you have a working `mmap' system call. */ +#define HAVE_MMAP 1 -/* Define if you have the header file. */ -/* #undef HAVE_ARGZ_H */ +/* Define to 1 if you have the `munmap' function. */ +#define HAVE_MUNMAP 1 -/* Define if you have the header file. */ -#define HAVE_ERRNO_H 1 +/* Define to 1 if you have the header file. */ +#define HAVE_NL_TYPES_H 1 -/* Define if you have the header file. */ -#define HAVE_LIMITS_H 1 +/* Define to 1 if you have the `putenv' function. */ +#define HAVE_PUTENV 1 -/* Define if you have the header file. */ -#define HAVE_LOCALE_H 1 +/* Define to 1 if you have the `remove' function. */ +/* #undef HAVE_REMOVE */ -/* Define if you have the header file. */ -/* #undef HAVE_MALLOC_H */ +/* Define to 1 if you have the `sbrk' function. */ +#define HAVE_SBRK 1 -/* Define if you have the header file. */ -#define HAVE_MEMORY_H 1 +/* Define to 1 if you have the `setenv' function. */ +#define HAVE_SETENV 1 -/* Define if you have the header file. */ -#define HAVE_NL_TYPES_H 1 +/* Define to 1 if you have the `setlocale' function. */ +#define HAVE_SETLOCALE 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 -/* Define if you have the header file. */ -#define HAVE_STRING_H 1 +/* Define if you have the stpcpy function */ +#define HAVE_STPCPY 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the `strcasecmp' function. */ +#define HAVE_STRCASECMP 1 + +/* Define to 1 if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the `unlink' function. */ +#define HAVE_UNLINK 1 + +/* Define to 1 if you have the header file. */ /* #undef HAVE_VALUES_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_VARARGS_H */ -/* Name of package */ -#define PACKAGE "gas" +/* Define to 1 if you have the `__argz_count' function. */ +/* #undef HAVE___ARGZ_COUNT */ -/* Version number of package */ -/* #define VERSION "2.15" */ +/* Define to 1 if you have the `__argz_next' function. */ +/* #undef HAVE___ARGZ_NEXT */ -/* Define if defaulting to ELF on SCO 5. */ -/* #undef SCO_ELF */ +/* Define to 1 if you have the `__argz_stringify' function. */ +/* #undef HAVE___ARGZ_STRINGIFY */ -/* Using strict COFF? */ -/* #undef STRICTCOFF */ +/* Using i386 COFF? */ +/* #undef I386COFF */ -/* Define if default target is PowerPC Solaris. */ -/* #undef TARGET_SOLARIS_COMMENT */ +/* Using m68k COFF? */ +/* #undef M68KCOFF */ -/* Define as 1 if big endian. */ -/* #undef TARGET_BYTES_BIG_ENDIAN */ +/* Using m88k COFF? */ +/* #undef M88KCOFF */ -/* Default CPU for MIPS targets. */ +/* Default CPU for MIPS targets. */ /* #undef MIPS_CPU_STRING_DEFAULT */ -/* Allow use of E_MIPS_ABI_O32 on MIPS targets. */ -/* #undef USE_E_MIPS_ABI_O32 */ - -/* Generate 64-bit code by default on MIPS targets. */ +/* Generate 64-bit code by default on MIPS targets. */ /* #undef MIPS_DEFAULT_64BIT */ -/* Choose a default ABI for MIPS targets. */ +/* Choose a default ABI for MIPS targets. */ /* #undef MIPS_DEFAULT_ABI */ -/* Default architecture. */ -/* #define DEFAULT_ARCH "i386" */ +/* Define if environ is not declared in system header files. */ +#define NEED_DECLARATION_ENVIRON 1 -/* Using cgen code? */ -/* #undef USING_CGEN */ +/* Define if errno is not declared in system header files. */ +/* #undef NEED_DECLARATION_ERRNO */ -/* Using i386 COFF? */ -/* #undef I386COFF */ +/* Define if ffs is not declared in system header files. */ +/* #undef NEED_DECLARATION_FFS */ -/* Using m68k COFF? */ -/* #undef M68KCOFF */ +/* Define if free is not declared in system header files. */ +/* #undef NEED_DECLARATION_FREE */ -/* Using m88k COFF? */ -/* #undef M88KCOFF */ +/* Define if malloc is not declared in system header files. */ +/* #undef NEED_DECLARATION_MALLOC */ + +/* Define if sbrk is not declared in system header files. */ +/* #undef NEED_DECLARATION_SBRK */ + +/* Define if strstr is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRSTR */ /* a.out support? */ /* #undef OBJ_MAYBE_AOUT */ @@ -208,80 +220,102 @@ /* generic support? */ /* #undef OBJ_MAYBE_GENERIC */ -/* HP300 support? */ -/* #undef OBJ_MAYBE_HP300 */ - /* IEEE support? */ /* #undef OBJ_MAYBE_IEEE */ /* SOM support? */ /* #undef OBJ_MAYBE_SOM */ -/* VMS support? */ -/* #undef OBJ_MAYBE_VMS */ +/* Name of package */ +#define PACKAGE "gas" -/* Use emulation support? */ -/* #undef USE_EMULATIONS */ +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" -/* Supported emulations. */ -/* #define EMULATIONS &i386elf, */ +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" -/* Default emulation. */ -/* #define DEFAULT_EMULATION "i386elf" */ +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" -/* old COFF support? */ -/* #undef MANY_SEGMENTS */ +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" -/* Use BFD interface? */ -#define BFD_ASSEMBLER 1 +/* Define if defaulting to ELF on SCO 5. */ +/* #undef SCO_ELF */ + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown */ +/* #undef STACK_DIRECTION */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Using strict COFF? */ +/* #undef STRICTCOFF */ /* Target alias. */ -/* #define TARGET_ALIAS "i386-obrien-freebsd5.2" */ +/* #define TARGET_ALIAS "i386-unknown-freebsd9.0" */ + +/* Define as 1 if big endian. */ +/* #undef TARGET_BYTES_BIG_ENDIAN */ /* Canonical target. */ -/* #define TARGET_CANONICAL "i386-obrien-freebsd5.2" */ +/* #define TARGET_CANONICAL "i386-unknown-freebsd9.0" */ /* Target CPU. */ /* #define TARGET_CPU "i386" */ -/* Target vendor. */ -#define TARGET_VENDOR "obrien" - /* Target OS. */ -#define TARGET_OS "freebsd5" +/* #define TARGET_OS "freebsd9.0" */ -/* Define if you have the stpcpy function */ -#define HAVE_STPCPY 1 +/* Define if default target is PowerPC Solaris. */ +/* #undef TARGET_SOLARIS_COMMENT */ -/* Define if your locale.h file contains LC_MESSAGES. */ -#define HAVE_LC_MESSAGES 1 +/* Define if target is Symbian OS. */ +/* #undef TARGET_SYMBIAN */ -/* Define to 1 if NLS is requested */ -/* #define ENABLE_NLS 1 */ +/* Target vendor. */ +/* #define TARGET_VENDOR "unknown" */ -/* Define as 1 if you have gettext and don't want to use GNU gettext. */ -/* #undef HAVE_GETTEXT */ +/* Use emulation support? */ +/* #undef USE_EMULATIONS */ -/* Compiling cross-assembler? */ -/* #undef CROSS_COMPILE */ +/* Allow use of E_MIPS_ABI_O32 on MIPS targets. */ +/* #undef USE_E_MIPS_ABI_O32 */ -/* assert broken? */ -/* #undef BROKEN_ASSERT */ +/* Using cgen code? */ +/* #undef USING_CGEN */ -/* Define if strstr is not declared in system header files. */ -/* #undef NEED_DECLARATION_STRSTR */ +/* Version number of package */ +/* #define VERSION "2.17" */ -/* Define if malloc is not declared in system header files. */ -/* #undef NEED_DECLARATION_MALLOC */ +/* Define to 1 if your processor stores words with the most significant byte + first (like Motorola and SPARC, unlike Intel and VAX). */ +/* #undef WORDS_BIGENDIAN */ -/* Define if free is not declared in system header files. */ -/* #undef NEED_DECLARATION_FREE */ +/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a + `char[]'. */ +#define YYTEXT_POINTER 1 -/* Define if sbrk is not declared in system header files. */ -/* #undef NEED_DECLARATION_SBRK */ +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ -/* Define if environ is not declared in system header files. */ -#define NEED_DECLARATION_ENVIRON 1 +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +/* #undef inline */ +#endif -/* Define if errno is not declared in system header files. */ -/* #undef NEED_DECLARATION_ERRNO */ +/* Define to `long' if does not define. */ +/* #undef off_t */ + +/* Define to `unsigned' if does not define. */ +/* #undef size_t */ From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:23:54 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 329B01065672; Thu, 21 Oct 2010 20:23:54 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 214118FC18; Thu, 21 Oct 2010 20:23:54 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LKNsJW003116; Thu, 21 Oct 2010 20:23:54 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LKNsr8003114; Thu, 21 Oct 2010 20:23:54 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212023.o9LKNsr8003114@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:23:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214176 - projects/binutils-2.17/gnu/usr.bin/binutils/as X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:23:54 -0000 Author: dim Date: Thu Oct 21 20:23:53 2010 New Revision: 214176 URL: http://svn.freebsd.org/changeset/base/214176 Log: Use one file per line in SRCS= definition, to make insertions and deletions easier, and sort the file list. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/as/Makefile Modified: projects/binutils-2.17/gnu/usr.bin/binutils/as/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/as/Makefile Thu Oct 21 20:22:32 2010 (r214175) +++ projects/binutils-2.17/gnu/usr.bin/binutils/as/Makefile Thu Oct 21 20:23:53 2010 (r214176) @@ -11,12 +11,37 @@ NO_WERROR= PROG= as MAN= doc/as.1 -SRCS+= app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \ - cond.c dwarf2dbg.c ecoff.c expr.c flonum-copy.c flonum-konst.c \ - flonum-mult.c frags.c hash.c input-file.c \ - input-scrub.c listing.c literal.c macro.c messages.c \ - obj-elf.c output-file.c read.c sb.c stabs.c \ - subsegs.c symbols.c write.c depend.c ehopt.c dw2gencfi.c +SRCS+= app.c \ + as.c \ + atof-generic.c \ + atof-ieee.c \ + bignum-copy.c \ + cond.c \ + depend.c \ + dw2gencfi.c \ + dwarf2dbg.c \ + ecoff.c \ + ehopt.c \ + expr.c \ + flonum-copy.c \ + flonum-konst.c \ + flonum-mult.c \ + frags.c \ + hash.c \ + input-file.c \ + input-scrub.c \ + listing.c \ + literal.c \ + macro.c \ + messages.c \ + obj-elf.c \ + output-file.c \ + read.c \ + sb.c \ + stabs.c \ + subsegs.c \ + symbols.c \ + write.c # DEO: why not used? #SRCS+= itbl-ops.c From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:27:40 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BE59106566B; Thu, 21 Oct 2010 20:27:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7B2888FC12; Thu, 21 Oct 2010 20:27:40 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LKReQx003214; Thu, 21 Oct 2010 20:27:40 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LKRe2d003212; Thu, 21 Oct 2010 20:27:40 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212027.o9LKRe2d003212@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:27:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214177 - projects/binutils-2.17/gnu/usr.bin/binutils/as X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:27:40 -0000 Author: dim Date: Thu Oct 21 20:27:40 2010 New Revision: 214177 URL: http://svn.freebsd.org/changeset/base/214177 Log: Remove bignum-copy.c from SRCS=, as it no longer exists. Remove tc-sparc-fixed.c entirely, since the fix has been integrated into contrib/binutils/gas/config/tc-sparc.c by upstream. Define TARGET_OS in addition to the other TARGET_XXX defines. Deleted: projects/binutils-2.17/gnu/usr.bin/binutils/as/tc-sparc-fixed.c Modified: projects/binutils-2.17/gnu/usr.bin/binutils/as/Makefile Modified: projects/binutils-2.17/gnu/usr.bin/binutils/as/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/as/Makefile Thu Oct 21 20:23:53 2010 (r214176) +++ projects/binutils-2.17/gnu/usr.bin/binutils/as/Makefile Thu Oct 21 20:27:40 2010 (r214177) @@ -15,7 +15,6 @@ SRCS+= app.c \ as.c \ atof-generic.c \ atof-ieee.c \ - bignum-copy.c \ cond.c \ depend.c \ dw2gencfi.c \ @@ -54,8 +53,7 @@ SRCS+= tc-i386.c .elif ${TARGET_ARCH} == "powerpc" || ${TARGET_ARCH} == "powerpc64" SRCS+= tc-ppc.c .elif ${TARGET_ARCH} == "sparc64" -# change back to tc-sparc.c when new binutils is imported -SRCS+= tc-sparc-fixed.c +SRCS+= tc-sparc.c .else SRCS+= tc-${TARGET_ARCH}.c .endif @@ -69,6 +67,7 @@ CFLAGS+= -DDEFAULT_ARCH=\"${BINUTILS_ARC CFLAGS+= -DTARGET_BYTES_BIG_ENDIAN=1 .endif CFLAGS+= -DTARGET_CPU=\"${BINUTILS_ARCH}\" +CFLAGS+= -DTARGET_OS=\"${TARGET_OS}\" CFLAGS+= -DTARGET_CANONICAL=\"${TARGET_TUPLE}\" CFLAGS+= -DTARGET_ALIAS=\"${TARGET_TUPLE}\" CFLAGS+= -DVERSION=\"${VERSION}\" From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:28:24 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38D73106571D; Thu, 21 Oct 2010 20:28:24 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0C8C68FC16; Thu, 21 Oct 2010 20:28:24 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LKSNuZ003271; Thu, 21 Oct 2010 20:28:23 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LKSN3Y003269; Thu, 21 Oct 2010 20:28:23 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212028.o9LKSN3Y003269@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:28:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214178 - projects/binutils-2.17/gnu/usr.bin/binutils/ld X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:28:24 -0000 Author: dim Date: Thu Oct 21 20:28:23 2010 New Revision: 214178 URL: http://svn.freebsd.org/changeset/base/214178 Log: Regenerate config.h for ld. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/ld/config.h Modified: projects/binutils-2.17/gnu/usr.bin/binutils/ld/config.h ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/ld/config.h Thu Oct 21 20:27:40 2010 (r214177) +++ projects/binutils-2.17/gnu/usr.bin/binutils/ld/config.h Thu Oct 21 20:28:23 2010 (r214178) @@ -1,180 +1,225 @@ /* $FreeBSD$ */ -/* config.h. Generated automatically by configure. */ -/* config.in. Generated automatically from configure.in by autoheader. */ +/* config.h. Generated by configure. */ +/* config.in. Generated from configure.in by autoheader. */ -/* Define if using alloca.c. */ +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP + systems. This function is required for `alloca.c' support on those systems. + */ +/* #undef CRAY_STACKSEG_END */ + +/* Define to 1 if using `alloca.c'. */ /* #undef C_ALLOCA */ -/* Define to empty if the keyword does not work. */ -/* #undef const */ +/* Define to 1 if NLS is requested */ +/* #undef ENABLE_NLS */ -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ -/* #undef CRAY_STACKSEG_END */ +/* Additional extension a shared object might have. */ +/* #undef EXTRA_SHLIB_EXTENSION */ -/* Define if you have alloca, as a function or macro. */ +/* Define to 1 if you have `alloca', as a function or macro. */ #define HAVE_ALLOCA 1 -/* Define if you have and it should be used (not on Ultrix). */ +/* Define to 1 if you have and it should be used (not on Ultrix). + */ /* #undef HAVE_ALLOCA_H */ -/* Define if you have a working `mmap' system call. */ -#define HAVE_MMAP 1 +/* Define to 1 if you have the header file. */ +/* #undef HAVE_ARGZ_H */ -/* Define as __inline if that's what the C compiler calls it. */ -/* #undef inline */ +/* Define to 1 if you have the `dcgettext' function. */ +/* #undef HAVE_DCGETTEXT */ -/* Define to `long' if doesn't define. */ -/* #undef off_t */ +/* Define to 1 if you have the declaration of `environ', and to 0 if you + don't. */ +#define HAVE_DECL_ENVIRON 0 + +/* Define to 1 if you have the declaration of `free', and to 0 if you don't. + */ +#define HAVE_DECL_FREE 1 + +/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. + */ +#define HAVE_DECL_GETENV 1 + +/* Is the prototype for getopt in in the expected format? */ +#define HAVE_DECL_GETOPT 1 + +/* Define to 1 if you have the declaration of `sbrk', and to 0 if you don't. + */ +#define HAVE_DECL_SBRK 1 + +/* Define to 1 if you have the declaration of `strstr', and to 0 if you don't. + */ +#define HAVE_DECL_STRSTR 1 -/* Define if you need to in order for stat and other things to work. */ -/* #undef _POSIX_SOURCE */ +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +#define HAVE_DIRENT_H 1 -/* Define to `unsigned' if doesn't define. */ -/* #undef size_t */ +/* Define to 1 if you have the header file. */ +#define HAVE_ELF_HINTS_H 1 -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ -/* #undef STACK_DIRECTION */ +/* Define to 1 if you have the `getcwd' function. */ +#define HAVE_GETCWD 1 -/* Define if you have the ANSI C header files. */ -#define STDC_HEADERS 1 +/* Define to 1 if you have the `getpagesize' function. */ +#define HAVE_GETPAGESIZE 1 -/* Define if lex declares yytext as a char * by default, not a char[]. */ -#define YYTEXT_POINTER 1 +/* Define as 1 if you have gettext and don't want to use GNU gettext. */ +/* #undef HAVE_GETTEXT */ -/* Define if you have the __argz_count function. */ -/* #undef HAVE___ARGZ_COUNT */ +/* Define to 1 if you have the `glob' function. */ +#define HAVE_GLOB 1 -/* Define if you have the __argz_next function. */ -/* #undef HAVE___ARGZ_NEXT */ +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 -/* Define if you have the __argz_stringify function. */ -/* #undef HAVE___ARGZ_STRINGIFY */ +/* Define if your locale.h file contains LC_MESSAGES. */ +#define HAVE_LC_MESSAGES 1 -/* Define if you have the dcgettext function. */ -/* #undef HAVE_DCGETTEXT */ +/* Define to 1 if you have the header file. */ +#define HAVE_LIMITS_H 1 -/* Define if you have the getcwd function. */ -#define HAVE_GETCWD 1 +/* Define to 1 if you have the header file. */ +#define HAVE_LOCALE_H 1 -/* Define if you have the getpagesize function. */ -#define HAVE_GETPAGESIZE 1 +/* Define to 1 if you have the header file. */ +/* #undef HAVE_MALLOC_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 -/* Define if you have the munmap function. */ +/* Define to 1 if you have a working `mmap' system call. */ +#define HAVE_MMAP 1 + +/* Define to 1 if you have the `munmap' function. */ #define HAVE_MUNMAP 1 -/* Define if you have the putenv function. */ +/* Define to 1 if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_NDIR_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_NL_TYPES_H 1 + +/* Define to 1 if you have the `putenv' function. */ #define HAVE_PUTENV 1 -/* Define if you have the realpath function. */ +/* Define to 1 if you have the `realpath' function. */ #define HAVE_REALPATH 1 -/* Define if you have the sbrk function. */ +/* Define to 1 if you have the `sbrk' function. */ #define HAVE_SBRK 1 -/* Define if you have the setenv function. */ +/* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 -/* Define if you have the setlocale function. */ +/* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 -/* Define if you have the stpcpy function. */ +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the stpcpy function */ #define HAVE_STPCPY 1 -/* Define if you have the strcasecmp function. */ +/* Define to 1 if you have the `strcasecmp' function. */ #define HAVE_STRCASECMP 1 -/* Define if you have the strchr function. */ +/* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 -/* Define if you have the header file. */ -/* #undef HAVE_ARGZ_H */ - -/* Define if you have the header file. */ -#define HAVE_DIRENT_H 1 - -/* Define if you have the header file. */ -#define HAVE_LIMITS_H 1 - -/* Define if you have the header file. */ -#define HAVE_LOCALE_H 1 - -/* Define if you have the header file. */ -/* #undef HAVE_MALLOC_H */ - -/* Define if you have the header file. */ -/* #undef HAVE_NDIR_H */ - -/* Define if you have the header file. */ -#define HAVE_NL_TYPES_H 1 - -/* Define if you have the header file. */ -#define HAVE_STDLIB_H 1 +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 -/* Define if you have the header file. */ -#define HAVE_STRINGS_H 1 - -/* Define if you have the header file. */ +/* Define to 1 if you have the header file, and it defines `DIR'. + */ /* #undef HAVE_SYS_DIR_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file, and it defines `DIR'. + */ /* #undef HAVE_SYS_NDIR_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_VALUES_H */ +/* Define to 1 if you have the `__argz_count' function. */ +/* #undef HAVE___ARGZ_COUNT */ + +/* Define to 1 if you have the `__argz_next' function. */ +/* #undef HAVE___ARGZ_NEXT */ + +/* Define to 1 if you have the `__argz_stringify' function. */ +/* #undef HAVE___ARGZ_STRINGIFY */ + /* Name of package */ #define PACKAGE "ld" -/* Version number of package */ -/* #define VERSION "2.15" */ +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" -/* Define if you have the stpcpy function */ -#define HAVE_STPCPY 1 +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" -/* Define if your locale.h file contains LC_MESSAGES. */ -#define HAVE_LC_MESSAGES 1 +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" -/* Define to 1 if NLS is requested */ -/* #define ENABLE_NLS 1 */ +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" -/* Define as 1 if you have gettext and don't want to use GNU gettext. */ -/* #undef HAVE_GETTEXT */ +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown */ +/* #undef STACK_DIRECTION */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 /* Use b modifier when opening binary files? */ /* #undef USE_BINARY_FOPEN */ -/* Define if strstr is not declared in system header files. */ -/* #undef NEED_DECLARATION_STRSTR */ - -/* Define if free is not declared in system header files. */ -/* #undef NEED_DECLARATION_FREE */ +/* Version number of package */ +/* #define VERSION "2.17" */ -/* Define if sbrk is not declared in system header files. */ -/* #undef NEED_DECLARATION_SBRK */ +/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a + `char[]'. */ +#define YYTEXT_POINTER 1 -/* Define if getenv is not declared in system header files. */ -/* #undef NEED_DECLARATION_GETENV */ +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ -/* Define if environ is not declared in system header files. */ -#define NEED_DECLARATION_ENVIRON 1 +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +/* #undef inline */ +#endif -/* Additional extension a shared object might have. */ -/* #undef EXTRA_SHLIB_EXTENSION */ +/* Define to `long' if does not define. */ +/* #undef off_t */ +/* Define to `unsigned' if does not define. */ +/* #undef size_t */ From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:29:17 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E20E1065672; Thu, 21 Oct 2010 20:29:17 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1D7028FC1F; Thu, 21 Oct 2010 20:29:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LKTHsA003326; Thu, 21 Oct 2010 20:29:17 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LKTGfo003323; Thu, 21 Oct 2010 20:29:17 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212029.o9LKTGfo003323@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:29:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214179 - projects/binutils-2.17/gnu/usr.bin/binutils/ld X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:29:17 -0000 Author: dim Date: Thu Oct 21 20:29:16 2010 New Revision: 214179 URL: http://svn.freebsd.org/changeset/base/214179 Log: Remove weird double-pasted sections in armelfb?_fbsd.sh. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/ld/armelf_fbsd.sh projects/binutils-2.17/gnu/usr.bin/binutils/ld/armelfb_fbsd.sh Modified: projects/binutils-2.17/gnu/usr.bin/binutils/ld/armelf_fbsd.sh ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/ld/armelf_fbsd.sh Thu Oct 21 20:28:23 2010 (r214178) +++ projects/binutils-2.17/gnu/usr.bin/binutils/ld/armelf_fbsd.sh Thu Oct 21 20:29:16 2010 (r214179) @@ -6,10 +6,3 @@ GENERATE_PIE_SCRIPT=yes unset STACK_ADDR unset EMBEDDED -. ${srcdir}/emulparams/armelf.sh -. ${srcdir}/emulparams/elf_fbsd.sh -MAXPAGESIZE=0x8000 -GENERATE_PIE_SCRIPT=yes - -unset STACK_ADDR -unset EMBEDDED Modified: projects/binutils-2.17/gnu/usr.bin/binutils/ld/armelfb_fbsd.sh ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/ld/armelfb_fbsd.sh Thu Oct 21 20:28:23 2010 (r214178) +++ projects/binutils-2.17/gnu/usr.bin/binutils/ld/armelfb_fbsd.sh Thu Oct 21 20:29:16 2010 (r214179) @@ -11,15 +11,3 @@ GENERATE_PIE_SCRIPT=yes unset STACK_ADDR unset EMBEDDED OUTPUT_FORMAT="elf32-bigarm" -#XXX: This should be used once those bits are merged back in the FSF repo. -#. ${srcdir}/emulparams/armelf_fbsd.sh -# -#OUTPUT_FORMAT="elf32-bigarm" -. ${srcdir}/emulparams/armelf.sh -. ${srcdir}/emulparams/elf_fbsd.sh -MAXPAGESIZE=0x8000 -GENERATE_PIE_SCRIPT=yes - -unset STACK_ADDR -unset EMBEDDED -OUTPUT_FORMAT="elf32-bigarm" From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:30:35 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDE77106566B; Thu, 21 Oct 2010 20:30:35 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CCEF18FC16; Thu, 21 Oct 2010 20:30:35 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LKUZVl003398; Thu, 21 Oct 2010 20:30:35 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LKUZ5F003396; Thu, 21 Oct 2010 20:30:35 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212030.o9LKUZ5F003396@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:30:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214180 - projects/binutils-2.17/gnu/usr.bin/binutils/ld X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:30:35 -0000 Author: dim Date: Thu Oct 21 20:30:35 2010 New Revision: 214180 URL: http://svn.freebsd.org/changeset/base/214180 Log: Apply upstream changes to genscripts.sh, while attempting to keep the diff as small as possible. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/ld/genscripts.sh Modified: projects/binutils-2.17/gnu/usr.bin/binutils/ld/genscripts.sh ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/ld/genscripts.sh Thu Oct 21 20:29:16 2010 (r214179) +++ projects/binutils-2.17/gnu/usr.bin/binutils/ld/genscripts.sh Thu Oct 21 20:30:35 2010 (r214180) @@ -70,7 +70,6 @@ fi # To force a logically empty LIB_PATH, do LIBPATH=":". LIB_SEARCH_DIRS=`echo ${libdir} | sed -e 's/:/ /g' -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\1);/g'` -#2.13: LIB_SEARCH_DIRS=`echo ${libdir} | sed -e 's/:/ /g' -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\\"\1\\");/g'` # Generate 5 or 6 script files from a master script template in # ${srcdir}/scripttempl/${SCRIPT_NAME}.sh. Which one of the 5 or 6 @@ -97,11 +96,10 @@ if [ "x$SCRIPT_NAME" = "xelf" ]; then GENERATE_COMBRELOC_SCRIPT=yes fi -#2.13: SEGMENT_SIZE=${SEGMENT_SIZE-${TARGET_PAGE_SIZE}} SEGMENT_SIZE=${SEGMENT_SIZE-${MAXPAGESIZE-${TARGET_PAGE_SIZE}}} # Determine DATA_ALIGNMENT for the 5 variants, using -# values specified in the emulparams/.sh file or default. +# values specified in the emulparams/.sh file or default. DATA_ALIGNMENT_="${DATA_ALIGNMENT_-${DATA_ALIGNMENT-ALIGN(${SEGMENT_SIZE})}}" DATA_ALIGNMENT_n="${DATA_ALIGNMENT_n-${DATA_ALIGNMENT_}}" @@ -157,7 +155,16 @@ if test -n "$GENERATE_COMBRELOC_SCRIPT"; . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc ) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xc rm -f ${COMBRELOC} + LD_FLAG=w + RELRO_NOW=" " + COMBRELOC=ldscripts/${EMULATION_NAME}.xw.tmp + ( echo "/* Script for -z combreloc -z now -z relro: combine and sort reloc sections */" + . ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME} + . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc + ) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xw + rm -f ${COMBRELOC} COMBRELOC= + unset RELRO_NOW fi if test -n "$GENERATE_SHLIB_SCRIPT"; then @@ -173,13 +180,22 @@ if test -n "$GENERATE_SHLIB_SCRIPT"; the if test -n "$GENERATE_COMBRELOC_SCRIPT"; then LD_FLAG=cshared DATA_ALIGNMENT=${DATA_ALIGNMENT_sc-${DATA_ALIGNMENT}} - COMBRELOC=ldscripts/${EMULATION_NAME}.xc.tmp + COMBRELOC=ldscripts/${EMULATION_NAME}.xsc.tmp ( echo "/* Script for --shared -z combreloc: shared library, combine & sort relocs */" . ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME} . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc ) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xsc rm -f ${COMBRELOC} + LD_FLAG=wshared + RELRO_NOW=" " + COMBRELOC=ldscripts/${EMULATION_NAME}.xsw.tmp + ( echo "/* Script for --shared -z combreloc -z now -z relro: shared library, combine & sort relocs */" + . ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME} + . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc + ) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xsw + rm -f ${COMBRELOC} COMBRELOC= + unset RELRO_NOW fi unset CREATE_SHLIB fi @@ -197,13 +213,22 @@ if test -n "$GENERATE_PIE_SCRIPT"; then if test -n "$GENERATE_COMBRELOC_SCRIPT"; then LD_FLAG=cpie DATA_ALIGNMENT=${DATA_ALIGNMENT_sc-${DATA_ALIGNMENT}} - COMBRELOC=ldscripts/${EMULATION_NAME}.xc.tmp + COMBRELOC=ldscripts/${EMULATION_NAME}.xdc.tmp ( echo "/* Script for -pie -z combreloc: position independent executable, combine & sort relocs */" . ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME} . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc ) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xdc rm -f ${COMBRELOC} + LD_FLAG=wpie + RELRO_NOW=" " + COMBRELOC=ldscripts/${EMULATION_NAME}.xdw.tmp + ( echo "/* Script for -pie -z combreloc -z now -z relro: position independent executable, combine & sort relocs */" + . ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME} + . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc + ) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xdw + rm -f ${COMBRELOC} COMBRELOC= + unset RELRO_NOW fi unset CREATE_PIE fi From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:31:59 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7937A10656AA; Thu, 21 Oct 2010 20:31:59 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 68B8F8FC21; Thu, 21 Oct 2010 20:31:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LKVxSM003499; Thu, 21 Oct 2010 20:31:59 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LKVxpB003497; Thu, 21 Oct 2010 20:31:59 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212031.o9LKVxpB003497@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:31:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214182 - projects/binutils-2.17/gnu/usr.bin/binutils/ld X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:31:59 -0000 Author: dim Date: Thu Oct 21 20:31:59 2010 New Revision: 214182 URL: http://svn.freebsd.org/changeset/base/214182 Log: Use one file per line in SRCS= definition, to make insertions and deletions easier, and sort the file list. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/ld/Makefile Modified: projects/binutils-2.17/gnu/usr.bin/binutils/ld/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/ld/Makefile Thu Oct 21 20:31:50 2010 (r214181) +++ projects/binutils-2.17/gnu/usr.bin/binutils/ld/Makefile Thu Oct 21 20:31:59 2010 (r214182) @@ -10,9 +10,21 @@ CFLAGS+= -O1 PROG= ld SCRIPTDIR= /usr/libdata/ldscripts -SRCS+= ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \ - ldgram.y ldlang.c ldlex.l ldmain.c ldmisc.c \ - ldver.c ldwrite.c lexsup.c mri.c +SRCS+= ldcref.c \ + ldctor.c \ + ldemul-list.h \ + ldemul.c \ + ldexp.c \ + ldfile.c \ + ldgram.y \ + ldlang.c \ + ldlex.l \ + ldmain.c \ + ldmisc.c \ + ldver.c \ + ldwrite.c \ + lexsup.c \ + mri.c WARNS?= 0 # ldemul.h problem (`struct option' declared inside parameter list) CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\" From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:33:09 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 980451065675; Thu, 21 Oct 2010 20:33:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 879B38FC2A; Thu, 21 Oct 2010 20:33:09 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LKX9OL003571; Thu, 21 Oct 2010 20:33:09 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LKX9Wi003569; Thu, 21 Oct 2010 20:33:09 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212033.o9LKX9Wi003569@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:33:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214183 - projects/binutils-2.17/gnu/usr.bin/binutils/ld X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:33:09 -0000 Author: dim Date: Thu Oct 21 20:33:09 2010 New Revision: 214183 URL: http://svn.freebsd.org/changeset/base/214183 Log: Update ldscript extension list. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/ld/Makefile Modified: projects/binutils-2.17/gnu/usr.bin/binutils/ld/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/ld/Makefile Thu Oct 21 20:31:59 2010 (r214182) +++ projects/binutils-2.17/gnu/usr.bin/binutils/ld/Makefile Thu Oct 21 20:33:09 2010 (r214183) @@ -44,7 +44,7 @@ CLEANFILES+= ldemul-list.h stringify.sed HOST= ${TARGET_TUPLE} LIBSERACHPATH= \"${TOOLS_PREFIX}/lib\":\"${TOOLS_PREFIX}/usr/lib\" -ELF_SCR_EXT= x xbn xn xr xs xu xc xsc xd xdc +ELF_SCR_EXT= x xbn xc xd xdc xdw xn xr xs xsc xsw xu xw .for ext in ${ELF_SCR_EXT} LDSCRIPTS+= ${NATIVE_EMULATION}.${ext} .endfor From owner-svn-src-projects@FreeBSD.ORG Thu Oct 21 20:34:30 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 052E4106564A; Thu, 21 Oct 2010 20:34:30 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CE48F8FC0C; Thu, 21 Oct 2010 20:34:29 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9LKYTuZ003632; Thu, 21 Oct 2010 20:34:29 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9LKYTZW003629; Thu, 21 Oct 2010 20:34:29 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010212034.o9LKYTZW003629@svn.freebsd.org> From: Dimitry Andric Date: Thu, 21 Oct 2010 20:34:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214184 - projects/binutils-2.17/gnu/usr.bin/binutils/doc X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 20:34:30 -0000 Author: dim Date: Thu Oct 21 20:34:29 2010 New Revision: 214184 URL: http://svn.freebsd.org/changeset/base/214184 Log: Update makeinfo include paths, and configuration settings for the as info page. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/doc/Makefile projects/binutils-2.17/gnu/usr.bin/binutils/doc/asconfig.texi Modified: projects/binutils-2.17/gnu/usr.bin/binutils/doc/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/doc/Makefile Thu Oct 21 20:33:09 2010 (r214183) +++ projects/binutils-2.17/gnu/usr.bin/binutils/doc/Makefile Thu Oct 21 20:34:29 2010 (r214184) @@ -11,8 +11,8 @@ INFOENTRY_ld= "* Ld: (ld). The GNU link INFOENTRY_binutils= "* Binutils: (binutils). The GNU Binary Utilities." MAKEINFOFLAGS+= --no-validate -MAKEINFOFLAGS+= -I ${SRCDIR}/gas/doc -I ${SRCDIR}/ld -I ${SRCDIR}/bfd/doc -MAKEINFOFLAGS+= -I ${SRCDIR}/binutils +MAKEINFOFLAGS+= -I ${SRCDIR}/libiberty +MAKEINFOFLAGS+= -I ${SRCDIR}/bfd/doc CLEANFILES= configdoc.texi config.texi gasver.texi ldver.texi Modified: projects/binutils-2.17/gnu/usr.bin/binutils/doc/asconfig.texi ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/doc/asconfig.texi Thu Oct 21 20:33:09 2010 (r214183) +++ projects/binutils-2.17/gnu/usr.bin/binutils/doc/asconfig.texi Thu Oct 21 20:34:29 2010 (r214184) @@ -1,4 +1,6 @@ -@c Copyright 1992, 1993 Free Software Foundation, Inc. +@c Copyright 1992, 1993, 1994, 1996, 1997, 1999, 2000, 2001, 2002, +@c 2003, 2005 +@c Free Software Foundation, Inc. @c This file is part of the documentation for the GAS manual @c Configuration settings for all-inclusive version of manual @@ -18,31 +20,48 @@ @c Object formats of interest @c ========================== @clear AOUT -@clear BOUT @clear COFF @set ELF @clear SOM @c CPUs of interest @c ================ -@clear A29K +@clear ALPHA @clear ARC -@clear ARM +@set ARM +@clear BFIN +@clear CRIS @clear D10V +@clear D30V @clear H8/300 -@clear H8/500 -@clear SH +@clear HPPA +@clear I370 @set I80386 +@clear I860 @clear I960 -@clear MIPS +@set IA64 +@clear IP2K +@clear M32C @clear M32R +@clear xc16x +@clear M68HC11 @clear M680X0 -@clear Z8000 -@clear SPARC -@clear VAX -@clear VXWORKS -@clear HPPA +@clear MCORE +@set MIPS +@clear MMIX +@clear MS1 +@clear MSP430 +@clear PDP11 +@clear PJ +@set PPC +@clear SH +@set SPARC +@clear TIC54X @clear V850 +@clear VAX +@clear XTENSA +@clear Z80 +@clear Z8000 @c Does this version of the assembler use the difference-table kluge? @clear DIFF-TBL-KLUGE From owner-svn-src-projects@FreeBSD.ORG Fri Oct 22 03:05:35 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24C33106566C; Fri, 22 Oct 2010 03:05:35 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 142558FC17; Fri, 22 Oct 2010 03:05:35 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9M35Yr2011606; Fri, 22 Oct 2010 03:05:34 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9M35YW3011604; Fri, 22 Oct 2010 03:05:34 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010220305.o9M35YW3011604@svn.freebsd.org> From: Jeff Roberson Date: Fri, 22 Oct 2010 03:05:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214193 - projects/ofed/head/contrib/ofed/include/infiniband X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 03:05:35 -0000 Author: jeff Date: Fri Oct 22 03:05:34 2010 New Revision: 214193 URL: http://svn.freebsd.org/changeset/base/214193 Log: - Add IBINCS to the list of includes to install Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/contrib/ofed/include/infiniband/Makefile Modified: projects/ofed/head/contrib/ofed/include/infiniband/Makefile ============================================================================== --- projects/ofed/head/contrib/ofed/include/infiniband/Makefile Fri Oct 22 00:11:55 2010 (r214192) +++ projects/ofed/head/contrib/ofed/include/infiniband/Makefile Fri Oct 22 03:05:34 2010 (r214193) @@ -102,6 +102,6 @@ IBCMINCS= ${IBCM}/cm.h ${IBCM}/cm_abi.h IBCMINCSDIR= ${INCLUDEDIR}/infiniband INCSGROUPS= INCS VERBINCS COMMONINCS MADINCS UMADINCS COMPLIBINCS IBAINCS -INCSGROUPS+= OPENSMINCS VENDORINCS IBCMINCS +INCSGROUPS+= OPENSMINCS VENDORINCS IBCMINCS IBINCS .include From owner-svn-src-projects@FreeBSD.ORG Fri Oct 22 18:06:59 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11659106566B; Fri, 22 Oct 2010 18:06:59 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 014D68FC15; Fri, 22 Oct 2010 18:06:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9MI6wVf061611; Fri, 22 Oct 2010 18:06:58 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9MI6wfN061609; Fri, 22 Oct 2010 18:06:58 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010221806.o9MI6wfN061609@svn.freebsd.org> From: Dimitry Andric Date: Fri, 22 Oct 2010 18:06:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214209 - projects/binutils-2.17/contrib/binutils/bfd X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 18:06:59 -0000 Author: dim Date: Fri Oct 22 18:06:58 2010 New Revision: 214209 URL: http://svn.freebsd.org/changeset/base/214209 Log: Make contrib/binutils/bfd/coff-x86_64.c compile without warnings. Modified: projects/binutils-2.17/contrib/binutils/bfd/coff-x86_64.c Modified: projects/binutils-2.17/contrib/binutils/bfd/coff-x86_64.c ============================================================================== --- projects/binutils-2.17/contrib/binutils/bfd/coff-x86_64.c Fri Oct 22 17:49:11 2010 (r214208) +++ projects/binutils-2.17/contrib/binutils/bfd/coff-x86_64.c Fri Oct 22 18:06:58 2010 (r214209) @@ -634,7 +634,9 @@ coff_amd64_rtype_to_howto (bfd *abfd ATT } #define coff_bfd_reloc_type_lookup coff_amd64_reloc_type_lookup +#ifdef notyet #define coff_bfd_reloc_name_lookup coff_amd64_reloc_name_lookup +#endif static reloc_howto_type * coff_amd64_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED, bfd_reloc_code_real_type code) @@ -677,6 +679,7 @@ coff_amd64_reloc_type_lookup (bfd *abfd } } +#ifdef notyet static reloc_howto_type * coff_amd64_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED, const char *r_name) @@ -690,6 +693,7 @@ coff_amd64_reloc_name_lookup (bfd *abfd return NULL; } +#endif #define coff_rtype_to_howto coff_amd64_rtype_to_howto From owner-svn-src-projects@FreeBSD.ORG Fri Oct 22 18:07:29 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E77BF106566B; Fri, 22 Oct 2010 18:07:29 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D74C08FC1C; Fri, 22 Oct 2010 18:07:29 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9MI7T3I061696; Fri, 22 Oct 2010 18:07:29 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9MI7T6u061694; Fri, 22 Oct 2010 18:07:29 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010221807.o9MI7T6u061694@svn.freebsd.org> From: Dimitry Andric Date: Fri, 22 Oct 2010 18:07:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214211 - projects/binutils-2.17/contrib/binutils/opcodes X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 18:07:30 -0000 Author: dim Date: Fri Oct 22 18:07:29 2010 New Revision: 214211 URL: http://svn.freebsd.org/changeset/base/214211 Log: Make contrib/binutils/opcodes/mips-dic.c compile without warnings. Modified: projects/binutils-2.17/contrib/binutils/opcodes/mips-dis.c Modified: projects/binutils-2.17/contrib/binutils/opcodes/mips-dis.c ============================================================================== --- projects/binutils-2.17/contrib/binutils/opcodes/mips-dis.c Fri Oct 22 18:07:21 2010 (r214210) +++ projects/binutils-2.17/contrib/binutils/opcodes/mips-dis.c Fri Oct 22 18:07:29 2010 (r214211) @@ -1054,7 +1054,7 @@ print_insn_args (const char *d, /* Display 5 bits of bbit0/1 bit index amount. */ case '^': - (*info->fprintf_func) (info->stream, "0x%x", + (*info->fprintf_func) (info->stream, "0x%lx", (l >> OP_SH_BITIND) & OP_MASK_BITIND); break; From owner-svn-src-projects@FreeBSD.ORG Fri Oct 22 18:08:38 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B05A106564A; Fri, 22 Oct 2010 18:08:38 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 29D1B8FC1C; Fri, 22 Oct 2010 18:08:38 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9MI8cBc061765; Fri, 22 Oct 2010 18:08:38 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9MI8bJQ061754; Fri, 22 Oct 2010 18:08:37 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010221808.o9MI8bJQ061754@svn.freebsd.org> From: Dimitry Andric Date: Fri, 22 Oct 2010 18:08:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214212 - projects/binutils-2.17/contrib/gdb/gdb X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 18:08:38 -0000 Author: dim Date: Fri Oct 22 18:08:37 2010 New Revision: 214212 URL: http://svn.freebsd.org/changeset/base/214212 Log: Fix gdb compilation with new binutils: bfd_get_section_size_before_reloc() has been renamed to bfd_get_section_size(). Modified: projects/binutils-2.17/contrib/gdb/gdb/dsrec.c projects/binutils-2.17/contrib/gdb/gdb/dwarf2-frame.c projects/binutils-2.17/contrib/gdb/gdb/dwarf2read.c projects/binutils-2.17/contrib/gdb/gdb/elfread.c projects/binutils-2.17/contrib/gdb/gdb/gcore.c projects/binutils-2.17/contrib/gdb/gdb/mipsread.c projects/binutils-2.17/contrib/gdb/gdb/remote-e7000.c projects/binutils-2.17/contrib/gdb/gdb/remote.c projects/binutils-2.17/contrib/gdb/gdb/symfile.c projects/binutils-2.17/contrib/gdb/gdb/tracepoint.c Modified: projects/binutils-2.17/contrib/gdb/gdb/dsrec.c ============================================================================== --- projects/binutils-2.17/contrib/gdb/gdb/dsrec.c Fri Oct 22 18:07:29 2010 (r214211) +++ projects/binutils-2.17/contrib/gdb/gdb/dsrec.c Fri Oct 22 18:08:37 2010 (r214212) @@ -93,7 +93,7 @@ load_srec (struct serial *desc, const ch { int numbytes; bfd_vma addr = bfd_get_section_vma (abfd, s) + load_offset; - bfd_size_type size = bfd_get_section_size_before_reloc (s); + bfd_size_type size = bfd_get_section_size (s); char *section_name = (char *) bfd_get_section_name (abfd, s); /* Both GDB and BFD have mechanisms for printing addresses. In the below, GDB's is used so that the address is Modified: projects/binutils-2.17/contrib/gdb/gdb/dwarf2-frame.c ============================================================================== --- projects/binutils-2.17/contrib/gdb/gdb/dwarf2-frame.c Fri Oct 22 18:07:29 2010 (r214211) +++ projects/binutils-2.17/contrib/gdb/gdb/dwarf2-frame.c Fri Oct 22 18:08:37 2010 (r214212) @@ -1573,7 +1573,7 @@ dwarf2_build_frame_info (struct objfile dwarf_eh_frame_section); unit.dwarf_frame_size - = bfd_get_section_size_before_reloc (dwarf_eh_frame_section); + = bfd_get_section_size (dwarf_eh_frame_section); unit.dwarf_frame_section = dwarf_eh_frame_section; /* FIXME: kettenis/20030602: This is the DW_EH_PE_datarel base @@ -1601,7 +1601,7 @@ dwarf2_build_frame_info (struct objfile unit.dwarf_frame_buffer = dwarf2_read_section (objfile, dwarf_frame_section); unit.dwarf_frame_size - = bfd_get_section_size_before_reloc (dwarf_frame_section); + = bfd_get_section_size (dwarf_frame_section); unit.dwarf_frame_section = dwarf_frame_section; frame_ptr = unit.dwarf_frame_buffer; Modified: projects/binutils-2.17/contrib/gdb/gdb/dwarf2read.c ============================================================================== --- projects/binutils-2.17/contrib/gdb/gdb/dwarf2read.c Fri Oct 22 18:07:29 2010 (r214211) +++ projects/binutils-2.17/contrib/gdb/gdb/dwarf2read.c Fri Oct 22 18:08:37 2010 (r214212) @@ -954,47 +954,47 @@ dwarf2_locate_sections (bfd *ignore_abfd { if (strcmp (sectp->name, INFO_SECTION) == 0) { - dwarf_info_size = bfd_get_section_size_before_reloc (sectp); + dwarf_info_size = bfd_get_section_size (sectp); dwarf_info_section = sectp; } else if (strcmp (sectp->name, ABBREV_SECTION) == 0) { - dwarf_abbrev_size = bfd_get_section_size_before_reloc (sectp); + dwarf_abbrev_size = bfd_get_section_size (sectp); dwarf_abbrev_section = sectp; } else if (strcmp (sectp->name, LINE_SECTION) == 0) { - dwarf_line_size = bfd_get_section_size_before_reloc (sectp); + dwarf_line_size = bfd_get_section_size (sectp); dwarf_line_section = sectp; } else if (strcmp (sectp->name, PUBNAMES_SECTION) == 0) { - dwarf_pubnames_size = bfd_get_section_size_before_reloc (sectp); + dwarf_pubnames_size = bfd_get_section_size (sectp); dwarf_pubnames_section = sectp; } else if (strcmp (sectp->name, ARANGES_SECTION) == 0) { - dwarf_aranges_size = bfd_get_section_size_before_reloc (sectp); + dwarf_aranges_size = bfd_get_section_size (sectp); dwarf_aranges_section = sectp; } else if (strcmp (sectp->name, LOC_SECTION) == 0) { - dwarf_loc_size = bfd_get_section_size_before_reloc (sectp); + dwarf_loc_size = bfd_get_section_size (sectp); dwarf_loc_section = sectp; } else if (strcmp (sectp->name, MACINFO_SECTION) == 0) { - dwarf_macinfo_size = bfd_get_section_size_before_reloc (sectp); + dwarf_macinfo_size = bfd_get_section_size (sectp); dwarf_macinfo_section = sectp; } else if (strcmp (sectp->name, STR_SECTION) == 0) { - dwarf_str_size = bfd_get_section_size_before_reloc (sectp); + dwarf_str_size = bfd_get_section_size (sectp); dwarf_str_section = sectp; } else if (strcmp (sectp->name, FRAME_SECTION) == 0) { - dwarf_frame_size = bfd_get_section_size_before_reloc (sectp); + dwarf_frame_size = bfd_get_section_size (sectp); dwarf_frame_section = sectp; } else if (strcmp (sectp->name, EH_FRAME_SECTION) == 0) @@ -1002,13 +1002,13 @@ dwarf2_locate_sections (bfd *ignore_abfd flagword aflag = bfd_get_section_flags (ignore_abfd, sectp); if (aflag & SEC_HAS_CONTENTS) { - dwarf_eh_frame_size = bfd_get_section_size_before_reloc (sectp); + dwarf_eh_frame_size = bfd_get_section_size (sectp); dwarf_eh_frame_section = sectp; } } else if (strcmp (sectp->name, RANGES_SECTION) == 0) { - dwarf_ranges_size = bfd_get_section_size_before_reloc (sectp); + dwarf_ranges_size = bfd_get_section_size (sectp); dwarf_ranges_section = sectp; } } @@ -4185,7 +4185,7 @@ dwarf2_read_section (struct objfile *obj { bfd *abfd = objfile->obfd; char *buf, *retbuf; - bfd_size_type size = bfd_get_section_size_before_reloc (sectp); + bfd_size_type size = bfd_get_section_size (sectp); if (size == 0) return NULL; Modified: projects/binutils-2.17/contrib/gdb/gdb/elfread.c ============================================================================== --- projects/binutils-2.17/contrib/gdb/gdb/elfread.c Fri Oct 22 18:07:29 2010 (r214211) +++ projects/binutils-2.17/contrib/gdb/gdb/elfread.c Fri Oct 22 18:08:37 2010 (r214212) @@ -83,12 +83,12 @@ elf_locate_sections (bfd *ignore_abfd, a if (strcmp (sectp->name, ".debug") == 0) { ei->dboffset = sectp->filepos; - ei->dbsize = bfd_get_section_size_before_reloc (sectp); + ei->dbsize = bfd_get_section_size (sectp); } else if (strcmp (sectp->name, ".line") == 0) { ei->lnoffset = sectp->filepos; - ei->lnsize = bfd_get_section_size_before_reloc (sectp); + ei->lnsize = bfd_get_section_size (sectp); } else if (strcmp (sectp->name, ".stab") == 0) { Modified: projects/binutils-2.17/contrib/gdb/gdb/gcore.c ============================================================================== --- projects/binutils-2.17/contrib/gdb/gdb/gcore.c Fri Oct 22 18:07:29 2010 (r214211) +++ projects/binutils-2.17/contrib/gdb/gdb/gcore.c Fri Oct 22 18:08:37 2010 (r214212) @@ -244,7 +244,7 @@ derive_heap_segment (bfd *abfd, bfd_vma || strcmp (".bss", bfd_section_name (abfd, sec)) == 0) { sec_vaddr = bfd_get_section_vma (abfd, sec); - sec_size = bfd_get_section_size_before_reloc (sec); + sec_size = bfd_get_section_size (sec); if (sec_vaddr + sec_size > top_of_data_memory) top_of_data_memory = sec_vaddr + sec_size; } Modified: projects/binutils-2.17/contrib/gdb/gdb/mipsread.c ============================================================================== --- projects/binutils-2.17/contrib/gdb/gdb/mipsread.c Fri Oct 22 18:07:29 2010 (r214211) +++ projects/binutils-2.17/contrib/gdb/gdb/mipsread.c Fri Oct 22 18:08:37 2010 (r214212) @@ -256,10 +256,10 @@ read_alphacoff_dynamic_symtab (struct se || si.got_sect == NULL) return; - sym_secsize = bfd_get_section_size_before_reloc (si.sym_sect); - str_secsize = bfd_get_section_size_before_reloc (si.str_sect); - dyninfo_secsize = bfd_get_section_size_before_reloc (si.dyninfo_sect); - got_secsize = bfd_get_section_size_before_reloc (si.got_sect); + sym_secsize = bfd_get_section_size (si.sym_sect); + str_secsize = bfd_get_section_size (si.str_sect); + dyninfo_secsize = bfd_get_section_size (si.dyninfo_sect); + got_secsize = bfd_get_section_size (si.got_sect); sym_secptr = xmalloc (sym_secsize); cleanups = make_cleanup (free, sym_secptr); str_secptr = xmalloc (str_secsize); Modified: projects/binutils-2.17/contrib/gdb/gdb/remote-e7000.c ============================================================================== --- projects/binutils-2.17/contrib/gdb/gdb/remote-e7000.c Fri Oct 22 18:07:29 2010 (r214211) +++ projects/binutils-2.17/contrib/gdb/gdb/remote-e7000.c Fri Oct 22 18:08:37 2010 (r214212) @@ -1568,7 +1568,7 @@ e7000_load (char *args, int from_tty) file_ptr fptr; section_address = bfd_get_section_vma (pbfd, section); - section_size = bfd_get_section_size_before_reloc (section); + section_size = bfd_get_section_size (section); if (!quiet) printf_filtered ("[Loading section %s at 0x%s (%s bytes)]\n", Modified: projects/binutils-2.17/contrib/gdb/gdb/remote.c ============================================================================== --- projects/binutils-2.17/contrib/gdb/gdb/remote.c Fri Oct 22 18:07:29 2010 (r214211) +++ projects/binutils-2.17/contrib/gdb/gdb/remote.c Fri Oct 22 18:08:37 2010 (r214212) @@ -4834,7 +4834,7 @@ compare_sections_command (char *args, in if (!(s->flags & SEC_LOAD)) continue; /* skip non-loadable section */ - size = bfd_get_section_size_before_reloc (s); + size = bfd_get_section_size (s); if (size == 0) continue; /* skip zero-length section */ Modified: projects/binutils-2.17/contrib/gdb/gdb/symfile.c ============================================================================== --- projects/binutils-2.17/contrib/gdb/gdb/symfile.c Fri Oct 22 18:07:29 2010 (r214211) +++ projects/binutils-2.17/contrib/gdb/gdb/symfile.c Fri Oct 22 18:08:37 2010 (r214212) @@ -1353,7 +1353,7 @@ add_section_size_callback (bfd *abfd, as { bfd_size_type *sum = data; - *sum += bfd_get_section_size_before_reloc (asec); + *sum += bfd_get_section_size (asec); } /* Opaque data for load_section_callback. */ @@ -1373,7 +1373,7 @@ load_section_callback (bfd *abfd, asecti if (bfd_get_section_flags (abfd, asec) & SEC_LOAD) { - bfd_size_type size = bfd_get_section_size_before_reloc (asec); + bfd_size_type size = bfd_get_section_size (asec); if (size > 0) { char *buffer; @@ -2879,7 +2879,7 @@ pc_in_unmapped_range (CORE_ADDR pc, asec if (overlay_debugging) if (section && section_is_overlay (section)) { - size = bfd_get_section_size_before_reloc (section); + size = bfd_get_section_size (section); if (section->lma <= pc && pc < section->lma + size) return 1; } @@ -2899,7 +2899,7 @@ pc_in_mapped_range (CORE_ADDR pc, asecti if (overlay_debugging) if (section && section_is_overlay (section)) { - size = bfd_get_section_size_before_reloc (section); + size = bfd_get_section_size (section); if (section->vma <= pc && pc < section->vma + size) return 1; } @@ -2915,9 +2915,9 @@ sections_overlap (asection *a, asection /* FIXME: need bfd *, so we can use bfd_section_vma methods. */ CORE_ADDR a_start = a->vma; - CORE_ADDR a_end = a->vma + bfd_get_section_size_before_reloc (a); + CORE_ADDR a_end = a->vma + bfd_get_section_size (a); CORE_ADDR b_start = b->vma; - CORE_ADDR b_end = b->vma + bfd_get_section_size_before_reloc (b); + CORE_ADDR b_end = b->vma + bfd_get_section_size (b); return (a_start < b_end && b_start < a_end); } @@ -3052,7 +3052,7 @@ list_overlays_command (char *args, int f vma = bfd_section_vma (objfile->obfd, osect->the_bfd_section); lma = bfd_section_lma (objfile->obfd, osect->the_bfd_section); - size = bfd_get_section_size_before_reloc (osect->the_bfd_section); + size = bfd_get_section_size (osect->the_bfd_section); name = bfd_section_name (objfile->obfd, osect->the_bfd_section); printf_filtered ("Section %s, loaded at ", name); @@ -3392,7 +3392,7 @@ simple_overlay_update_1 (struct obj_sect bfd *obfd = osect->objfile->obfd; asection *bsect = osect->the_bfd_section; - size = bfd_get_section_size_before_reloc (osect->the_bfd_section); + size = bfd_get_section_size (osect->the_bfd_section); for (i = 0; i < cache_novlys; i++) if (cache_ovly_table[i][VMA] == bfd_section_vma (obfd, bsect) && cache_ovly_table[i][LMA] == bfd_section_lma (obfd, bsect) @@ -3453,7 +3453,7 @@ simple_overlay_update (struct obj_sectio bfd *obfd = osect->objfile->obfd; asection *bsect = osect->the_bfd_section; - size = bfd_get_section_size_before_reloc (osect->the_bfd_section); + size = bfd_get_section_size (osect->the_bfd_section); for (i = 0; i < cache_novlys; i++) if (cache_ovly_table[i][VMA] == bfd_section_vma (obfd, bsect) && cache_ovly_table[i][LMA] == bfd_section_lma (obfd, bsect) Modified: projects/binutils-2.17/contrib/gdb/gdb/tracepoint.c ============================================================================== --- projects/binutils-2.17/contrib/gdb/gdb/tracepoint.c Fri Oct 22 18:07:29 2010 (r214211) +++ projects/binutils-2.17/contrib/gdb/gdb/tracepoint.c Fri Oct 22 18:08:37 2010 (r214212) @@ -1693,7 +1693,7 @@ remote_set_transparent_ranges (void) anysecs = 1; lma = s->lma; - size = bfd_get_section_size_before_reloc (s); + size = bfd_get_section_size (s); sprintf_vma (tmp1, lma); sprintf_vma (tmp2, lma + size); sprintf (target_buf + strlen (target_buf), From owner-svn-src-projects@FreeBSD.ORG Fri Oct 22 18:11:17 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C356106564A; Fri, 22 Oct 2010 18:11:17 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 51AFC8FC20; Fri, 22 Oct 2010 18:11:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9MIBHcm061868; Fri, 22 Oct 2010 18:11:17 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9MIBHk3061867; Fri, 22 Oct 2010 18:11:17 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010221811.o9MIBHk3061867@svn.freebsd.org> From: Dimitry Andric Date: Fri, 22 Oct 2010 18:11:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214213 - in projects/binutils-2.17/gnu/lib: libg2c libiberty X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 18:11:17 -0000 Author: dim Date: Fri Oct 22 18:11:17 2010 New Revision: 214213 URL: http://svn.freebsd.org/changeset/base/214213 Log: Garbage collect gnu/lib/libiberty and gnu/lib/libg2c, these have not been used for years. Deleted: projects/binutils-2.17/gnu/lib/libg2c/ projects/binutils-2.17/gnu/lib/libiberty/ From owner-svn-src-projects@FreeBSD.ORG Fri Oct 22 18:12:40 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83AC4106566B; Fri, 22 Oct 2010 18:12:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 736B68FC22; Fri, 22 Oct 2010 18:12:40 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9MICeNZ061938; Fri, 22 Oct 2010 18:12:40 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9MICexv061936; Fri, 22 Oct 2010 18:12:40 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010221812.o9MICexv061936@svn.freebsd.org> From: Dimitry Andric Date: Fri, 22 Oct 2010 18:12:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214214 - projects/binutils-2.17/gnu/usr.bin/cc/cc_tools X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 18:12:40 -0000 Author: dim Date: Fri Oct 22 18:12:40 2010 New Revision: 214214 URL: http://svn.freebsd.org/changeset/base/214214 Log: Update gcc's auto-host.h header for binutils 2.17: turn on HAVE_COMDAT_GROUP, HAVE_GAS_WEAKREF and HAVE_LD_SYSROOT. Modified: projects/binutils-2.17/gnu/usr.bin/cc/cc_tools/auto-host.h Modified: projects/binutils-2.17/gnu/usr.bin/cc/cc_tools/auto-host.h ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/cc/cc_tools/auto-host.h Fri Oct 22 18:11:17 2010 (r214213) +++ projects/binutils-2.17/gnu/usr.bin/cc/cc_tools/auto-host.h Fri Oct 22 18:12:40 2010 (r214214) @@ -327,7 +327,7 @@ /* Define 0/1 if your assembler and linker support COMDAT groups. */ #ifndef USED_FOR_TARGET -#define HAVE_COMDAT_GROUP 0 +#define HAVE_COMDAT_GROUP 1 #endif @@ -783,7 +783,7 @@ /* Define if your assembler supports .weakref. */ #ifndef USED_FOR_TARGET -/* #undef HAVE_GAS_WEAKREF */ +#define HAVE_GAS_WEAKREF 1 #endif @@ -916,7 +916,7 @@ /* Define if your linker supports --sysroot. */ #ifndef USED_FOR_TARGET -/* #undef HAVE_LD_SYSROOT */ +#define HAVE_LD_SYSROOT 1 #endif From owner-svn-src-projects@FreeBSD.ORG Fri Oct 22 18:14:25 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8D4A1065697; Fri, 22 Oct 2010 18:14:25 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8B07C8FC26; Fri, 22 Oct 2010 18:14:25 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9MIEPqO062024; Fri, 22 Oct 2010 18:14:25 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9MIEPb5062022; Fri, 22 Oct 2010 18:14:25 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010221814.o9MIEPb5062022@svn.freebsd.org> From: Dimitry Andric Date: Fri, 22 Oct 2010 18:14:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214215 - projects/binutils-2.17/lib/libc/include X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 18:14:25 -0000 Author: dim Date: Fri Oct 22 18:14:25 2010 New Revision: 214215 URL: http://svn.freebsd.org/changeset/base/214215 Log: Remove some spaces from __sym_compat() macro, since gas 2.17 is more fussy about spaces surrounding '@' signs in versioned symbol names. Modified: projects/binutils-2.17/lib/libc/include/compat.h Modified: projects/binutils-2.17/lib/libc/include/compat.h ============================================================================== --- projects/binutils-2.17/lib/libc/include/compat.h Fri Oct 22 18:12:40 2010 (r214214) +++ projects/binutils-2.17/lib/libc/include/compat.h Fri Oct 22 18:14:25 2010 (r214215) @@ -36,7 +36,7 @@ #define __LIBC_COMPAT_H__ #define __sym_compat(sym,impl,verid) \ - .symver impl , sym @ verid + .symver impl, sym@verid __sym_compat(__semctl, freebsd7___semctl, FBSD_1.0); __sym_compat(msgctl, freebsd7_msgctl, FBSD_1.0); From owner-svn-src-projects@FreeBSD.ORG Fri Oct 22 20:02:19 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BAD4106566C; Fri, 22 Oct 2010 20:02:19 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 66CA38FC0A; Fri, 22 Oct 2010 20:02:19 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9MK2JV7064728; Fri, 22 Oct 2010 20:02:19 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9MK2I2b064696; Fri, 22 Oct 2010 20:02:18 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010222002.o9MK2I2b064696@svn.freebsd.org> From: Dimitry Andric Date: Fri, 22 Oct 2010 20:02:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214220 - in projects/binutils-2.17: . contrib/top lib/libc/gen lib/libc/include lib/libc/stdlib lib/libc/sys lib/libgeom lib/libthr lib/libthr/thread libexec/rtld-elf libexec/rtld-elf/... X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 20:02:19 -0000 Author: dim Date: Fri Oct 22 20:02:18 2010 New Revision: 214220 URL: http://svn.freebsd.org/changeset/base/214220 Log: Sync: merge r214077 through r214219 from ^/head. Added: projects/binutils-2.17/share/man/man9/vm_page_sleep_if_busy.9 - copied unchanged from r214219, head/share/man/man9/vm_page_sleep_if_busy.9 projects/binutils-2.17/sys/dev/xen/control/ - copied from r214219, head/sys/dev/xen/control/ projects/binutils-2.17/sys/xen/blkif.h - copied unchanged from r214219, head/sys/xen/blkif.h projects/binutils-2.17/sys/xen/xenbus/xenbus.c - copied unchanged from r214219, head/sys/xen/xenbus/xenbus.c projects/binutils-2.17/sys/xen/xenbus/xenbusb.c - copied unchanged from r214219, head/sys/xen/xenbus/xenbusb.c projects/binutils-2.17/sys/xen/xenbus/xenbusb.h - copied unchanged from r214219, head/sys/xen/xenbus/xenbusb.h projects/binutils-2.17/sys/xen/xenbus/xenbusb_back.c - copied unchanged from r214219, head/sys/xen/xenbus/xenbusb_back.c projects/binutils-2.17/sys/xen/xenbus/xenbusb_front.c - copied unchanged from r214219, head/sys/xen/xenbus/xenbusb_front.c projects/binutils-2.17/sys/xen/xenbus/xenbusb_if.m - copied unchanged from r214219, head/sys/xen/xenbus/xenbusb_if.m projects/binutils-2.17/sys/xen/xenstore/ - copied from r214219, head/sys/xen/xenstore/ Deleted: projects/binutils-2.17/share/man/man9/vm_page_sleep_busy.9 projects/binutils-2.17/sys/xen/reboot.c projects/binutils-2.17/sys/xen/xenbus/init.txt projects/binutils-2.17/sys/xen/xenbus/xenbus_client.c projects/binutils-2.17/sys/xen/xenbus/xenbus_comms.c projects/binutils-2.17/sys/xen/xenbus/xenbus_comms.h projects/binutils-2.17/sys/xen/xenbus/xenbus_dev.c projects/binutils-2.17/sys/xen/xenbus/xenbus_probe.c projects/binutils-2.17/sys/xen/xenbus/xenbus_probe_backend.c projects/binutils-2.17/sys/xen/xenbus/xenbus_xs.c Modified: projects/binutils-2.17/ObsoleteFiles.inc projects/binutils-2.17/lib/libc/gen/pututxline.c projects/binutils-2.17/lib/libc/include/namespace.h projects/binutils-2.17/lib/libc/include/un-namespace.h projects/binutils-2.17/lib/libc/stdlib/strtonum.3 projects/binutils-2.17/lib/libc/sys/getpriority.2 projects/binutils-2.17/lib/libc/sys/pathconf.2 projects/binutils-2.17/lib/libc/sys/stat.2 projects/binutils-2.17/lib/libgeom/geom_ctl.c projects/binutils-2.17/lib/libthr/pthread.map projects/binutils-2.17/lib/libthr/thread/thr_private.h projects/binutils-2.17/lib/libthr/thread/thr_rwlock.c projects/binutils-2.17/lib/libthr/thread/thr_rwlockattr.c projects/binutils-2.17/libexec/rtld-elf/Makefile projects/binutils-2.17/libexec/rtld-elf/ia64/reloc.c projects/binutils-2.17/sbin/fsirand/fsirand.8 projects/binutils-2.17/sbin/geom/class/eli/geli.8 projects/binutils-2.17/sbin/geom/class/eli/geom_eli.c projects/binutils-2.17/sbin/hastd/hooks.c projects/binutils-2.17/sbin/ipfw/ipfw.8 projects/binutils-2.17/sbin/restore/restore.8 projects/binutils-2.17/share/man/man4/iscsi_initiator.4 projects/binutils-2.17/share/man/man5/device.hints.5 projects/binutils-2.17/share/man/man5/elf.5 projects/binutils-2.17/share/man/man9/Makefile projects/binutils-2.17/share/man/man9/VOP_GETPAGES.9 projects/binutils-2.17/share/man/man9/sysctl_add_oid.9 projects/binutils-2.17/share/man/man9/vm_page_io.9 projects/binutils-2.17/share/man/man9/vm_page_wakeup.9 projects/binutils-2.17/sys/boot/common/gpt.c projects/binutils-2.17/sys/boot/i386/boot2/boot2.c projects/binutils-2.17/sys/conf/files projects/binutils-2.17/sys/dev/acpica/acpi_pci.c projects/binutils-2.17/sys/dev/bge/if_bge.c projects/binutils-2.17/sys/dev/bge/if_bgereg.h projects/binutils-2.17/sys/dev/iwi/if_iwi.c projects/binutils-2.17/sys/dev/mfi/mfireg.h projects/binutils-2.17/sys/dev/mvs/mvs.c projects/binutils-2.17/sys/dev/mvs/mvs_pci.c projects/binutils-2.17/sys/dev/mvs/mvs_soc.c projects/binutils-2.17/sys/dev/pci/pci.c projects/binutils-2.17/sys/dev/pci/pci_pci.c projects/binutils-2.17/sys/dev/pci/pci_private.h projects/binutils-2.17/sys/dev/pci/pcireg.h projects/binutils-2.17/sys/dev/pci/pcivar.h projects/binutils-2.17/sys/dev/sis/if_sis.c projects/binutils-2.17/sys/dev/xen/balloon/balloon.c projects/binutils-2.17/sys/dev/xen/blkback/blkback.c projects/binutils-2.17/sys/dev/xen/blkfront/blkfront.c projects/binutils-2.17/sys/dev/xen/blkfront/block.h projects/binutils-2.17/sys/dev/xen/netfront/netfront.c projects/binutils-2.17/sys/dev/xen/xenpci/evtchn.c projects/binutils-2.17/sys/dev/xen/xenpci/xenpci.c projects/binutils-2.17/sys/fs/nfsserver/nfs_nfsdport.c projects/binutils-2.17/sys/geom/eli/g_eli.c projects/binutils-2.17/sys/geom/eli/g_eli.h projects/binutils-2.17/sys/geom/eli/g_eli_ctl.c projects/binutils-2.17/sys/geom/eli/g_eli_integrity.c projects/binutils-2.17/sys/geom/eli/g_eli_privacy.c projects/binutils-2.17/sys/i386/xen/xen_machdep.c projects/binutils-2.17/sys/kern/kern_exec.c projects/binutils-2.17/sys/kern/kern_exit.c projects/binutils-2.17/sys/kern/kern_fork.c projects/binutils-2.17/sys/kern/kern_ktrace.c projects/binutils-2.17/sys/kern/kern_syscalls.c projects/binutils-2.17/sys/kern/kern_thr.c projects/binutils-2.17/sys/mips/rmi/board.c projects/binutils-2.17/sys/mips/rmi/dev/nlge/if_nlge.c projects/binutils-2.17/sys/mips/rmi/xlr_machdep.c projects/binutils-2.17/sys/net/if.c projects/binutils-2.17/sys/net/if.h projects/binutils-2.17/sys/sys/ktrace.h projects/binutils-2.17/sys/sys/sockio.h projects/binutils-2.17/sys/vm/swap_pager.c projects/binutils-2.17/sys/vm/vm_map.c projects/binutils-2.17/sys/vm/vm_map.h projects/binutils-2.17/sys/xen/evtchn/evtchn.c projects/binutils-2.17/sys/xen/gnttab.c projects/binutils-2.17/sys/xen/gnttab.h projects/binutils-2.17/sys/xen/interface/grant_table.h projects/binutils-2.17/sys/xen/interface/hvm/params.h projects/binutils-2.17/sys/xen/interface/io/blkif.h projects/binutils-2.17/sys/xen/interface/io/protocols.h projects/binutils-2.17/sys/xen/interface/io/ring.h projects/binutils-2.17/sys/xen/interface/io/xenbus.h projects/binutils-2.17/sys/xen/xen_intr.h projects/binutils-2.17/sys/xen/xenbus/xenbus_if.m projects/binutils-2.17/sys/xen/xenbus/xenbusvar.h projects/binutils-2.17/tools/tools/syscall_timing/syscall_timing.c projects/binutils-2.17/usr.bin/login/login.c projects/binutils-2.17/usr.bin/mesg/mesg.1 projects/binutils-2.17/usr.bin/truss/setup.c projects/binutils-2.17/usr.bin/unzip/unzip.1 projects/binutils-2.17/usr.bin/unzip/unzip.c projects/binutils-2.17/usr.sbin/lpr/lpr/lpr.c projects/binutils-2.17/usr.sbin/mfiutil/mfi_drive.c projects/binutils-2.17/usr.sbin/mtest/mtest.8 projects/binutils-2.17/usr.sbin/pc-sysinstall/backend-query/disk-info.sh projects/binutils-2.17/usr.sbin/pc-sysinstall/backend-query/list-components.sh projects/binutils-2.17/usr.sbin/pc-sysinstall/backend-query/query-langs.sh projects/binutils-2.17/usr.sbin/pc-sysinstall/backend-query/test-live.sh projects/binutils-2.17/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh projects/binutils-2.17/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh projects/binutils-2.17/usr.sbin/pc-sysinstall/backend/functions-disk.sh projects/binutils-2.17/usr.sbin/pc-sysinstall/backend/functions-extractimage.sh projects/binutils-2.17/usr.sbin/pc-sysinstall/backend/functions.sh Directory Properties: projects/binutils-2.17/ (props changed) projects/binutils-2.17/cddl/contrib/opensolaris/ (props changed) projects/binutils-2.17/contrib/bind9/ (props changed) projects/binutils-2.17/contrib/binutils/ (props changed) projects/binutils-2.17/contrib/bzip2/ (props changed) projects/binutils-2.17/contrib/ee/ (props changed) projects/binutils-2.17/contrib/expat/ (props changed) projects/binutils-2.17/contrib/file/ (props changed) projects/binutils-2.17/contrib/gdb/ (props changed) projects/binutils-2.17/contrib/gdtoa/ (props changed) projects/binutils-2.17/contrib/gnu-sort/ (props changed) projects/binutils-2.17/contrib/groff/ (props changed) projects/binutils-2.17/contrib/less/ (props changed) projects/binutils-2.17/contrib/libpcap/ (props changed) projects/binutils-2.17/contrib/llvm/ (props changed) projects/binutils-2.17/contrib/llvm/tools/clang/ (props changed) projects/binutils-2.17/contrib/ncurses/ (props changed) projects/binutils-2.17/contrib/netcat/ (props changed) projects/binutils-2.17/contrib/ntp/ (props changed) projects/binutils-2.17/contrib/one-true-awk/ (props changed) projects/binutils-2.17/contrib/openbsm/ (props changed) projects/binutils-2.17/contrib/openpam/ (props changed) projects/binutils-2.17/contrib/pf/ (props changed) projects/binutils-2.17/contrib/sendmail/ (props changed) projects/binutils-2.17/contrib/tcpdump/ (props changed) projects/binutils-2.17/contrib/tcsh/ (props changed) projects/binutils-2.17/contrib/top/ (props changed) projects/binutils-2.17/contrib/top/install-sh (props changed) projects/binutils-2.17/contrib/tzcode/stdtime/ (props changed) projects/binutils-2.17/contrib/tzcode/zic/ (props changed) projects/binutils-2.17/contrib/tzdata/ (props changed) projects/binutils-2.17/contrib/wpa/ (props changed) projects/binutils-2.17/contrib/xz/ (props changed) projects/binutils-2.17/crypto/openssh/ (props changed) projects/binutils-2.17/crypto/openssl/ (props changed) projects/binutils-2.17/lib/libc/ (props changed) projects/binutils-2.17/lib/libc/stdtime/ (props changed) projects/binutils-2.17/lib/libutil/ (props changed) projects/binutils-2.17/lib/libz/ (props changed) projects/binutils-2.17/sbin/ (props changed) projects/binutils-2.17/sbin/ipfw/ (props changed) projects/binutils-2.17/share/mk/bsd.arch.inc.mk (props changed) projects/binutils-2.17/share/zoneinfo/ (props changed) projects/binutils-2.17/sys/ (props changed) projects/binutils-2.17/sys/amd64/include/xen/ (props changed) projects/binutils-2.17/sys/cddl/contrib/opensolaris/ (props changed) projects/binutils-2.17/sys/contrib/dev/acpica/ (props changed) projects/binutils-2.17/sys/contrib/pf/ (props changed) projects/binutils-2.17/sys/contrib/x86emu/ (props changed) projects/binutils-2.17/sys/dev/xen/xenpci/ (props changed) projects/binutils-2.17/usr.bin/calendar/ (props changed) projects/binutils-2.17/usr.bin/csup/ (props changed) projects/binutils-2.17/usr.bin/procstat/ (props changed) projects/binutils-2.17/usr.sbin/zic/ (props changed) Modified: projects/binutils-2.17/ObsoleteFiles.inc ============================================================================== --- projects/binutils-2.17/ObsoleteFiles.inc Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/ObsoleteFiles.inc Fri Oct 22 20:02:18 2010 (r214220) @@ -14,6 +14,8 @@ # The file is partitioned: OLD_FILES first, then OLD_LIBS and OLD_DIRS last. # +# 20101020: catch up with vm_page_sleep_if_busy rename +OLD_FILES+=usr/share/man/man9/vm_page_sleep_busy.9.gz # 20101011: removed subblock.h from liblzma OLD_FILES+=usr/include/lzma/subblock.h # 20101002: removed manpath.config Modified: projects/binutils-2.17/lib/libc/gen/pututxline.c ============================================================================== --- projects/binutils-2.17/lib/libc/gen/pututxline.c Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/lib/libc/gen/pututxline.c Fri Oct 22 20:02:18 2010 (r214220) @@ -65,7 +65,7 @@ futx_open(const char *file) return (fp); } -static void +static int utx_active_add(const struct futx *fu) { FILE *fp; @@ -78,7 +78,7 @@ utx_active_add(const struct futx *fu) */ fp = futx_open(_PATH_UTX_ACTIVE); if (fp == NULL) - return; + return (1); while (fread(&fe, sizeof fe, 1, fp) == 1) { switch (fe.fu_type) { case USER_PROCESS: @@ -110,6 +110,7 @@ utx_active_add(const struct futx *fu) exact: fwrite(fu, sizeof *fu, 1, fp); fclose(fp); + return (0); } static int @@ -123,7 +124,7 @@ utx_active_remove(struct futx *fu) */ fp = futx_open(_PATH_UTX_ACTIVE); if (fp == NULL) - return (0); + return (1); while (fread(&fe, sizeof fe, 1, fp) == 1) { switch (fe.fu_type) { case USER_PROCESS: @@ -151,7 +152,7 @@ utx_active_purge(void) truncate(_PATH_UTX_ACTIVE, 0); } -static void +static int utx_lastlogin_add(const struct futx *fu) { FILE *fp; @@ -164,7 +165,7 @@ utx_lastlogin_add(const struct futx *fu) */ fp = futx_open(_PATH_UTX_LASTLOGIN); if (fp == NULL) - return; + return (1); while (fread(&fe, sizeof fe, 1, fp) == 1) { if (strncmp(fu->fu_user, fe.fu_user, sizeof fe.fu_user) != 0) continue; @@ -175,6 +176,7 @@ utx_lastlogin_add(const struct futx *fu) } fwrite(fu, sizeof *fu, 1, fp); fclose(fp); + return (0); } static void @@ -197,7 +199,7 @@ utx_lastlogin_upgrade(void) _close(fd); } -static void +static int utx_log_add(const struct futx *fu) { int fd; @@ -219,15 +221,17 @@ utx_log_add(const struct futx *fu) fd = _open(_PATH_UTX_LOG, O_CREAT|O_WRONLY|O_APPEND, 0644); if (fd < 0) - return; + return (1); _writev(fd, vec, 2); _close(fd); + return (0); } struct utmpx * pututxline(const struct utmpx *utmpx) { struct futx fu; + int bad = 0; utx_to_futx(utmpx, &fu); @@ -241,16 +245,21 @@ pututxline(const struct utmpx *utmpx) case NEW_TIME: break; case USER_PROCESS: - utx_active_add(&fu); - utx_lastlogin_add(&fu); + bad |= utx_active_add(&fu); + bad |= utx_lastlogin_add(&fu); break; #if 0 /* XXX: Are these records of any use to us? */ case INIT_PROCESS: case LOGIN_PROCESS: - utx_active_add(&fu); + bad |= utx_active_add(&fu); break; #endif case DEAD_PROCESS: + /* + * In case writing a logout entry fails, never attempt + * to write it to utx.log. The logout entry's ut_id + * might be invalid. + */ if (utx_active_remove(&fu) != 0) return (NULL); break; @@ -258,6 +267,6 @@ pututxline(const struct utmpx *utmpx) return (NULL); } - utx_log_add(&fu); - return (futx_to_utx(&fu)); + bad |= utx_log_add(&fu); + return (bad ? NULL : futx_to_utx(&fu)); } Modified: projects/binutils-2.17/lib/libc/include/namespace.h ============================================================================== --- projects/binutils-2.17/lib/libc/include/namespace.h Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/lib/libc/include/namespace.h Fri Oct 22 20:02:18 2010 (r214220) @@ -177,10 +177,8 @@ #define pthread_rwlock_unlock _pthread_rwlock_unlock #define pthread_rwlock_wrlock _pthread_rwlock_wrlock #define pthread_rwlockattr_destroy _pthread_rwlockattr_destroy -#define pthread_rwlockattr_getkind_np _pthread_rwlockattr_getkind_np #define pthread_rwlockattr_getpshared _pthread_rwlockattr_getpshared #define pthread_rwlockattr_init _pthread_rwlockattr_init -#define pthread_rwlockattr_setkind_np _pthread_rwlockattr_setkind_np #define pthread_rwlockattr_setpshared _pthread_rwlockattr_setpshared #define pthread_self _pthread_self #define pthread_set_name_np _pthread_set_name_np Modified: projects/binutils-2.17/lib/libc/include/un-namespace.h ============================================================================== --- projects/binutils-2.17/lib/libc/include/un-namespace.h Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/lib/libc/include/un-namespace.h Fri Oct 22 20:02:18 2010 (r214220) @@ -158,10 +158,8 @@ #undef pthread_rwlock_unlock #undef pthread_rwlock_wrlock #undef pthread_rwlockattr_destroy -#undef pthread_rwlockattr_getkind_np #undef pthread_rwlockattr_getpshared #undef pthread_rwlockattr_init -#undef pthread_rwlockattr_setkind_np #undef pthread_rwlockattr_setpshared #undef pthread_self #undef pthread_set_name_np Modified: projects/binutils-2.17/lib/libc/stdlib/strtonum.3 ============================================================================== --- projects/binutils-2.17/lib/libc/stdlib/strtonum.3 Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/lib/libc/stdlib/strtonum.3 Fri Oct 22 20:02:18 2010 (r214220) @@ -12,7 +12,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.\" $OpenBSD: strtonum.3,v 1.12 2005/10/26 11:37:58 jmc Exp $ +.\" $OpenBSD: strtonum.3,v 1.13 2006/04/25 05:15:42 tedu Exp $ .\" $FreeBSD$ .\" .Dd April 29, 2004 @@ -23,7 +23,6 @@ .Nd "reliably convert string value to an integer" .Sh SYNOPSIS .In stdlib.h -.In limits.h .Ft long long .Fo strtonum .Fa "const char *nptr" Modified: projects/binutils-2.17/lib/libc/sys/getpriority.2 ============================================================================== --- projects/binutils-2.17/lib/libc/sys/getpriority.2 Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/lib/libc/sys/getpriority.2 Fri Oct 22 20:02:18 2010 (r214220) @@ -129,10 +129,10 @@ or .Dv PRIO_USER . .El .Pp -.Bl -tag -width Er In addition to the errors indicated above, .Fn setpriority will fail if: +.Bl -tag -width Er .It Bq Er EPERM A process was located, but neither its effective nor real user ID matched the effective user ID of the caller. Modified: projects/binutils-2.17/lib/libc/sys/pathconf.2 ============================================================================== --- projects/binutils-2.17/lib/libc/sys/pathconf.2 Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/lib/libc/sys/pathconf.2 Fri Oct 22 20:02:18 2010 (r214220) @@ -89,7 +89,6 @@ returns information about the file the l The available values are as follows: .Pp .Bl -tag -width 6n -.Pp .It Li _PC_LINK_MAX The maximum file link count. .It Li _PC_MAX_CANON @@ -234,11 +233,11 @@ Too many symbolic links were encountered An I/O error occurred while reading from or writing to the file system. .El .Pp -.Bl -tag -width Er The .Fn fpathconf system call will fail if: +.Bl -tag -width Er .It Bq Er EBADF The .Fa fd Modified: projects/binutils-2.17/lib/libc/sys/stat.2 ============================================================================== --- projects/binutils-2.17/lib/libc/sys/stat.2 Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/lib/libc/sys/stat.2 Fri Oct 22 20:02:18 2010 (r214220) @@ -345,10 +345,10 @@ represented correctly in the structure p .Fa sb . .El .Pp -.Bl -tag -width Er The .Fn fstat system call will fail if: +.Bl -tag -width Er .It Bq Er EBADF The .Fa fd Modified: projects/binutils-2.17/lib/libgeom/geom_ctl.c ============================================================================== --- projects/binutils-2.17/lib/libgeom/geom_ctl.c Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/lib/libgeom/geom_ctl.c Fri Oct 22 20:02:18 2010 (r214220) @@ -54,7 +54,7 @@ static char nomemmsg[] = "Could not allo void gctl_dump(struct gctl_req *req, FILE *f) { - u_int i; + unsigned int i; int j; struct gctl_req_arg *ap; @@ -126,10 +126,8 @@ gctl_check_alloc(struct gctl_req *req, v struct gctl_req * gctl_get_handle(void) { - struct gctl_req *rp; - rp = calloc(1, sizeof *rp); - return (rp); + return (calloc(1, sizeof(struct gctl_req))); } /* @@ -152,8 +150,9 @@ gctl_new_arg(struct gctl_req *req) return (ap); } -void -gctl_ro_param(struct gctl_req *req, const char *name, int len, const void* value) +static void +gctl_param_add(struct gctl_req *req, const char *name, int len, void *value, + int flag) { struct gctl_req_arg *ap; @@ -167,8 +166,8 @@ gctl_ro_param(struct gctl_req *req, cons if (ap->name == NULL) return; ap->nlen = strlen(ap->name) + 1; - ap->value = __DECONST(void *, value); - ap->flag = GCTL_PARAM_RD; + ap->value = value; + ap->flag = flag; if (len >= 0) ap->len = len; else if (len < 0) { @@ -178,26 +177,17 @@ gctl_ro_param(struct gctl_req *req, cons } void -gctl_rw_param(struct gctl_req *req, const char *name, int len, void* value) +gctl_ro_param(struct gctl_req *req, const char *name, int len, const void* value) { - struct gctl_req_arg *ap; - if (req == NULL || req->error != NULL) - return; - ap = gctl_new_arg(req); - if (ap == NULL) - return; - ap->name = strdup(name); - gctl_check_alloc(req, ap->name); - if (ap->name == NULL) - return; - ap->nlen = strlen(ap->name) + 1; - ap->value = value; - ap->flag = GCTL_PARAM_RW; - if (len >= 0) - ap->len = len; - else if (len < 0) - ap->len = strlen(value) + 1; + gctl_param_add(req, name, len, __DECONST(void *, value), GCTL_PARAM_RD); +} + +void +gctl_rw_param(struct gctl_req *req, const char *name, int len, void *value) +{ + + gctl_param_add(req, name, len, value, GCTL_PARAM_RW); } const char * @@ -233,7 +223,7 @@ gctl_issue(struct gctl_req *req) void gctl_free(struct gctl_req *req) { - u_int i; + unsigned int i; if (req == NULL) return; Modified: projects/binutils-2.17/lib/libthr/pthread.map ============================================================================== --- projects/binutils-2.17/lib/libthr/pthread.map Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/lib/libthr/pthread.map Fri Oct 22 20:02:18 2010 (r214220) @@ -318,9 +318,7 @@ FBSDprivate_1.0 { _pthread_rwlock_wrlock; _pthread_rwlockattr_destroy; _pthread_rwlockattr_getpshared; - _pthread_rwlockattr_getkind_np; _pthread_rwlockattr_init; - _pthread_rwlockattr_setkind_np; _pthread_rwlockattr_setpshared; _pthread_self; _pthread_set_name_np; @@ -403,8 +401,6 @@ FBSD_1.1 { FBSD_1.2 { openat; - pthread_rwlockattr_getkind_np; - pthread_rwlockattr_setkind_np; setcontext; swapcontext; }; Modified: projects/binutils-2.17/lib/libthr/thread/thr_private.h ============================================================================== --- projects/binutils-2.17/lib/libthr/thread/thr_private.h Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/lib/libthr/thread/thr_private.h Fri Oct 22 20:02:18 2010 (r214220) @@ -285,14 +285,11 @@ struct pthread_prio { struct pthread_rwlockattr { int pshared; - int kind; }; struct pthread_rwlock { struct urwlock lock; struct pthread *owner; - int recurse; - int kind; }; /* Modified: projects/binutils-2.17/lib/libthr/thread/thr_rwlock.c ============================================================================== --- projects/binutils-2.17/lib/libthr/thread/thr_rwlock.c Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/lib/libthr/thread/thr_rwlock.c Fri Oct 22 20:02:18 2010 (r214220) @@ -63,19 +63,13 @@ __weak_reference(_pthread_rwlock_timedwr */ static int -rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr) +rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr __unused) { pthread_rwlock_t prwlock; prwlock = (pthread_rwlock_t)calloc(1, sizeof(struct pthread_rwlock)); if (prwlock == NULL) return (ENOMEM); - if (attr != NULL) - prwlock->kind = (*attr)->kind; - else - prwlock->kind = PTHREAD_RWLOCK_DEFAULT_NP; - if (prwlock->kind == PTHREAD_RWLOCK_PREFER_READER_NP) - prwlock->lock.rw_flags |= URWLOCK_PREFER_READER; *rwlock = prwlock; return (0); } @@ -118,7 +112,7 @@ init_static(struct pthread *thread, pthr } int -_pthread_rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr) +_pthread_rwlock_init (pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr) { *rwlock = NULL; return (rwlock_init(rwlock, attr)); @@ -266,14 +260,6 @@ rwlock_wrlock_common (pthread_rwlock_t * CHECK_AND_INIT_RWLOCK - if (__predict_false(prwlock->owner == curthread)) { - if (__predict_false( - prwlock->kind == PTHREAD_RWLOCK_PREFER_WRITER_NP)) { - prwlock->recurse++; - return (0); - } - } - /* * POSIX said the validity of the abstimeout parameter need * not be checked if the lock can be immediately acquired. @@ -349,13 +335,6 @@ _pthread_rwlock_unlock (pthread_rwlock_t if (state & URWLOCK_WRITE_OWNER) { if (__predict_false(prwlock->owner != curthread)) return (EPERM); - if (__predict_false( - prwlock->kind == PTHREAD_RWLOCK_PREFER_WRITER_NP)) { - if (prwlock->recurse > 0) { - prwlock->recurse--; - return (0); - } - } prwlock->owner = NULL; } Modified: projects/binutils-2.17/lib/libthr/thread/thr_rwlockattr.c ============================================================================== --- projects/binutils-2.17/lib/libthr/thread/thr_rwlockattr.c Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/lib/libthr/thread/thr_rwlockattr.c Fri Oct 22 20:02:18 2010 (r214220) @@ -36,10 +36,8 @@ __weak_reference(_pthread_rwlockattr_destroy, pthread_rwlockattr_destroy); __weak_reference(_pthread_rwlockattr_getpshared, pthread_rwlockattr_getpshared); -__weak_reference(_pthread_rwlockattr_getkind_np, pthread_rwlockattr_getkind_np); __weak_reference(_pthread_rwlockattr_init, pthread_rwlockattr_init); __weak_reference(_pthread_rwlockattr_setpshared, pthread_rwlockattr_setpshared); -__weak_reference(_pthread_rwlockattr_setkind_np, pthread_rwlockattr_setkind_np); int _pthread_rwlockattr_destroy(pthread_rwlockattr_t *rwlockattr) @@ -83,7 +81,6 @@ _pthread_rwlockattr_init(pthread_rwlocka return(ENOMEM); prwlockattr->pshared = PTHREAD_PROCESS_PRIVATE; - prwlockattr->kind = PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP; *rwlockattr = prwlockattr; return(0); @@ -100,22 +97,3 @@ _pthread_rwlockattr_setpshared(pthread_r return(0); } - -int -_pthread_rwlockattr_setkind_np(pthread_rwlockattr_t *attr, int kind) -{ - if (kind != PTHREAD_RWLOCK_PREFER_READER_NP && - kind != PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP && - kind != PTHREAD_RWLOCK_PREFER_WRITER_NP) { - return (EINVAL); - } - (*attr)->kind = kind; - return (0); -} - -int -_pthread_rwlockattr_getkind_np(const pthread_rwlockattr_t *attr, int *kind) -{ - *kind = (*attr)->kind; - return (0); -} Modified: projects/binutils-2.17/libexec/rtld-elf/Makefile ============================================================================== --- projects/binutils-2.17/libexec/rtld-elf/Makefile Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/libexec/rtld-elf/Makefile Fri Oct 22 20:02:18 2010 (r214220) @@ -34,7 +34,6 @@ LDFLAGS+= -shared -Wl,-Bsymbolic DPADD= ${LIBC_PIC} LDADD= -lc_pic -lssp_nonshared -.if ${MACHINE_CPUARCH} != "ia64" .if ${MK_SYMVER} == "yes" LIBCDIR= ${.CURDIR}/../../lib/libc VERSION_DEF= ${LIBCDIR}/Versions.def @@ -48,7 +47,6 @@ ${PROG}: ${VERSION_MAP} SYMBOL_MAPS+= ${.CURDIR}/${RTLD_ARCH}/Symbol.map .endif .endif -.endif .sinclude "${.CURDIR}/${RTLD_ARCH}/Makefile.inc" Modified: projects/binutils-2.17/libexec/rtld-elf/ia64/reloc.c ============================================================================== --- projects/binutils-2.17/libexec/rtld-elf/ia64/reloc.c Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/libexec/rtld-elf/ia64/reloc.c Fri Oct 22 20:02:18 2010 (r214220) @@ -195,9 +195,22 @@ reloc_non_plt_obj(Obj_Entry *obj_rtld, O int sym_index; def = find_symdef(ELF_R_SYM(rela->r_info), obj, &defobj, - false, cache); - if (def == NULL) - return -1; + true, cache); + if (def == NULL) { + /* + * XXX r_debug_state is problematic and find_symdef() + * returns NULL for it. This probably has something to + * do with symbol versioning (r_debug_state is in the + * symbol map). If we return -1 in that case we abort + * relocating rtld, which typically is fatal. So, for + * now just skip the symbol when we're relocating + * rtld. We don't care about r_debug_state unless we + * are being debugged. + */ + if (obj != obj_rtld) + return -1; + break; + } if (def->st_shndx != SHN_UNDEF) { target = (Elf_Addr)(defobj->relocbase + def->st_value); Modified: projects/binutils-2.17/sbin/fsirand/fsirand.8 ============================================================================== --- projects/binutils-2.17/sbin/fsirand/fsirand.8 Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/sbin/fsirand/fsirand.8 Fri Oct 22 20:02:18 2010 (r214220) @@ -73,8 +73,8 @@ The utility may be used on the root file system in single-user mode but the system should be rebooted via ``reboot -n'' afterwards. .Sh OPTIONS -.Bl -tag -width indent The available options are as follows: +.Bl -tag -width indent .It Fl b Use the default block size (usually 512 bytes) instead of the value gleaned from the disklabel. Modified: projects/binutils-2.17/sbin/geom/class/eli/geli.8 ============================================================================== --- projects/binutils-2.17/sbin/geom/class/eli/geli.8 Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/sbin/geom/class/eli/geli.8 Fri Oct 22 20:02:18 2010 (r214220) @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd September 25, 2010 +.Dd October 20, 2010 .Dt GELI 8 .Os .Sh NAME @@ -119,6 +119,16 @@ utility: .Ar file .Ar prov .Nm +.Cm suspend +.Op Fl v +.Fl a | Ar prov ... +.Nm +.Cm resume +.Op Fl pv +.Op Fl j Ar passfile +.Op Fl k Ar keyfile +.Ar prov +.Nm .Cm resize .Op Fl v .Fl s Ar oldsize @@ -207,6 +217,8 @@ Allows to attach a provider with a rando partitions and temporary file systems. .It Allows to verify data integrity (data authentication). +.It +Allows to suspend and resume encrypted devices. .El .Pp The first argument to @@ -458,6 +470,8 @@ will not be detached even if all keys wi It can be even rescued with the .Cm setkey subcommand. +.Pp +Additional options include: .Bl -tag -width ".Fl a Ar keyno" .It Fl a Destroy all keys (does not need @@ -482,6 +496,8 @@ backup, your data is gone for good. In case the provider was attached with the .Fl r flag, the keys will not be destroyed, only the provider will be detached. +.Pp +Additional options include: .Bl -tag -width ".Fl a" .It Fl a If specified, all currently attached providers will be killed. @@ -490,6 +506,8 @@ If specified, all currently attached pro Backup metadata from the given provider to the given file. .It Cm restore Restore metadata from the given file to the given provider. +.Pp +Additional options include: .Bl -tag -width ".Fl f" .It Fl f Metadata contains the size of the provider to ensure that the correct @@ -508,12 +526,73 @@ through and .Cm restore . .El +.It Cm suspend +Suspend device by waiting for all inflight request to finish, clearing all +sensitive informations (like keys) from the kernel memory and blocking all +further I/O requests until the +.Cm resume +subcommand is executed. +This functionality is useful for eg. laptops - when one wants to suspend a +laptop, one does not want to leave encrypted device attached. +Instead of closing all files and directories opened from a file system placed +on an encrypted device, unmounting the file system and detaching the device, +the +.Cm suspend +subcommand can be used. +Any access to the encrypted device will be blocked until the keys are +recovered through +.Cm resume +subcommand, thus there is no need to close nor unmount anything. +The +.Cm suspend +subcommand does not work with devices created with the +.Cm onetime +subcommand. +Please note that sensitive data might still be present in memory after +suspending encrypted device, because of file system cache, etc. +.Pp +Additional options include: +.Bl -tag -width ".Fl a" +.It Fl a +Suspend all +.Nm +devices. +.El +.It Cm resume +Resume previously suspended device. +The caller must ensure that executing this subcommand won't try to access +suspended device, which will lead to a deadlock. +For example suspending device, which contains file system where the +.Nm +utility is stored is bad idea. +.Pp +Additional options include: +.Bl -tag -width ".Fl j Ar passfile" +.It Fl j Ar passfile +Specifies a file which contains the passphrase or its part. +For more information see the description of the +.Fl J +option for the +.Cm init +subcommand. +.It Fl k Ar keyfile +Specifies a file which contains part of the key. +For more information see the description of the +.Fl K +option for the +.Cm init +subcommand. +.It Fl p +Do not use passphrase as the key component. +.El .It Cm resize Inform .Nm that the provider has been resized. The old metadata block is relocated to the correct position at the end of the provider and the provider size is updated. +.Pp +Additional options include: .Bl -tag -width ".Fl s Ar oldsize" .It Fl s Ar oldsize The size of the provider before it was resized. @@ -746,6 +825,19 @@ prompt: # geli attach da0 Enter passphrase: foobar .Ed +.Pp +Suspend all +.Nm +devices, suspend a laptop, then resume devices one by one after resuming a +laptop: +.Bd -literal -offset indent +# geli suspend -a +# zzz + +# geli resume -p -k keyfile gpt/secret +# geli resume gpt/private +Enter passphrase: +.Ed .Sh ENCRYPTION MODES .Nm supports two encryption modes: Modified: projects/binutils-2.17/sbin/geom/class/eli/geom_eli.c ============================================================================== --- projects/binutils-2.17/sbin/geom/class/eli/geom_eli.c Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/sbin/geom/class/eli/geom_eli.c Fri Oct 22 20:02:18 2010 (r214220) @@ -67,6 +67,7 @@ static void eli_attach(struct gctl_req * static void eli_configure(struct gctl_req *req); static void eli_setkey(struct gctl_req *req); static void eli_delkey(struct gctl_req *req); +static void eli_resume(struct gctl_req *req); static void eli_kill(struct gctl_req *req); static void eli_backup(struct gctl_req *req); static void eli_restore(struct gctl_req *req); @@ -89,6 +90,8 @@ static int eli_backup_create(struct gctl * configure [-bB] prov ... * setkey [-pPv] [-n keyno] [-j passfile] [-J newpassfile] [-k keyfile] [-K newkeyfile] prov * delkey [-afv] [-n keyno] prov + * suspend [-v] -a | prov ... + * resume [-pv] [-j passfile] [-k keyfile] prov * kill [-av] [prov ...] * backup [-v] prov file * restore [-fv] file prov @@ -198,6 +201,22 @@ struct g_command class_commands[] = { }, "[-afv] [-n keyno] prov" }, + { "suspend", G_FLAG_VERBOSE, NULL, + { + { 'a', "all", NULL, G_TYPE_BOOL }, + G_OPT_SENTINEL + }, + "[-v] -a | prov ..." + }, + { "resume", G_FLAG_VERBOSE, eli_main, + { + { 'j', "passfile", G_VAL_OPTIONAL, G_TYPE_STRING | G_TYPE_MULTI }, + { 'k', "keyfile", G_VAL_OPTIONAL, G_TYPE_STRING | G_TYPE_MULTI }, + { 'p', "nopassphrase", NULL, G_TYPE_BOOL }, + G_OPT_SENTINEL + }, + "[-pv] [-j passfile] [-k keyfile] prov" + }, { "kill", G_FLAG_VERBOSE, eli_main, { { 'a', "all", NULL, G_TYPE_BOOL }, @@ -280,6 +299,8 @@ eli_main(struct gctl_req *req, unsigned eli_setkey(req); else if (strcmp(name, "delkey") == 0) eli_delkey(req); + else if (strcmp(name, "resume") == 0) + eli_resume(req); else if (strcmp(name, "kill") == 0) eli_kill(req); else if (strcmp(name, "backup") == 0) @@ -1118,6 +1139,44 @@ eli_delkey(struct gctl_req *req) eli_delkey_detached(req, prov); } +static void +eli_resume(struct gctl_req *req) +{ + struct g_eli_metadata md; + unsigned char key[G_ELI_USERKEYLEN]; + const char *prov; + off_t mediasize; + int nargs; + + nargs = gctl_get_int(req, "nargs"); + if (nargs != 1) { + gctl_error(req, "Invalid number of arguments."); + return; + } + prov = gctl_get_ascii(req, "arg0"); + + if (eli_metadata_read(req, prov, &md) == -1) + return; + + mediasize = g_get_mediasize(prov); + if (md.md_provsize != (uint64_t)mediasize) { + gctl_error(req, "Provider size mismatch."); + return; + } + + if (eli_genkey(req, &md, key, false) == NULL) { + bzero(key, sizeof(key)); + return; + } + + gctl_ro_param(req, "key", sizeof(key), key); + if (gctl_issue(req) == NULL) { + if (verbose) + printf("Resumed %s.\n", prov); + } + bzero(key, sizeof(key)); +} + static int eli_trash_metadata(struct gctl_req *req, const char *prov, int fd, off_t offset) { Modified: projects/binutils-2.17/sbin/hastd/hooks.c ============================================================================== --- projects/binutils-2.17/sbin/hastd/hooks.c Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/sbin/hastd/hooks.c Fri Oct 22 20:02:18 2010 (r214220) @@ -88,32 +88,19 @@ static void hook_free(struct hookproc *h static void descriptors(void) { - long maxfd; int fd; /* - * Close all descriptors. + * Close all (or almost all) descriptors. */ - maxfd = sysconf(_SC_OPEN_MAX); - if (maxfd < 0) { - pjdlog_errno(LOG_WARNING, "sysconf(_SC_OPEN_MAX) failed"); - maxfd = 1024; - } - for (fd = 0; fd <= maxfd; fd++) { - switch (fd) { - case STDIN_FILENO: - case STDOUT_FILENO: - case STDERR_FILENO: - if (pjdlog_mode_get() == PJDLOG_MODE_STD) - break; - /* FALLTHROUGH */ - default: - close(fd); - break; - } - } - if (pjdlog_mode_get() == PJDLOG_MODE_STD) + if (pjdlog_mode_get() == PJDLOG_MODE_STD) { + closefrom(MAX(MAX(STDIN_FILENO, STDOUT_FILENO), + STDERR_FILENO) + 1); return; + } + + closefrom(0); + /* * Redirect stdin, stdout and stderr to /dev/null. */ Modified: projects/binutils-2.17/sbin/ipfw/ipfw.8 ============================================================================== --- projects/binutils-2.17/sbin/ipfw/ipfw.8 Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/sbin/ipfw/ipfw.8 Fri Oct 22 20:02:18 2010 (r214220) @@ -1009,11 +1009,11 @@ The second format with multiple addresses) is provided for convenience only and its use is discouraged. .It Ar addr : Oo Cm not Oc Bro -.Bl -tag -width indent .Cm any | me | me6 | .Cm table Ns Pq Ar number Ns Op , Ns Ar value .Ar | addr-list | addr-set .Brc +.Bl -tag -width indent .It Cm any matches any IP address. .It Cm me @@ -2176,7 +2176,6 @@ Finally, the following parameters can be pipes and queues: .Pp .Bl -tag -width XXXX -compact -.Pp .It Cm buckets Ar hash-table-size Specifies the size of the hash table used for storing the various queues. Modified: projects/binutils-2.17/sbin/restore/restore.8 ============================================================================== --- projects/binutils-2.17/sbin/restore/restore.8 Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/sbin/restore/restore.8 Fri Oct 22 20:02:18 2010 (r214220) @@ -412,7 +412,6 @@ Most checks are self-explanatory or can Common errors are given below. .Pp .Bl -tag -width Ds -compact -.Pp .It : not found on tape The specified file name was listed in the tape directory, but was not found on the tape. Modified: projects/binutils-2.17/share/man/man4/iscsi_initiator.4 ============================================================================== --- projects/binutils-2.17/share/man/man4/iscsi_initiator.4 Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/share/man/man4/iscsi_initiator.4 Fri Oct 22 20:02:18 2010 (r214220) @@ -90,8 +90,8 @@ see The .Nm driver creates the following: -.Bl -tag -width ".Pa /dev/iscsi%dxx" -compact .Pp +.Bl -tag -width ".Pa /dev/iscsi%dxx" -compact .It Pa /dev/iscsi used to create new sessions. .It Pa /dev/iscsi%d Modified: projects/binutils-2.17/share/man/man5/device.hints.5 ============================================================================== --- projects/binutils-2.17/share/man/man5/device.hints.5 Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/share/man/man5/device.hints.5 Fri Oct 22 20:02:18 2010 (r214220) @@ -161,7 +161,7 @@ hint.acpi.0.disabled="1" .Sh SEE ALSO .Xr kenv 1 , .Xr loader.conf 5 , -.Xr loader 8, +.Xr loader 8 , .Xr resource_int_value 9 . .Sh HISTORY The Modified: projects/binutils-2.17/share/man/man5/elf.5 ============================================================================== --- projects/binutils-2.17/share/man/man5/elf.5 Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/share/man/man5/elf.5 Fri Oct 22 20:02:18 2010 (r214220) @@ -462,8 +462,8 @@ member in the total struct. .It Dv p_type This member of the Phdr struct tells what kind of segment this array element describes or how to interpret the array element's information. -.Bl -tag -width "PT_DYNAMIC" -compact .Pp +.Bl -tag -width "PT_DYNAMIC" -compact .It Dv PT_NULL The array element is unused and the other members' values are undefined. This lets the program header have ignored entries. Modified: projects/binutils-2.17/share/man/man9/Makefile ============================================================================== --- projects/binutils-2.17/share/man/man9/Makefile Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/share/man/man9/Makefile Fri Oct 22 20:02:18 2010 (r214220) @@ -324,7 +324,7 @@ MAN= accept_filter.9 \ vm_page_lookup.9 \ vm_page_protect.9 \ vm_page_rename.9 \ - vm_page_sleep_busy.9 \ + vm_page_sleep_if_busy.9 \ vm_page_wakeup.9 \ vm_page_wire.9 \ vm_page_zero_fill.9 \ Modified: projects/binutils-2.17/share/man/man9/VOP_GETPAGES.9 ============================================================================== --- projects/binutils-2.17/share/man/man9/VOP_GETPAGES.9 Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/share/man/man9/VOP_GETPAGES.9 Fri Oct 22 20:02:18 2010 (r214220) @@ -41,9 +41,9 @@ .In sys/vnode.h .In vm/vm.h .Ft int -.Fn VOP_GETPAGES "struct vnode *vp" "vm_page_t *m" "int count" "int reqpage" "vm_ooffset_t offset" +.Fn VOP_GETPAGES "struct vnode *vp" "vm_page_t *ma" "int count" "int reqpage" "vm_ooffset_t offset" .Ft int -.Fn VOP_PUTPAGES "struct vnode *vp" "vm_page_t *m" "int count" "int sync" "int *rtvals" "vm_ooffset_t offset" +.Fn VOP_PUTPAGES "struct vnode *vp" "vm_page_t *ma" "int count" "int sync" "int *rtvals" "vm_ooffset_t offset" .Sh DESCRIPTION The .Fn VOP_GETPAGES @@ -66,11 +66,11 @@ The arguments are: .Bl -tag -width reqpage .It Fa vp The file to access. -.It Fa m -Pointer to the first element of an array of contiguous pages representing a +.It Fa ma +Pointer to the first element of an array of pages representing a contiguous region of the file to be read or written. .It Fa count -The number of pages in the array. +The number of bytes that should be read into the pages of the array. .It Fa sync .Dv VM_PAGER_PUT_SYNC if the write should be synchronous. @@ -123,22 +123,27 @@ The page was not handled by this request The .Fn VOP_GETPAGES method is expected to release any pages in -.Fa m +.Fa ma that it does not successfully handle, by calling .Xr vm_page_free 9 . When it succeeds, .Fn VOP_GETPAGES -must set the valid bits appropriately, clear the dirty bit -(using -.Xr vm_page_undirty 9 ) , -either activate the page (if its wanted bit is set) +must set the valid bits appropriately. +.Fn VOP_GETPAGES +must keep +.Fa reqpage +busy. +It must unbusy all other successfully handled pages and put them +on appropriate page queue(s). +For example, +.Fn VOP_GETPAGES +may either activate a page (if its wanted bit is set) or deactivate it (otherwise), and finally call .Xr vm_page_wakeup 9 -to arouse any threads currently waiting for the page to be faulted in, -for each page read. +to arouse any threads currently waiting for the page to be faulted in. .Sh RETURN VALUES If it successfully reads -.Fa m[reqpage] , +.Fa ma[reqpage] , .Fn VOP_GETPAGES returns .Dv VM_PAGER_OK ; Modified: projects/binutils-2.17/share/man/man9/sysctl_add_oid.9 ============================================================================== --- projects/binutils-2.17/share/man/man9/sysctl_add_oid.9 Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/share/man/man9/sysctl_add_oid.9 Fri Oct 22 20:02:18 2010 (r214220) @@ -411,8 +411,8 @@ and to delete them later in orderly fash .Pp There is a set of macros defined that helps to create oids of given type. -.Bl -tag -width SYSCTL_ADD_STRINGXX They are as follows: +.Bl -tag -width SYSCTL_ADD_STRINGXX .It Fn SYSCTL_ADD_OID creates a raw oid. This macro is functionally equivalent to the Modified: projects/binutils-2.17/share/man/man9/vm_page_io.9 ============================================================================== --- projects/binutils-2.17/share/man/man9/vm_page_io.9 Fri Oct 22 19:30:56 2010 (r214219) +++ projects/binutils-2.17/share/man/man9/vm_page_io.9 Fri Oct 22 20:02:18 2010 (r214220) @@ -52,9 +52,9 @@ function lowers the busy count on the pa count is zero, a .Xr wakeup 9 will be issued if the page has been marked -.Dv PG_WANTED . +.Dv VPO_WANTED . A page is typically marked -.Dv PG_WANTED +.Dv VPO_WANTED by a thread to register its interest in the page to either complete I/O or becoming available for general use. .Sh AUTHORS Copied: projects/binutils-2.17/share/man/man9/vm_page_sleep_if_busy.9 (from r214219, head/share/man/man9/vm_page_sleep_if_busy.9) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/binutils-2.17/share/man/man9/vm_page_sleep_if_busy.9 Fri Oct 22 20:02:18 2010 (r214220, copy of r214219, head/share/man/man9/vm_page_sleep_if_busy.9) @@ -0,0 +1,68 @@ +.\" +.\" Copyright (C) 2001 Chad David . All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-projects@FreeBSD.ORG Fri Oct 22 20:43:38 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02AD8106564A; Fri, 22 Oct 2010 20:43:38 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E65A78FC12; Fri, 22 Oct 2010 20:43:37 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9MKhbBN065619; Fri, 22 Oct 2010 20:43:37 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9MKhbFU065617; Fri, 22 Oct 2010 20:43:37 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010222043.o9MKhbFU065617@svn.freebsd.org> From: Dimitry Andric Date: Fri, 22 Oct 2010 20:43:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214222 - projects/binutils-2.17/gnu/usr.bin/cc/cc_tools X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 20:43:38 -0000 Author: dim Date: Fri Oct 22 20:43:37 2010 New Revision: 214222 URL: http://svn.freebsd.org/changeset/base/214222 Log: In case of powerpc64, enable HAVE_LD_NO_DOT_SYMS in gcc's auto-host.h. Requested by: nwhitehorn Modified: projects/binutils-2.17/gnu/usr.bin/cc/cc_tools/auto-host.h Modified: projects/binutils-2.17/gnu/usr.bin/cc/cc_tools/auto-host.h ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/cc/cc_tools/auto-host.h Fri Oct 22 20:13:45 2010 (r214221) +++ projects/binutils-2.17/gnu/usr.bin/cc/cc_tools/auto-host.h Fri Oct 22 20:43:37 2010 (r214222) @@ -891,7 +891,9 @@ /* Define if your PowerPC64 linker only needs function descriptor syms. */ #ifndef USED_FOR_TARGET -/* #undef HAVE_LD_NO_DOT_SYMS */ +# ifdef __powerpc64_ +# define HAVE_LD_NO_DOT_SYMS 1 +# endif #endif From owner-svn-src-projects@FreeBSD.ORG Fri Oct 22 20:46:08 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4860106564A; Fri, 22 Oct 2010 20:46:08 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B18238FC08; Fri, 22 Oct 2010 20:46:08 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9MKk8xU065727; Fri, 22 Oct 2010 20:46:08 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9MKk8Ip065713; Fri, 22 Oct 2010 20:46:08 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201010222046.o9MKk8Ip065713@svn.freebsd.org> From: Dimitry Andric Date: Fri, 22 Oct 2010 20:46:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214223 - in projects/binutils-2.17/gnu/usr.bin/binutils: addr2line as ld libbfd libbinutils libiberty nm objcopy objdump readelf size strings strip X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 20:46:08 -0000 Author: dim Date: Fri Oct 22 20:46:08 2010 New Revision: 214223 URL: http://svn.freebsd.org/changeset/base/214223 Log: Most of binutils now compiles at WARNS=3, except for libiberty and libbfd, which still need WARNS=2. Modified: projects/binutils-2.17/gnu/usr.bin/binutils/addr2line/Makefile projects/binutils-2.17/gnu/usr.bin/binutils/as/Makefile projects/binutils-2.17/gnu/usr.bin/binutils/ld/Makefile projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/Makefile projects/binutils-2.17/gnu/usr.bin/binutils/libiberty/Makefile projects/binutils-2.17/gnu/usr.bin/binutils/nm/Makefile projects/binutils-2.17/gnu/usr.bin/binutils/objcopy/Makefile projects/binutils-2.17/gnu/usr.bin/binutils/objdump/Makefile projects/binutils-2.17/gnu/usr.bin/binutils/readelf/Makefile projects/binutils-2.17/gnu/usr.bin/binutils/size/Makefile projects/binutils-2.17/gnu/usr.bin/binutils/strings/Makefile projects/binutils-2.17/gnu/usr.bin/binutils/strip/Makefile Modified: projects/binutils-2.17/gnu/usr.bin/binutils/addr2line/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/addr2line/Makefile Fri Oct 22 20:43:37 2010 (r214222) +++ projects/binutils-2.17/gnu/usr.bin/binutils/addr2line/Makefile Fri Oct 22 20:46:08 2010 (r214223) @@ -6,7 +6,6 @@ PROG= addr2line SRCS= addr2line.c -WARNS?= 2 CFLAGS+= -D_GNU_SOURCE CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils CFLAGS+= -I${SRCDIR}/binutils Modified: projects/binutils-2.17/gnu/usr.bin/binutils/as/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/as/Makefile Fri Oct 22 20:43:37 2010 (r214222) +++ projects/binutils-2.17/gnu/usr.bin/binutils/as/Makefile Fri Oct 22 20:46:08 2010 (r214223) @@ -3,8 +3,6 @@ # BINDIR .include "${.CURDIR}/../../Makefile.inc" -WARNS?= 2 -NO_WERROR= .include "${.CURDIR}/../Makefile.inc0" .PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config Modified: projects/binutils-2.17/gnu/usr.bin/binutils/ld/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/ld/Makefile Fri Oct 22 20:43:37 2010 (r214222) +++ projects/binutils-2.17/gnu/usr.bin/binutils/ld/Makefile Fri Oct 22 20:46:08 2010 (r214223) @@ -26,7 +26,6 @@ SRCS+= ldcref.c \ lexsup.c \ mri.c -WARNS?= 0 # ldemul.h problem (`struct option' declared inside parameter list) CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\" CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\" CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\" Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile Fri Oct 22 20:43:37 2010 (r214222) +++ projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile Fri Oct 22 20:46:08 2010 (r214223) @@ -41,7 +41,6 @@ SRCS+= archive.c \ targets.c \ targmatch.h \ tekhex.c -WARNS?= 0 .if (${TARGET_ARCH} == "ia64" || ${TARGET_ARCH} == "sparc64") WARNS?= 2 .endif Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/Makefile Fri Oct 22 20:43:37 2010 (r214222) +++ projects/binutils-2.17/gnu/usr.bin/binutils/libbinutils/Makefile Fri Oct 22 20:46:08 2010 (r214223) @@ -23,7 +23,6 @@ SRCS+= arlex.l \ unwind-ia64.c \ version.c \ wrstabs.c -WARNS?= 0 CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\" CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\" CFLAGS+= -D_GNU_SOURCE Modified: projects/binutils-2.17/gnu/usr.bin/binutils/libiberty/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/libiberty/Makefile Fri Oct 22 20:43:37 2010 (r214222) +++ projects/binutils-2.17/gnu/usr.bin/binutils/libiberty/Makefile Fri Oct 22 20:46:08 2010 (r214223) @@ -34,7 +34,7 @@ SRCS= argv.c \ # The following files are needed by gdb(1) SRCS+= splay-tree.c -WARNS?= 1 +WARNS?= 2 CFLAGS+= -DHAVE_CONFIG_H INTERNALLIB= Modified: projects/binutils-2.17/gnu/usr.bin/binutils/nm/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/nm/Makefile Fri Oct 22 20:43:37 2010 (r214222) +++ projects/binutils-2.17/gnu/usr.bin/binutils/nm/Makefile Fri Oct 22 20:46:08 2010 (r214223) @@ -6,7 +6,6 @@ PROG= nm SRCS= nm.c -WARNS?= 2 CFLAGS+= -D_GNU_SOURCE CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils CFLAGS+= -I${SRCDIR}/bfd Modified: projects/binutils-2.17/gnu/usr.bin/binutils/objcopy/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/objcopy/Makefile Fri Oct 22 20:43:37 2010 (r214222) +++ projects/binutils-2.17/gnu/usr.bin/binutils/objcopy/Makefile Fri Oct 22 20:46:08 2010 (r214223) @@ -6,7 +6,6 @@ PROG= objcopy SRCS= objcopy.c not-strip.c -WARNS?= 2 CFLAGS+= -D_GNU_SOURCE CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils CFLAGS+= -I${SRCDIR}/binutils -I${SRCDIR}/bfd Modified: projects/binutils-2.17/gnu/usr.bin/binutils/objdump/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/objdump/Makefile Fri Oct 22 20:43:37 2010 (r214222) +++ projects/binutils-2.17/gnu/usr.bin/binutils/objdump/Makefile Fri Oct 22 20:46:08 2010 (r214223) @@ -6,7 +6,6 @@ PROG= objdump SRCS= objdump.c prdbg.c -WARNS?= 1 CFLAGS+= -D_GNU_SOURCE CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils CFLAGS+= -I${SRCDIR}/binutils Modified: projects/binutils-2.17/gnu/usr.bin/binutils/readelf/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/readelf/Makefile Fri Oct 22 20:43:37 2010 (r214222) +++ projects/binutils-2.17/gnu/usr.bin/binutils/readelf/Makefile Fri Oct 22 20:46:08 2010 (r214223) @@ -9,7 +9,6 @@ BINDIR=/usr/bin PROG= readelf SRCS= ${PROG}.c -WARNS?= 0 CFLAGS+= -D_GNU_SOURCE CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils -I${SRCDIR}/binutils Modified: projects/binutils-2.17/gnu/usr.bin/binutils/size/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/size/Makefile Fri Oct 22 20:43:37 2010 (r214222) +++ projects/binutils-2.17/gnu/usr.bin/binutils/size/Makefile Fri Oct 22 20:46:08 2010 (r214223) @@ -6,7 +6,6 @@ PROG= size SRCS= size.c -WARNS?= 2 CFLAGS+= -D_GNU_SOURCE CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils CFLAGS+= -I${SRCDIR}/binutils Modified: projects/binutils-2.17/gnu/usr.bin/binutils/strings/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/strings/Makefile Fri Oct 22 20:43:37 2010 (r214222) +++ projects/binutils-2.17/gnu/usr.bin/binutils/strings/Makefile Fri Oct 22 20:46:08 2010 (r214223) @@ -6,7 +6,6 @@ PROG= strings SRCS= strings.c -WARNS?= 2 CFLAGS+= -D_GNU_SOURCE CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils CFLAGS+= -I${SRCDIR}/binutils Modified: projects/binutils-2.17/gnu/usr.bin/binutils/strip/Makefile ============================================================================== --- projects/binutils-2.17/gnu/usr.bin/binutils/strip/Makefile Fri Oct 22 20:43:37 2010 (r214222) +++ projects/binutils-2.17/gnu/usr.bin/binutils/strip/Makefile Fri Oct 22 20:46:08 2010 (r214223) @@ -6,7 +6,6 @@ PROG= strip SRCS= objcopy.c is-strip.c -WARNS?= 2 CFLAGS+= -D_GNU_SOURCE CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils CFLAGS+= -I${SRCDIR}/binutils -I${SRCDIR}/bfd