<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/133066>133066</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[X86] fdata-sections not work
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
LukeSTM
</td>
</tr>
</table>
<pre>
https://godbolt.org/z/357ro6MK3
demo:
```#include <stdio.h>
#include <string.h>
struct ss_t {
int s_id;
char msg[];
};
struct ss_t *mst_1;
void do_some_test(void)
{
struct ss_t *mst_2;
char buf[100];
int fill_num=4;
char tmp_str[20]="test string!";
memcpy(buf,&fill_num,sizeof(int));
memcpy(buf+sizeof(int), tmp_str, strlen(tmp_str) + 1);
mst_1=(struct ss_t *)buf;
if (mst_1->s_id==4)
printf("mst_1->s_id=%d,mst_1->msg=%s\n",mst_1->s_id,mst_1->msg);
}```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0U02PmzwQ_jXDxUpkxhjwgQOB5fK-e2oPvSHAJnEXcITNrnZ_fWWgSTfbSolAM_N8-DHTWKvPk1IZ8BPwMmgWdzFz9v_yor59fw5aI9-zi3NXCywHrACrs5GtGdzRzGfA6gOwYjyZTfz8HwOaA82lGo2fpjnEdP8h01M3LFIRYIV1UpvjBdiTn3lozXo6rz0CNPd_6-alc8Ta2hFITquG0JMjttYS2F7oLs1MRnvejrGXk98vDyyYj9bV4a35arQk0tTWjKp2yjrA1NcAxUqza_yFAz8baJce-Cmk9O5h89rrYainZQRWRp8hbrzW1s3AT7ihSkD0HsiWBWAIeJcZ1dhd3wFTL4UFYHyjxsLqD2V6wFRPzntH8Q_c6ctkcTOChVce1ASY3mqCAJ5IuDGSnXLLsARMH5IBFF5m1d6HdU8A0xVyAPa03V25xrGFTAVQcZ315LwtQPwyi1wCFreyv-y1aoEXk8_oj-aKeRi-pZGU9w9zvX-geSAzJgUTTaCyMIlQpFwwHlwy1Yg2ZpTLPsReMK4ETVsZq57SNEqSNtAZUuSUYRzSiDN-5KFKJZdR3wna94pDRNXY6OE4DK-jX5tAW7uoLGSMxnEwNK0a7Lp_iJN6I2vXn4eXwZx50KFdzhYiOmjr7J3GaTesi_sjjYGXpJeNaw5WdU6byZLJOPJm5pdgmYfHHdbusrTHzoyAlefbH4frbH6qzgFWqwsLWO02XzP8FQAA__-OfDfy">