summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/mips-got-relocs.s
Commit message (Collapse)AuthorAgeFilesLines
* [mips] Use llvm-readobj `-A` flag in test cases. NFCSimon Atanasyan2019-10-031-4/+4
| | | | llvm-svn: 373589
* [mips] Make another set of test cases more tolerant to exact symbol ↵Simon Atanasyan2019-09-071-17/+17
| | | | | | addresses. NFC llvm-svn: 371313
* [test] Change llvm-readobj -long-option to --long-option or well-known short ↵Fangrui Song2019-05-011-4/+4
| | | | | | | | | | | | options. NFC Also change some options that have different semantics (cause confusion) in llvm-readelf mode: -s => -S -t => --symbols -sd => --section-data llvm-svn: 359651
* [mips] Reduce number of tools invocations in the test. NFCSimon Atanasyan2019-02-251-74/+41
| | | | llvm-svn: 354772
* [ELF] Fix objdump tests after rL346610Fangrui Song2018-11-111-2/+2
| | | | llvm-svn: 346613
* [ELF] Move `# REQUIRES:` line to the topFangrui Song2018-06-261-2/+1
| | | | llvm-svn: 335625
* Don't make _gp absolute.Rafael Espindola2017-09-151-2/+2
| | | | | | | | _gp points to a position in the file, so it is not really absolute. It is also simpler to not force it to be absolute, so if there is no strong ABI requirement we should not do it. llvm-svn: 313333
* [ELF][MIPS] Exclude mips .got from PT_GNU_RELRO segmentSimon Atanasyan2017-01-161-8/+8
| | | | | | | | | | | | | On MIPS .got section cannot be included into the PT_GNU_RELRO segment. Sometimes it might work, but in general it is unsupported. One of the problem is that all sections marked by SHF_MIPS_GPREL should be grouped together because data in these sections is addressable with a gp relative address, but such sections might be writable. This patch exclude mips .got from PT_GNU_RELRO segment and group SHF_MIPS_GPREL sections. llvm-svn: 292161
* ELF: Place relro sections after non-relro sections in r/w segment.Peter Collingbourne2017-01-101-14/+14
| | | | | | | | | | | | This is in preparation for my next change, which will introduce a relro nobits section. That requires that relro sections appear at the end of the progbits part of the r/w segment so that the relro nobits section can appear contiguously. Because of the amount of churn required in the test suite, I'm making this change separately. llvm-svn: 291523
* [ELF][MIPS] Make _gp, _gp_disp, __gnu_local_gp global symbolsSimon Atanasyan2016-12-081-2/+2
| | | | | | | | | | | | | | These MIPS specific symbols should be global because in general they can have an arbitrary value. By default this value is a fixed offset from .got section. This patch adds more checks to the mips-gp-local.s test case but marks it as XFAIL because LLD does not allow redefinition of absolute symbols value by a linker script. This should be fixed by D27276. Differential revision: https://reviews.llvm.org/D27524 llvm-svn: 289025
* ELF: Use hidden visibility for all DefinedSynthetic symbols.Peter Collingbourne2016-04-131-4/+4
| | | | | | | | | | | | | This simplifies the code by allowing us to remove the visibility argument to functions that create synthetic symbols. The only functional change is that the visibility of the MIPS "_gp" symbol is now hidden. Because this symbol is defined in every executable or DSO, it would be difficult to observe a visibility change here. Differential Revision: http://reviews.llvm.org/D19033 llvm-svn: 266208
* Use DefinedSynthetic for _gp* symbols.Rafael Espindola2016-04-121-2/+2
| | | | | | | The test changes to put _gp* in the .got section matches what both bfd and gold do. llvm-svn: 266067
* Devide _gp in the same spot as other mips symbols. NFC.Rafael Espindola2016-04-121-2/+3
| | | | | | The test changes are just because of the symbol order. llvm-svn: 266037
* Place RW sections that go after relro to another memory page.Rafael Espindola2015-12-231-10/+10
| | | | | | | | | | | | Before this patch sections that go after relro sequence were placed at the same memory page with relro ones. It caused segmentation fault on freebsd. Fixes PR25790. Patch by George Rimar with some tweaks by myself. llvm-svn: 256334
* Reapply fixed r253967.George Rimar2015-11-241-14/+14
| | | | llvm-svn: 253971
* Revert r253967 which broke buildbot.George Rimar2015-11-241-14/+14
| | | | llvm-svn: 253970
* [ELF] Implements -z relro: create an ELF "PT_GNU_RELRO" segment header in ↵George Rimar2015-11-241-14/+14
| | | | | | | | | | | | | | | | | the object. Partial (-z relro) and full (-z relro, -z now) relro cases are implemented. Partial relro: The ELF sections are reordered so that the ELF internal data sections (.got, .dtors, etc.) precede the program's data sections (.data and .bss). .got is readonly, .got.plt is still writeable. Full relro: Supports all the features of partial RELRO, .got.plt is also readonly. Differential revision: http://reviews.llvm.org/D14218 llvm-svn: 253967
* Rename ld.lld2 to ld.lld since it is the default.Rafael Espindola2015-11-181-4/+4
| | | | llvm-svn: 253437
* Rename test/elf2 to test/ELF.Rafael Espindola2015-11-171-0/+99
llvm-svn: 253313
OpenPOWER on IntegriCloud