This is the mail archive of the binutils@sources.redhat.com 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]

-z combreloc


Hello,
   Debian is preparing to enable -z combreloc
in their binutils 2.11.92.0.5 packages. On Debian
ppc sid the -z combreloc enabled binutils builds
fine and passes all of make check without problems.
This is enabling -z combreloc with the simple patch...

diff -urN binutils-2.11.92.0.5/ld/ldmain.c binutils-2.11.92.0.5.new/ld/ldmain.c
--- binutils-2.11.92.0.5/ld/ldmain.c	Mon Oct  1 18:25:25 2001
+++ binutils-2.11.92.0.5.new/ld/ldmain.c	Sat Oct 13 11:04:23 2001
@@ -249,7 +249,7 @@
   link_info.flags = (bfd_vma) 0;
   link_info.flags_1 = (bfd_vma) 0;
   link_info.pei386_auto_import = false;
-  link_info.combreloc = false;
+  link_info.combreloc = true;
   link_info.spare_dynamic_tags = 5;
 
   ldfile_add_arch ("");

I had a few questions regarding this process of switching over to
using -z combreloc...

1) Exactly which elf targets currently support -z combreloc?
I assume the ones that don't can be fixed if a machine of that
arch is made available to the binutils maintainers.
2) Are there any patches or build changes needed for glibc 2.2.4?
We are currently using glibc 2.2.4 which is a cvs snapshot current
to...

2001-09-28  Ulrich Drepper  <drepper@redhat.com>

	* elf/elf.h: Define SHF_GROUP and SHF_TLS.

...are there any changes in glibc cvs since then with
essential fixes for -z combreloc to work properly on
any arches?

3) Lastly, if one builds binaries on a machine with
a binutils installed with -z combreloc enabled and
transfers this to a machine with an older binutils
with -z combreloc disabled...should we expect any
backward compatibility issues in running these? 
      Thanks in advance for any information on these
topics.
                     Jack
------------------------------------------------------------------------------
Jack W. Howarth, Ph.D.                                    231 Albert Sabin Way
NMR Facility Director                              Cincinnati, Ohio 45267-0524
Dept. of Molecular Genetics                              phone: (513) 558-4420
Univ. of Cincinnati College of Medicine                    fax: (513) 558-8474


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