]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb] Handle .TOC. sections during gdb-compile for rs6000 target.
authorWill Schmidt <will_schmidt@vnet.ibm.com>
Thu, 5 Aug 2021 17:46:32 +0000 (12:46 -0500)
committerWill Schmidt <will_schmidt@vnet.ibm.com>
Thu, 5 Aug 2021 17:46:32 +0000 (12:46 -0500)
commitbad23de35435e5663740c6710671c418246c8137
tree759b93f8e170cc60aa38fb80ce1cda9a3daa55cb
parent4b0cf3d6d0ff4a737f8aee2ed388fbc72ba941be
[gdb] Handle .TOC. sections during gdb-compile for rs6000 target.

[gdb] Handle .TOC. sections during gdb-compile for rs6000 target.

  When we encounter a .TOC. symbol in the object we are loading,
we need to associate this with the .toc section in order to
properly resolve other symbols in the object.  IF a .toc section
is not found, iterate the sections until we find one with the
SEC_ALLOC flag.  If that also fails, fall back to using
the *ABS* section, pointed to by bfd_abs_section_ptr.
gdb/compile/compile-object-load.c