View | Details | Raw Unified | Return to bug 227552 | Differences between
and this patch

Collapse All | Expand All

(-)b/elfcopy/elfcopy.h (+1 lines)
Lines 127-132 struct section { Link Here
127
	uint64_t	 cap;	/* section capacity */
127
	uint64_t	 cap;	/* section capacity */
128
	uint64_t	 align;	/* section alignment */
128
	uint64_t	 align;	/* section alignment */
129
	uint64_t	 type;	/* section type */
129
	uint64_t	 type;	/* section type */
130
	uint64_t	 flags;	/* section flags */
130
	uint64_t	 vma;	/* section virtual addr */
131
	uint64_t	 vma;	/* section virtual addr */
131
	uint64_t	 lma;	/* section load addr */
132
	uint64_t	 lma;	/* section load addr */
132
	uint64_t	 pad_sz;/* section padding size */
133
	uint64_t	 pad_sz;/* section padding size */
(-)b/elfcopy/sections.c (+1 lines)
Lines 411-416 create_scn(struct elfcopy *ecp) Link Here
411
			s->sz		= ish.sh_size;
411
			s->sz		= ish.sh_size;
412
			s->align	= ish.sh_addralign;
412
			s->align	= ish.sh_addralign;
413
			s->type		= ish.sh_type;
413
			s->type		= ish.sh_type;
414
			s->flags	= ish.sh_flags;
414
			s->vma		= ish.sh_addr;
415
			s->vma		= ish.sh_addr;
415
416
416
			/*
417
			/*
(-)b/elfcopy/segments.c (+2 lines)
Lines 79-84 add_to_inseg_list(struct elfcopy *ecp, struct section *s) Link Here
79
			continue;
79
			continue;
80
		if (s->vma + s->sz > seg->vaddr + seg->msz)
80
		if (s->vma + s->sz > seg->vaddr + seg->msz)
81
			continue;
81
			continue;
82
		if (seg->type == PT_TLS && ((s->flags & SHF_TLS) == 0))
83
			continue;
82
84
83
		insert_to_inseg_list(seg, s);
85
		insert_to_inseg_list(seg, s);
84
		if (seg->type == PT_LOAD)
86
		if (seg->type == PT_LOAD)

Return to bug 227552