15 p_name->set_parent(
this);
45 const unsigned char *buf = (
const unsigned char*)_buf;
48 for (
size_t i=0; i<nbytes; i++)
59 ROSE_ASSERT(notes!=NULL);
60 ROSE_ASSERT(at < notes->get_size());
62 ROSE_ASSERT(fhdr!=NULL);
82 ROSE_ASSERT(note_name.size()+1 == name_size);
91 return at + payload_size;
101 ROSE_ASSERT(notes!=NULL);
102 ROSE_ASSERT(at < notes->get_size());
104 ROSE_ASSERT(fhdr!=NULL);
109 notes->
write(f, at, 4, &u32);
114 notes->
write(f, at, 4, &u32);
119 notes->
write(f, at, 4, &u32);
124 while ((name.size()+1) % 4)
126 notes->
write(f, at, name.size()+1, name.c_str());
141 need = (need+3) & ~0x3;
152 sprintf(p,
"%sElfNoteEntry[%zd]", prefix, idx);
154 sprintf(p,
"%sElfNoteEntry", prefix);
158 fprintf(f,
"%s%-*s \"%s\"\n", p, w,
"name",
p_name->
get_string(
true).c_str());
159 fprintf(f,
"%s%-*s %u\n", p, w,
"type",
p_type);
161 fprintf(f,
"%s%-*s = %zu bytes\n", p, w,
"extra",
p_payload.size());
183 at = note->
parse(at);
238 sprintf(p,
"%sElfNoteSection[%zd].", prefix, idx);
240 sprintf(p,
"%sElfNoteSection.", prefix);