Print this page
8509 ld has a trouble linking c++ code built by GCC 7.1
*** 22,31 ****
--- 22,32 ----
/*
* Copyright (c) 1988 AT&T
* All Rights Reserved
*
* Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2017 RackTop Systems.
*/
/*
* set-up for relocations
*/
*** 2011,2026 ****
* cases:
*
* - It is a non-allocable debug section.
* The GNU ld tests for these by name,
* but we are willing to extend it to
! * any non-allocable section.
* - The target section is excluded from
* sloppy relocations by policy.
*/
if (((ofl->ofl_flags & FLG_OF_VERBOSE) != 0) ||
((is_shdr->sh_flags & SHF_ALLOC) &&
(reject != RLXREL_REJ_TARGET)))
ld_eprintf(ofl, ERR_WARNING,
MSG_INTL(MSG_REL_SLOPCDATNOSYM),
conv_reloc_type(
ifl->ifl_ehdr->e_machine,
--- 2012,2028 ----
* cases:
*
* - It is a non-allocable debug section.
* The GNU ld tests for these by name,
* but we are willing to extend it to
! * any non-allocable/read-only section.
* - The target section is excluded from
* sloppy relocations by policy.
*/
if (((ofl->ofl_flags & FLG_OF_VERBOSE) != 0) ||
((is_shdr->sh_flags & SHF_ALLOC) &&
+ (is_shdr->sh_flags & SHF_WRITE) &&
(reject != RLXREL_REJ_TARGET)))
ld_eprintf(ofl, ERR_WARNING,
MSG_INTL(MSG_REL_SLOPCDATNOSYM),
conv_reloc_type(
ifl->ifl_ehdr->e_machine,