This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PR binutils/16317: Preserve SHF_INFO_LINK


Hi,

This patch preserves SHF_INFO_LINK for objcopy.  OK to install?

Thanks.


H.J.
---
 ChangeLog.pr16317 | 7 +++++++
 bfd/elf.c         | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 ChangeLog.pr16317

diff --git a/ChangeLog.pr16317 b/ChangeLog.pr16317
new file mode 100644
index 0000000..cc1d863
--- /dev/null
+++ b/ChangeLog.pr16317
@@ -0,0 +1,7 @@
+bfd/
+
+2013-12-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR binutils/16317
+	* elf.c (_bfd_elf_init_private_section_data): Preserve
+	SHF_INFO_LINK.
diff --git a/bfd/elf.c b/bfd/elf.c
index 8df38ee..d177e29 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6416,7 +6416,7 @@ _bfd_elf_init_private_section_data (bfd *ibfd,
 
   /* FIXME: Is this correct for all OS/PROC specific flags?  */
   elf_section_flags (osec) |= (elf_section_flags (isec)
-			       & (SHF_MASKOS | SHF_MASKPROC));
+			       & (SHF_INFO_LINK | SHF_MASKOS | SHF_MASKPROC));
 
   /* Set things up for objcopy and relocatable link.  The output
      SHT_GROUP section will have its elf_next_in_group pointing back
-- 
1.8.3.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]