From d5bae09ef985359f224ea5bac7ed83c43aeff314 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 18 Dec 2001 19:03:23 +0000 Subject: [PATCH] 2001-12-18 H.J. Lu * elf.c (_bfd_elf_copy_private_bfd_data): Also copy GP. --- bfd/ChangeLog | 4 ++++ bfd/elf.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b5704e5338..684573078c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,9 @@ 2001-12-18 H.J. Lu + * elf.c (_bfd_elf_copy_private_bfd_data): Also copy GP. + +2001-12-18 H.J. Lu + * elf.c (_bfd_elf_copy_private_bfd_data): Update comments. 2001-12-18 H.J. Lu diff --git a/bfd/elf.c b/bfd/elf.c index 6589bc9ee0..65e108adbd 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -784,7 +784,8 @@ _bfd_elf_merge_sections (abfd, info) return true; } -/* Copy the program header from one object module to another */ +/* Copy the program header and other data from one object module to + another. */ boolean _bfd_elf_copy_private_bfd_data (ibfd, obfd) @@ -799,6 +800,7 @@ _bfd_elf_copy_private_bfd_data (ibfd, obfd) || (elf_elfheader (obfd)->e_flags == elf_elfheader (ibfd)->e_flags)); + elf_gp (obfd) = elf_gp (ibfd); elf_elfheader (obfd)->e_flags = elf_elfheader (ibfd)->e_flags; elf_flags_init (obfd) = true; return true; -- 2.11.0