FreeBSD Bugzilla – Attachment 153658 Details for
Bug 198151
/usr/include/sys/elf64.h macro ELF64_R_INFO needs a cast
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Trivial test case
ebug.c (text/plain), 964 bytes, created by
jphartmann
on 2015-03-02 10:30:53 UTC
(
hide
)
Description:
Trivial test case
Filename:
MIME Type:
Creator:
jphartmann
Created:
2015-03-02 10:30:53 UTC
Size:
964 bytes
patch
obsolete
>/* Test case for ELF64_R_INFO */ >/* John Hartmann 2 Mar 2015 11:18:36 */ > >/*********************************************************************/ >/* Change activity: */ >/* 2 Mar 2015 New module. */ >/*********************************************************************/ > >#include <stdio.h> >#include <elf.h> > >/* Forward declarations: */ >/* End of forward declarations. */ > >int >main(int argc, char ** argv) >{ > union > { > Elf64_Rela r; > unsigned char c[24]; > } u = {{ 0 }}; > int i, j; > > u.r.r_info = ELF64_R_INFO(1, 2); > for (i = 0; 24 >i; i+=4) > { > for (j = 0; 3 > j; j++) > { > printf("%02x", u.c[i + j]); > } > printf(" "); > } > printf("\n"); > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 198151
: 153658