diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2004-10-28 14:55:41 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2004-10-28 14:55:41 +0000 |
commit | bf718458269ad9c76aa2bc7662d939c0589ce6ea (patch) | |
tree | 5f989dfb8edd0e213e62e4c144531838e513fed8 /bfd | |
parent | 044ad7e3d72dacb50a59aa55998122e3cadbb33a (diff) | |
download | gdb-bf718458269ad9c76aa2bc7662d939c0589ce6ea.zip gdb-bf718458269ad9c76aa2bc7662d939c0589ce6ea.tar.gz gdb-bf718458269ad9c76aa2bc7662d939c0589ce6ea.tar.bz2 |
2004-10-28 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (elfNN_ia64_relocate_section): Handle weak
undefined symbols for R_IA64_SECREL32MSB, R_IA64_SECREL32LSB,
R_IA64_SECREL64MSB and R_IA64_SECREL64LSB.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elfxx-ia64.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b228690..b680829 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2004-10-28 H.J. Lu <hongjiu.lu@intel.com> + + * elfxx-ia64.c (elfNN_ia64_relocate_section): Handle weak + undefined symbols for R_IA64_SECREL32MSB, R_IA64_SECREL32LSB, + R_IA64_SECREL64MSB and R_IA64_SECREL64LSB. + 2004-10-28 Kaz Kojima <kkojima@rr.iij4u.or.jp> * elf32-sh.c (tpoff): Take alignment into account. diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index a7d72bf..9ae95d3 100644 --- a/bfd/elfxx-ia64.c +++ b/bfd/elfxx-ia64.c @@ -4340,7 +4340,8 @@ elfNN_ia64_relocate_section (output_bfd, info, input_bfd, input_section, case R_IA64_SECREL64LSB: /* Make output-section relative to section where the symbol is defined. PR 475 */ - value -= sym_sec->output_section->vma; + if (sym_sec) + value -= sym_sec->output_section->vma; r = elfNN_ia64_install_value (hit_addr, value, r_type); break; |