aboutsummaryrefslogtreecommitdiff
path: root/elfcopy/segments.c
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2014-12-30 01:27:18 +0000
committerEd Maste <emaste@FreeBSD.org>2014-12-30 01:27:18 +0000
commit42bfa111d731278ff40f9ce45298e65a373c2064 (patch)
tree93decb044b3639075e37c0f46bef0c1b6a0529f8 /elfcopy/segments.c
parent5eccfb5cf5403e9e564066e0a75d80534b49e91d (diff)
downloadsrc-42bfa111d731278ff40f9ce45298e65a373c2064.tar.gz
src-42bfa111d731278ff40f9ce45298e65a373c2064.zip
Import elftoolchain rev 3136vendor/elftoolchain/elftoolchain-r3136
From svn.code.sf.net/p/elftoolchain/code/trunk
Notes
Notes: svn path=/vendor/elftoolchain/dist/; revision=276387 svn path=/vendor/elftoolchain/elftoolchain-r3136/; revision=276388; tag=vendor/elftoolchain/elftoolchain-r3136
Diffstat (limited to 'elfcopy/segments.c')
-rw-r--r--elfcopy/segments.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/elfcopy/segments.c b/elfcopy/segments.c
index e48ad127bfd0..1cdf4664ebec 100644
--- a/elfcopy/segments.c
+++ b/elfcopy/segments.c
@@ -34,7 +34,7 @@
#include "elfcopy.h"
-ELFTC_VCSID("$Id: segments.c 3113 2014-12-20 08:33:29Z kaiwang27 $");
+ELFTC_VCSID("$Id: segments.c 3134 2014-12-23 10:43:59Z kaiwang27 $");
static void insert_to_inseg_list(struct segment *seg, struct section *sec);
@@ -85,6 +85,8 @@ add_to_inseg_list(struct elfcopy *ecp, struct section *s)
insert_to_inseg_list(seg, s);
if (seg->type == PT_LOAD)
s->seg = seg;
+ else if (seg->type == PT_TLS)
+ s->seg_tls = seg;
s->lma = seg->addr + (s->off - seg->off);
loadable = 1;
}