This is the mail archive of the mailing list for the glibc 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 v8] Fix dynamic linker issue with bind-now

Fix the bind-now case when DT_REL and DT_JMPREL sections are separate
and there is a gap between them. This patch fixes bug #14341.
- refactor the if statement (with De Morgan's Laws), as suggested by H.J. Lu

- make "bar" a const, as suggested by H.J. Lu

- Addressed comments by H.J. Lu
- modified the test to fail with the latest binutils
- style changes addressed

- Added a ChangeLog entry and bug number into commit message.

- Moved the Makefile part into sysdeps/x86_64/Makefile, so the test is
  executed for x86-64 only

- addressed comments raised by Mike Frysinger
  - use of test-skeleton.c
  - use -Wl,-z,now instead of LD_BIND_NOW=1
  - moved comments to the start of the test file

- addressed all comments raised by Andreas Schwab

ChangeLog entry:

2015-07-16  Petar Jovanovic  <>

       [BZ #14341]
       * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
       case when there is a gap between DT_REL and DT_JMPREL sections.
       * elf/tst-split-dynreloc.c: New file.
       * elf/ New file.
       * sysdeps/x86_64/Makefile: Add new test.

Attachment: fix_dynamic_link_v8.diff
Description: Binary data

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