mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
gold/
* layout.cc (Layout::make_output_section): Mark .tdata section as RELRO. * testsuite/relro_test.cc: Add a TLS variable.
This commit is contained in:
@@ -1430,7 +1430,9 @@ Layout::make_output_section(const char* name, elfcpp::Elf_Word type,
|
||||
{
|
||||
if (type == elfcpp::SHT_PROGBITS)
|
||||
{
|
||||
if (strcmp(name, ".data.rel.ro") == 0)
|
||||
if ((flags & elfcpp::SHF_TLS) != 0)
|
||||
is_relro = true;
|
||||
else if (strcmp(name, ".data.rel.ro") == 0)
|
||||
is_relro = true;
|
||||
else if (strcmp(name, ".data.rel.ro.local") == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user