New "make check" failure on Linux/x86
Alan Modra
amodra@bigpond.net.au
Sun Oct 6 17:13:00 GMT 2002
On Sun, Oct 06, 2002 at 03:50:36PM -0700, H. J. Lu wrote:
> On Sun, Oct 06, 2002 at 10:41:02AM -0700, H. J. Lu wrote:
> Alan, it is due to
>
> #if BFD_VERSION_DATE > 20021005
At the time this code was added, I thought gcc might be fixed to, say,
emit eh_frame data in a section group along with the code. That
doesn't appear to be likely any time soon, so I'm ripping out the
warning.
bfd/ChangeLog
* elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependent
code.
Index: bfd/elflink.h
===================================================================
RCS file: /cvs/src/src/bfd/elflink.h,v
retrieving revision 1.187
diff -u -p -r1.187 elflink.h
--- bfd/elflink.h 23 Sep 2002 10:52:03 -0000 1.187
+++ bfd/elflink.h 7 Oct 2002 00:09:08 -0000
@@ -6815,20 +6815,12 @@ elf_link_input_bfd (finfo, input_bfd)
|| h->root.type == bfd_link_hash_defweak)
&& elf_discarded_section (h->root.u.def.section))
{
-#if BFD_VERSION_DATE < 20031005
if ((o->flags & SEC_DEBUGGING) != 0)
{
-#if BFD_VERSION_DATE > 20021005
- (*finfo->info->callbacks->warning)
- (finfo->info,
- _("warning: relocation against removed section; zeroing"),
- NULL, input_bfd, o, rel->r_offset);
-#endif
BFD_ASSERT (r_symndx != 0);
memset (rel, 0, sizeof (*rel));
}
else
-#endif
{
if (! ((*finfo->info->callbacks->undefined_symbol)
(finfo->info, h->root.root.string,
@@ -6844,23 +6836,15 @@ elf_link_input_bfd (finfo, input_bfd)
if (sec != NULL && elf_discarded_section (sec))
{
-#if BFD_VERSION_DATE < 20031005
if ((o->flags & SEC_DEBUGGING) != 0
|| (sec->flags & SEC_LINK_ONCE) != 0)
{
-#if BFD_VERSION_DATE > 20021005
- (*finfo->info->callbacks->warning)
- (finfo->info,
- _("warning: relocation against removed section"),
- NULL, input_bfd, o, rel->r_offset);
-#endif
BFD_ASSERT (r_symndx != 0);
rel->r_info
= ELF_R_INFO (0, ELF_R_TYPE (rel->r_info));
rel->r_addend = 0;
}
else
-#endif
{
boolean ok;
const char *msg
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list