gold/x86: Handle output without PLT
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 20 Jun 2016 19:28:20 +0000 (12:28 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 20 Jun 2016 19:28:32 +0000 (12:28 -0700)
commit8474a88fd23a3c9c33dfc8ded31a9a15e31e7765
tree5c315d56351d5fd8f310aee641a0cba4966419ba
parenta8ecc9fe61d0fdb1f694c5f3fac910802468d43f
gold/x86: Handle output without PLT

If there is no PLT in output, return 0 for first_plt_entry_offset and
plt_entry_size.

PR gold/20245
* i386.cc (Target_i386::first_plt_entry_offset): Return 0 if
plt_ is NULL.
(Target_i386::plt_entry_size): Likewise.
(Target_x86_64<size>::first_plt_entry_offset): Likewise.
(Target_x86_64<size>::plt_entry_size): Likewise.
gold/ChangeLog
gold/i386.cc
gold/x86_64.cc