|
From: | vijay |
Subject: | Objcopy seems to consider tbss part of PTLOAD |
Date: | Fri, 15 Mar 2024 17:04:03 +0530 |
int __thread a;
int b,c,k=100,n=400;
int my_start()
{
b = 500;
return a*a*b*k*n;
}
l.ld
ENTRY(my_start)
SECTIONS
{
.text (VMA_START) : AT(VMA_START + LMA_START)
{
*(.text.*)
}
. = ALIGN(16);
.data :
{
*(.data)
}
. = ALIGN(16);
.tdata : {
*(.tdata) *(.tdata.*)
}
. = ALIGN(16);
.tbss : {
*(.tbss) *(.tbss.*)
}
. = ALIGN(16);
.sdata :
{BYTE(0x00)
*(.sdata) *(.sdata.*)
}
. = ALIGN(16);
}
Looks like the macro ELF_SECTION_IN_SEGMENT_1 checks if a section belongs to a segment based on vma
and considers tbss part of LOAD segment.
[Prev in Thread] | Current Thread | [Next in Thread] |