On Thu, Jul 5, 2018 at 3:18 AM, Jian, Xu via cfe-users
wrote:
> Hi,
>
> The following c source code abc.c:
>
> #include
>
> int g_val=10;
>
> const char *g_str="abc";
>
> const char *g_str1="c";
>
> int main(void)
>
> {
>
> printf("%s %s: %d\n",g_str,g_str1,g_val);
>
> return 0;
>
> }
>
>
Hi Hans,
We need to compare whether ELF files of two builds are identical.
Because of string merge, the comparison has some trouble.
For example in case following code lines (may be in different files):
---
const char* s_array[1]="s";
con
On Fri, Jul 6, 2018 at 10:22 AM, Jian, Xu wrote:
> Hi Hans,
> We need to compare whether ELF files of two builds are identical.
> Because of string merge, the comparison has some trouble.
>
> For example in case following code lines (may be in different files):
> --
> On Jul 6, 2018, at 12:00, via cfe-users wrote:
>
> Message: 1
> Date: Fri, 6 Jul 2018 09:54:05 +0200
> From: Hans Wennborg via cfe-users
> To: "Jian, Xu"
> Cc: "cfe-users@lists.llvm.org"
> Subject: Re: [cfe-users] how clang merge strings in .rodata section
> Message-ID:
>
> Content-