summaryrefslogtreecommitdiff
path: root/sysdeps
AgeCommit message (Collapse)AuthorFilesLines
2020-01-08Fix Werror unreachable after switchtizen_6.5.m2_releasetizen_6.0.m2_releasesubmit/tizen_6.5/20211028.163501submit/tizen_6.0_hotfix/20201103.115103submit/tizen_6.0_hotfix/20201102.192903submit/tizen_6.0/20201029.205503submit/tizen/20200108.085202accepted/tizen/unified/20200109.065533accepted/tizen/6.5/unified/20211029.014657accepted/tizen/6.0/unified/hotfix/20201102.231349accepted/tizen/6.0/unified/20201030.112123tizen_6.0_hotfixtizen_6.0accepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedSungguk Na1-1/+2
Change-Id: Icc6a3a1fcc0b665f96337783102583def7d85fd5 Signed-off-by: Sungguk Na <sungguk.na@samsung.com>
2020-01-06Older glibc's don't expose the necessary interfaces without _GNU_SOURCEPetr Machata1-1/+2
Change-Id: Ib8ce6df9c10793e9136d3a5d8c335a8f289ebd3c Signed-off-by: Sungguk Na <sungguk.na@samsung.com>
2016-12-27Replace readdir_r with readdirtizen_5.5.m2_releasetizen_4.0.m2_releasetizen_4.0.m1_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_unified/20170308.100415submit/tizen_5.5_wearable_hotfix/20201026.184307submit/tizen_5.5_mobile_hotfix/20201026.185107submit/tizen_5.5/20191031.000007submit/tizen_5.0/20181101.000007submit/tizen_4.0/20170828.100006submit/tizen_4.0/20170811.094300submit/tizen/20161227.115415accepted/tizen/wearable/20161228.083532accepted/tizen/unified/20170309.040228accepted/tizen/tv/20161228.083512accepted/tizen/mobile/20161228.083453accepted/tizen/ivi/20161228.083548accepted/tizen/common/20161227.192631accepted/tizen/5.5/unified/wearable/hotfix/20201027.100550accepted/tizen/5.5/unified/mobile/hotfix/20201027.074237accepted/tizen/5.5/unified/20191031.011812accepted/tizen/5.0/unified/20181102.030449accepted/tizen/4.0/unified/20170828.222850accepted/tizen/4.0/unified/20170816.014018tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5tizen_5.0tizen_4.0sandbox/dnxowls/rpm_upgradeaccepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_commonaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unifiedaccepted/tizen_4.0_unifiedHyeongsik Min1-9/+6
Change-Id: I1a6c75d8a2f64e58a4c81724e2c3b0568b581a7b Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
2014-08-22PowerPC: convert ELFv2 conditionals form preprocessor to plain conditionsPetr Machata2-41/+46
- The reason being that this way, all of the code is exposed all the time, which should make future refactoring easier. There's nothing that needs hiding, no system-specific constants or such.
2014-08-22Fix coding style in PowerPC's arch.hPetr Machata1-16/+18
2014-08-22Fix bugs in fetch backend of powerpc64lePetr Machata1-80/+70
- One bug was in a function that returned a small structure and whose first argument was a pointer that pointed to stack. The old code assumed that meant that the structure was returned by implicit reference instead of in registers. - Another was in passing large HFA's (larger than 8 elements) in arguments, and in returning HFA's.
2014-08-22Normalize some include guardsPetr Machata2-6/+6
2014-08-22PPC: fix PPC32 buildAlexandre Belloni1-0/+1
Compilation on PPC32 fails because STACK_FRAME_OVERHEAD is never defined in arch.h. Define it to 112 on that platform to restore the same behaviour as before commit eea4ad2cce289753aaa35b4e0258a76d8f8f367c. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
2014-08-22Support for powerpc64 arch ppc64elThierry Fauck4-34/+353
Signed-off-by: Thierry Fauck <thierry@linux.vnet.ibm.com> Add support for ppc64le proc and ELF ABIv2. Provides support for irelative and wchar
2014-08-22Add missing #include stdio.hdann frazier2-0/+2
Include stdio.h in files that use fprintf() Signed-off-by: dann frazier <dannf@debian.org>
2014-08-22add missing <stdint.h> includedann frazier1-0/+1
aarch64's fetch.c uses the uintptr_t typedef defined by stdint.h without including it. This doesn't currently cause a build failure because stdint.h is indirectly included via proc.h. Signed-off-by: dann frazier <dannf@debian.org>
2014-08-22Implement aarch64 supportPetr Machata10-1/+1855
- IFUNC support is not implemented, the rest works well. The only other failure is in wide char functions, and that occurs on x86_64 as well.
2014-08-22Don't crash untraced calls via PLT in prelinked PPC64 binariesPetr Machata2-21/+94
In prelinked binaries, ltrace has to unprelinks PLT slots in order to catch calls done through PLT. This makes the calls done through these slots invalid, because the special first PLT slot is not initialized, and dynamic linker SIGSEGVs because of this. Ltrace relies on arranging breakpoints such that the dynamic linker is not actually entered, and moves PC around itself to simulate the effects of a call through PLT. Originally, arch_elf_add_plt_entry was called only for symbols that were actually traced. Later this was changed and it's now called for all PLT entries, and the resulting candidate list is filtered afterwards. This gives backends a chance to rename the symbol, as is useful with IRELATIVE PLT calls, where symbol name may not be available at all. But the PPC backend was never updated to reflect this, and unresolved all symbols for which arch_elf_add_plt_entry was called, thus rendering _all_ PLT slots invalid, even those that weren't later procted by breakpoints. Thus calls done through any untraced slots failed. This patch fixes this problem by deferring the unprelinking of PLT slots into the on_install hook of breakpoints.
2014-08-22Type umovebytes properlyPetr Machata1-4/+4
2014-08-22Initialize libsym early in trace.c to help the compiler.Mark Wielaard1-2/+2
GCC 4.4.7 isn't smart enough to realize own_libsym will always be zero when it sees the goto done which might jump over the initialization of libsym. And so will produce a warning like: cc1: warnings being treated as errors trace.c: In function ‘ifunc_ret_hit’: trace.c:1433: error: ‘libsym’ may be used uninitialized in this function
2014-08-22Fix a problem in tracing across fork on PPC64Petr Machata1-1/+13
In order to avoid single-stepping through large portions of the dynamic linker, ltrace remembers at which address the instruction that resolved a PLT slot is. It then puts a breakpoint to this address so that it can fast-forward to that address next time it needs to catch a PLT slot being resolved. When a process is cloned, the pointer to this breakpoint is simply copied over to the new process, instead of being looked up in the new process structures. This patches fixes this.
2014-08-22Support IRELATIVE relocations on s390Petr Machata2-0/+24
2014-08-22On s390{,x}, r2 is scrambled after syscall entryPetr Machata1-5/+12
This was caught by system_call_params.exp test case: exe->mount("source", "target", "filesystemtype", 0, nil <unfinished ...> mount@SYS("", "target", "filesystemtype", 0, nil) = -2 <... mount resumed> = -1 Note how the first parameter disappears--r2 now holds syscall number (21 in this case), and the original value is stored in orig_gpr2 in save area.
2014-08-22On x86{,_64}, PLT entries may not be ordered by their relocationPetr Machata2-1/+111
- In general they are. But IRELATIVE relocations are sorted to come last, and PLT entries are not sorted accordingly.
2014-08-22Plug a leakPetr Machata1-0/+1
2014-08-22Fix compilation on ARMPetr Machata2-1/+17
- This was broken several commits back by removing pltrel from struct ltelf.
2014-08-22In ARM backend, move hooks for ltrace_elf and library to plt.cPetr Machata2-190/+192
- That's the customary location for backend hooks.
2014-08-22Move load_dynamic_entry from PPC backend to ltrace-elf.c/.hPetr Machata1-38/+7
2014-08-22Imported Upstream version 0.7.91upstream/0.7.91upstreamChanho Park80-7447/+3915
2013-01-15Imported Upstream version 0.7.2upstream/0.7.2Anas Nashif154-2166/+17748
2012-11-13Imported Upstream version 0.5.3upstream/0.5.3Anas Nashif103-0/+8426