[PATCH v3 1/1] Add backend support for C-SKY

2019-05-04 Thread Mao Han
C-SKY V2 ABI manual: https://github.com/c-sky/csky-doc/blob/master/C-SKY_V2_CPU_Applications_Binary_Interface_Standards_Manual.pdf C-SKY architecture user guide: https://github.com/c-sky/csky-doc/blob/master/CSKY%20Architecture%20user_guide.pdf --- backends/ChangeLog | 11 ++ backends/M

[PATCH v3 0/1] Add C-SKY support

2019-05-04 Thread Mao Han
This patch add backend support for C-SKY architecture. Changes since v1: - Add the Signed-off-by line and the copyright Changes since v2: - move changelog to corresponding entries - correct core dump registers size - remove unused fpu DWARF register Mao Han (1): Add backend support for

Re: [PATCH] libelf: Add n_namesz offset overflow check to gelf_get_note.

2019-05-04 Thread Mark Wielaard
On Wed, May 01, 2019 at 03:55:59PM +0200, Mark Wielaard wrote: > During fuzzing of the new xlate_notes testcase I noticed that > gelf_get_note didn't check whether the n_namesz of a note was > too big. This could lead to offset wrapping around. Causing an > infinite loop going over all ELF notes. F

Re: [PATCH] libelf: If xlate can only convert the ELF note header, just do that.

2019-05-04 Thread Mark Wielaard
On Wed, May 01, 2019 at 12:04:17AM +0200, Mark Wielaard wrote: > On Tue, Apr 30, 2019 at 01:24:48PM +0200, Mark Wielaard wrote: > > When we started parsing new style ELF_T_NHDR8 notes we added extra > > checks on alignment and padding. When those failed we would stop > > converting and just return