Silence uninitialized warning on ehdr_start_save
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 15 Jan 2014 15:43:19 +0000 (07:43 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 15 Jan 2014 15:43:19 +0000 (07:43 -0800)
commitf9c316c4d75be236bbaa8464ef803ed2d3859d6d
tree27da23c6a6698c0af9bf64b0ae9f61f6561fdd6c
parentb0a16e66b0391025b04acb79af36d4618379cb14
Silence uninitialized warning on ehdr_start_save

Older GCC, like 4.1/4.2, will issue an uninitialized warning on
ehdr_start_save.  This patch silences by using

struct bfd_link_hash_entry ehdr_start_save = ehdr_start_save;

* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Silence uninitialized warning on ehdr_start_save with older
GCC.
ld/ChangeLog
ld/emultempl/elf32.em