aboutsummaryrefslogtreecommitdiff
path: root/elf.h
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixes in C comments onlyLarry Doolittle2017-05-071-6/+6
|
* elf: Ignore SHF_COMPRESSED sectionsMichael Matz2017-05-061-0/+1
| | | | | | | | | | | | some newer systems have debug sections compressed by default, which includes those in the crt[1in].o startup files. These can't simply be concatenated like all others (which leads to invalid section contents ultimately making gdb fail) but need special handling. Instead of that special handling (decompressing, which in turn requires linking against zlib) let's just ignore such sections, even though that means to also ignore all other debug sections from that particular input file. Our own generated files of course don't have the problem.
* Add missing relocation info for C67 targetThomas Preud'homme2016-12-101-3/+3
| | | | | Fill in relocs_info table for C67 and fix R_C60_NUM value to really be greater than all relocation values known to TCC.
* Fix relocs_info declaration in tcc.hThomas Preud'homme2016-12-051-1/+5
| | | | | | | | | C standard specifies that array should be declared with a non null size or with * for standard array. Declaration of relocs_info in tcc.h was not respecting this rule. This commit add a R_NUM macro that maps to the R_<ARCH>_NUM macros and declare relocs_info using it. This commit also moves all linker-related macros from <arch>-gen.c files to <arch>-link.c ones.
* tccgen: scopes levels for local symbols (update 1)grischka2016-05-051-2/+1
| | | | | | | Catch top level redeclarations too. Also fix mistakes in tcctest.c and the tcc sources (win32) showing up now.
* i386: Add support for new psABI relocationThomas Preud'homme2015-12-271-1/+2
| | | | | | | R_386_GOT32X can occur in object files assembled by new binutils, and in particular do appear in glibc startup code (crt*.o). This patch is modeled after the x86_64 one, handling the new relocation in the same trivial way.
* x86-64: Define symbol constant for new relocsMichael Matz2015-12-171-0/+4
| | | | | | Whoops, we have our own <elf.h> copy, so I can just as well add the symbol defines for the relocs instead of hard-coding numbers in tccelf.c.
* Revert all of my changes to directories & codingstyle.gus knight2015-07-291-0/+3228
|
* Reorganize the source tree.gus knight2015-07-271-3228/+0
| | | | | | | | | | * Documentation is now in "docs". * Source code is now in "src". * Misc. fixes here and there so that everything still works. I think I got everything in this commit, but I only tested this on Linux (Make) and Windows (CMake), so I might've messed something up on other platforms...
* Add arm64 (AArch64) as a target architecture.Edmund Grimley Evans2015-02-231-0/+112
|
* Update elf.hThomas Preud'homme2014-01-081-1084/+2469
|
* Revert "Add support for thread-local storage variables"Thomas Preud'homme2013-11-031-3/+1
| | | | | | | | | | TLS support in tinyCC is absolutely not ready: - segment register not select in load and store - no relocation added for computing offset of per-thread symbol - no support for TLS-specific relocations - no program header added as per Drepper document about TLS This reverts commit 1c4afd13501f07a673aed5f130166f2ee0f30927.
* Add support for thread-local storage variablesThomas Preud'homme2013-10-291-1/+3
|
* add version number to manpageUrs Janssen2013-02-171-2/+2
| | | | | | | avoid c++/c99 style comments in preprocessor directives avoid leadings whitespaces in preprocessor directives mention implemented variable length arrays in documentation fixed ambiguous option in texi2html call (Austin English)
* Add support for R_ARM_THM_{JUMP24,CALL} relocsThomas Preud'homme2012-10-281-1/+2
| | | | | | Add support for relocations R_ARM_THM_JUMP24 and R_ARM_THM_CALL. These are encountered with gcc when compiling for armv6 or greater with -mthumb flag and a call (conditional or not) is done.
* Support for R_ARM_[THM_]MOV{W,T}_ABS[_NC} relocsThomas Preud'homme2012-10-101-0/+4
| | | | | | | | | Add support for relocations R_ARM_MOVW_ABS_NC and R_ARM_MOVT_ABS as well as their Thumb2 counterpart R_ARM_THM_MOVW_ABS_NC and R_ARM_THM_MOVT_ABS. These are encountered with gcc when compiling for armv7-a and a data is loaded in a register, either in arm or Thumb2 mode. The first half of the data is loaded with movw ; the second half is loaded with movt.
* elf.h: define SHF_MERGE etc.grischka2011-07-141-0/+11
|
* tccpe: cleanup ELFW() macros etc.grischka2011-07-141-10/+0
|
* Add support for indirect functions as externals.Thomas Preud'homme2010-08-091-0/+1
| | | | Add link support to use indirect functions defined in external modules
* don't discard SHT_((PRE)INIT|FINI)_ARRAY sectionsDaniel Glöckner2010-05-151-1/+6
|
* ARM: add support for R_ARM_V4BXDaniel Glöckner2010-05-151-0/+1
|
* added 16-bit x86 assembly supportFrederic Feret2009-11-131-0/+4
|
* Imported several macros required by x86-64Shinichiro Hamaji2008-12-021-3/+74
|
* Introduce ElfW macro and ELFW to encapsulate the difference between Elf32_* ↵Shinichiro Hamaji2008-12-021-0/+10
| | | | and Elf64_*. Also, introduce ElfW_Rel and SHT_RELX for difference between REL and RELA.
* Use _WIN32 for a windows hosted tcc and define it for the PE target.grischka2007-12-131-950/+950
|
* Import 409,410: ARM EABI by Daniel Glöcknergrischka2007-12-041-3/+9
|
* do not assume signed char (grischka)bellard2005-04-171-1/+1
|
* ELF visibility definesbellard2005-04-101-0/+14
|
* initial TMS320C67xx support (TK)bellard2004-10-041-0/+18
|
* addedbellard2002-12-081-0/+1595