NONE Relocations in shared libraries

Michael Morrell morrell@alumni.ucsd.edu
Tue Nov 17 22:44:06 GMT 2020


I sometimes see relocations of type NONE in shared libraries and was wondering what purpose they serve.  They seemed to be
caused by code in a backend relocation function.  For example, for x86-64, in elf_x86_64_relocation_section, there is code:

  if (skip)
    memset(&outrel, 0, sizeof outrel);

  ....

   elf_append_rela(output_bfd, sreloc, &outrel);

which appends a relocation with all bytes 0 to the shared library.   What is this for?

   Michael


More information about the Binutils mailing list