bfd: avoid a crash when debug_section isn't created in XCOFF
authorClément Chigot <clement.chigot@atos.net>
Thu, 29 Jul 2021 12:22:54 +0000 (14:22 +0200)
committerClément Chigot <clement.chigot@atos.net>
Fri, 30 Jul 2021 06:37:15 +0000 (08:37 +0200)
commit1417c848426871e767342ffbc673198145f4cec7
tree316419fefbc813485123c435dbb04503a891bb8c
parent237877b8183a23ecc889b5c796c210aac9cfb742
bfd: avoid a crash when debug_section isn't created in XCOFF

bfd/
* xcofflink.c (bfd_xcoff_size_dynamic_sections):
Add check to know if debug_section is initialized.
bfd/xcofflink.c