This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][AArch64] Skip IFUNC relocations in debug sections


Hi Szabolcs,

+      if ((input_section->flags & SEC_ALLOC) == 0)
+	{
+	  /* Dynamic relocs are not propagated for SEC_DEBUGGING
+	     sections because such sections are not SEC_ALLOC and
+	     thus ld.so will not process them.  */
+	  if ((input_section->flags & SEC_DEBUGGING) != 0)
+	    return bfd_reloc_ok;
+	  abort ();
+	}
+      else if (h->plt.offset == (bfd_vma) -1)
 
I would much rather that you replaced the call to abort() with calls
to _bfd_error_handler and bfd_set_error  and then return FALSE.  (As
is done further down in the code).  I know that you did not put this
call to abort in in the first place, but since you are fixing up this
bit of code, it would be great to remove the abort at the same time.

Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]