aboutsummaryrefslogtreecommitdiff
path: root/elf
AgeCommit message (Collapse)AuthorFilesLines
2012-07-30Fix lots of bitrot for stub configurations.Roland McGrath1-0/+2
2012-07-27Add SystemTap static probes to the runtime linker. [BZ #14298]Gary Benson5-3/+149
2012-07-26Move testsuite audit definitions to sysdeps tst-audit.h files.Joseph Myers7-148/+1
2012-07-20Move localplt baselines to sysdeps directories.Joseph Myers1-12/+5
2012-07-19S/390: Add support for STT_GNU_IFUNC symbols.Andreas Krebbel1-1/+2
Add support for STT_GNU_IFUNC symbols and the new R_390_IRELATIVE relocation. Provide optimized version of memcpy, memset, and memcmp for z10 and z196.
2012-07-18Fix a few typos.Marek Polacek1-4/+4
2012-07-17Split tls-macros.h into sysdeps directories.Joseph Myers1-737/+1
2012-07-10Get rid of ASM_GLOBAL_DIRECTIVE.Marek Polacek4-4/+4
2012-07-03Avoid use of libgcc_s and libgcc_eh when building glibc.Joseph Myers2-1/+51
2012-06-22Fix invalid memory access in do_lookup_x.Andreas Schwab4-18/+15
[BZ #13579] Do not free l_initfini and allow it to be reused on subsequent dl_open calls for the same library. This fixes the invalid memory access in do_lookup_x when the previously free'd l_initfini was accessed through l_searchlist when a library had been opened for the second time.
2012-06-212012-06-21 Jeff Law <law@redhat.com>Jeff Law3-12/+12
[BZ #13882] * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection. Use uint16_t for elements in the "seen" array to avoid char overflows. * elf/dl-fini.c (_dl_sort_fini): Likewise. * elf/dl-open.c (dl_open_worker): Likewise.
2012-06-01Remove use of INTDEF/INTUSE in stdio-commonAndreas Schwab2-8/+6
2012-05-26Fix stack size and address inconsistency due to executable stackSiddhesh Poyarekar1-1/+70
When a stack is marked executable due to loading a DSO that requires an executable stack, the logic tends to leave out a portion of stack after the first frame, thus causing a difference in the value returned by pthread_getattr_np before and after the stack is marked executable. It ought to be possible to fix this by marking the rest of the stack as executable too, but in the interest of marking as less of the stack as executable as possible, the path this fix takes is to make pthread_getattr_np also look at the first frame as the underflow end of the stack and compute size and stack top accordingly. The above happens only for the main process stack. NPTL thread stacks are not affected by this change.
2012-05-25Add --enable-systemtap configuration to define static probe points.Roland McGrath2-4/+4
2012-05-20Add <sys/auxv.h> and getauxval.Richard Henderson2-5/+6
2012-05-17Fix warningAndreas Jaeger1-1/+1
Fixes: tst-relsort1.c:6:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
2012-05-15Split up stackguard-macros.h into sysdeps directories.Joseph Myers1-32/+0
2012-05-14Use _dl_fatal_printf instead of a private variant.Roland McGrath1-1/+1
2012-05-11Add x32 support to STACK_CHK_GUARDH.J. Lu1-1/+3
2012-05-11Add x32 support to TLS_LE/TLS_IE/TLS_GDH.J. Lu1-5/+11
2012-05-10Handle R_X86_64_RELATIVE64 and R_X86_64_64 for x32H.J. Lu1-1/+2
2012-05-10Hurd: Build pldd also if use-ldconfig != yes || build-shared != yesThomas Schwinge1-3/+2
2012-05-09Make ldconfig message clearerAndreas Jaeger1-2/+4
[BZ #13983] Let not confuse the user and think there's an error instead of a warning.
2012-05-03Fix make clean for recent elf/Makefile changes.Roland McGrath1-3/+3
2012-05-02Fix test-suite failues with -Wl,--as-neededAllan McRae1-1/+20
Signed-off-by: Allan McRae <allan@archlinux.org>
2012-05-02For PR 14055, add bounds check to _dl_show_auxv().Paul Pluzhnikov1-2/+4
2012-05-01Redirect check-localplt output to check-localplt.out.Roland McGrath1-1/+2
2012-05-01Do check-localplt test using readelf rather than a build-time C program.Roland McGrath2-312/+21
2012-05-01Do check-execstack test using readelf rather than a build-time C program.Roland McGrath2-177/+26
2012-05-01Do check-textrel test using readelf rather than a build-time C program.Roland McGrath2-209/+16
2012-04-28Don't run tests when cross-compilingAndreas Schwab1-0/+4
2012-04-25Parse hexadecimal and octal strings correctlySiddhesh Poyarekar1-7/+25
The current implementation of __strtoul_internal seems to only pretend to support hex and octal strings by detecting a preceding 0x or 0 and marking base as 8 or 16. When it comes to the actual processing of the string, it only considers numeric values within, thus breaking hex values that may have [a-f] in them. Fixed with this commit.
2012-04-24Add flexibility to localplt-*.data files, using an awk script rather than ↵Roland McGrath1-2/+1
diff to check the results.
2012-04-16Prevent warning in pldd.Marek Polacek1-9/+9
2012-04-13Check __ILP32__ instead of __LP64__H.J. Lu7-7/+7
* elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__. * elf/tst-auditmod3b.c: Likewise. * elf/tst-auditmod4b.c: Likewise. * elf/tst-auditmod5b.c: Likewise. * elf/tst-auditmod6b.c: Likewise. * elf/tst-auditmod6c.c: Likewise. * elf/tst-auditmod7b.c: Likewise. * sysdeps/x86_64/ffsll.c (ffsl): Likewise. * sysdeps/x86_64/preconfigure.in: Likewise. * sysdeps/x86_64/preconfigure: Regenerated.
2012-04-10Fix ld.so regression.David S. Miller1-6/+8
[BZ #13967] * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case where the is a gap between DT_REL(A) and DT_JMPREL.
2012-04-11New ld.so argument --inhibit-ldcache to disable ld.so.cache lookupSiddhesh Poyarekar4-4/+17
It may sometimes be desirable to make the dynamic linker only pick up libraries from the library path and rpath and not look at the ld.so.cache that ldconfig generates. An example of such a use case is the glibc testsuite where the dynamic linker must not be influenced by any external paths or caches. This change adds a new option --inhibit-ldcache that when used, tells the dynamic linker to not use ld.so.cache even if it is available.
2012-04-07Handle some new sparc relocation types.David S. Miller1-0/+1
* elf/elf.h (R_SPARC_WDISP10): Define. * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle R_SPARC_SIZE32. * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle R_SPARC_SIZE64 and R_SPARC_H34.
2012-04-07Simplify _ELF_DYNAMIC_DO_RELOC after combining the old two defs.Carlos O'Donell1-8/+1
* elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify conditions and remove no longer applicable assertion.
2012-04-05Reduce down to one definition of _ELF_DYNAMIC_DO_RELOC.David S. Miller1-47/+7
* elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one definition. * sysdeps/powerpc/powerpc32/dl-machine.h (ELF_MACHINE_PLTREL_OVERLAP): Delete. * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_PLTREL_OVERLAP): Likewise. * sysdeps/sparc/sparc32/dl-machine.h (ELF_MACHINE_PLTREL_OVERLAP): Likewise. * sysdeps/sparc/sparc64/dl-machine.h (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
2012-04-05Fix DL_DEBUG_UNUSED to elide the VDSO and handle PLT references properly.David S. Miller2-2/+16
* elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off lazy binding. * elf/dl-lookup (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore undefined symbol errors. * elf/rtlc.c (dl_main): Skip VDSO when checking for unused DT_NEEDED entries.
2012-03-21Add x32 support to dynamic linker auditH.J. Lu7-35/+91
2012-03-20Move stdio-common/_itoa.h to sysdeps/genericH.J. Lu6-6/+6
2012-03-16Add x32 support to ldconfigH.J. Lu1-0/+4
2012-03-09Fix bugs in sparc PLT profiling register management, and add sparc sotruss ↵David S. Miller1-2/+56
support. * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local variables with appropriate CPP guards. * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the frame pointer, not the stack pointer. Correct layout comments. Fix test on resulting framesize and the management of the outregs buffer for pltexit. Preserve floating point return values across _dl_call_pltexit call. * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting framesize and the management of the outregs buffer for pltexit. Preserve floating point return values across _dl_call_pltexit call. * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions. (print_exit): Fix format string for return register value.
2012-03-07Remove distribute variable from MakefilesUlrich Drepper1-85/+0
2012-02-29Always set l_used for vDSO.Marek Polacek2-1/+15
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert73-215/+142
2012-02-09Avoid pointer type mismatch warning.Richard Henderson1-1/+1
update_get_addr returns a link_map*, but the return expression was of type char*. Fix by relying on gcc's void* arithmetic extension and auto-conversion from void*.
2012-01-30Merge branch 'master' of ssh://sourceware.org/git/glibcUlrich Drepper1-3/+219
Conflicts: ChangeLog