llvm-project/lld/lib
Simon Atanasyan 35687a2fd3 [ELF] Emit DT_TEXTREL dynamic table flag.
If one or more dynamic relocation might modify a read-only section,
dynamic table should contain DT_TEXTREL tag.

The patch introduces new `RelocationTable::canModifyReadonlySection()`
method. This method checks through the relocations to see if any modifies
a read-only section. The DynamicTable class calls this method and emits
the DT_TEXTREL tag if necessary.

The patch reviewed by Rui Ueyama and Shankar Easwaran.

llvm-svn: 208670
2014-05-13 07:37:09 +00:00
..
Core Revert "temporary commit." 2014-05-09 16:47:20 +00:00
Driver Revert "temporary commit." 2014-05-09 16:47:20 +00:00
Passes [Modules] Fix potential ODR violations by sinking the DEBUG_TYPE 2014-04-22 03:21:31 +00:00
ReaderWriter [ELF] Emit DT_TEXTREL dynamic table flag. 2014-05-13 07:37:09 +00:00
CMakeLists.txt Add the core architecture for the lld driver. 2012-12-08 00:47:36 +00:00