===
> > Testsuite summary for elfutils 0.176
> >
> > # TOTAL: 209
> > # PASS: 204
> > # SKIP: 5
> > # XFAIL: 0
> > # FAIL: 0
> > # XPASS: 0
>
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
Signed-off-by: Mao Han
---
backends/ChangeLog
estsuite summary for elfutils 0.176
# TOTAL: 209
# PASS: 204
# SKIP: 5
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
============
Changes since v1:
- Add the Signe
done deliberately. If they can never occur in v2
> ELF binaries I would leave them out.
The content of the ABI manual is quite old, binutils souce code seems
much reliable to refer to. binutils/bfd/elf32-csky.c says,
only three relocations are abiv1 exclusive:
R_CKCORE_PCREL_JSR_IMM11BY2
R_CKCORE_PCREL_IMM8
>
I've generated binaries/core with an upstream toolchain, however the
divzero testcase doesn't cause any coredump, so I used a zeroptr
testcase instead.
https://github.com/c-sky/test-result/blob/master/elfutils/zeroptr
https://github.com/c-sky/test-result/raw/master/elfutils/core.zeroptr
Thanks,
Mao Han
EM_CSKY)))
> continue;
>
>printf (gettext ("\
>
> And then hook check_object_attribute to display any CSKY specific
> attribute names/values.
Ok, I'll add check for C-SKY here.
Thanks,
Mao Han
On Wed, Jul 10, 2019 at 11:33:23PM +0200, Mark Wielaard wrote:
> Hi Mao Han,
>
> On Mon, 2019-06-03 at 16:16 +0800, Mao Han wrote:
> > test binary:
> > https://github.com/c-sky/test-result/blob/master/elfutils/divzero
> > https://github.com/c-sky/test-result/blob/mast
On Tue, Jun 25, 2019 at 12:26:55AM +0200, Mark Wielaard wrote:
> Hi,
>
> On Wed, 2019-04-17 at 14:41 +0800, Mao Han wrote:
> > I'v just spent sometime debuging this. Core dump backtrace on C-SKY
> > seems
> > can't be supported with current generic routine.
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
Signed-off-by: Mao Han
---
backends/ChangeLog
ze.o.rev differ: section [1], [1] name
FAIL run-reverse-sections-self.sh (exit status: 1)
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
Ma
/csky_regs.c
create mode 100644 backends/csky_reloc.def
create mode 100644 backends/csky_symbol.c
diff --git a/backends/ChangeLog b/backends/ChangeLog
index 6c2b47a..9271f9c 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,3 +1,14 @@
+2019-04-29 Mao Han
+
+ * Makefile.am: Add C
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
aabce 100644
--- a/src/stack.c
+++ b/src/stack.c
@@ -608,7 +608,7 @@ parse_opt (int key, char *arg __attribute__ ((unused)),
if (core != NULL)
{
if (dwfl_core_file_attach (dwfl, core) < 0)
- error (EXIT_BAD, 0, "dwfl_core_file_report: %s", dwfl_errmsg (-1));
+ error (EXIT_BAD, 0, "dwfl_core_file_attach: %s", dwfl_errmsg (-1));
}
/* Makes sure we are properly attached. */
Thanks,
Mao Han
unused)),
> > + size_t len __attribute__ ((unused)))
> > +{
> > + if (type == SHT_CSKY_ATTRIBUTES)
> > +return "CSKY_ATTRIBUTES";
> > +
> > + return NULL;
> > +}
>
> OK.
> I couldn't find any description of this section.
> Is it like SHT_ARM_ATTRIBUTES/SHT_GNU_ATTRIBUTES?
> Then you might also want to handle it like that in src/readelf.c
> (print_attributes).
Yes, it is.
static int
process_csky_specific (FILE * file)
{
return process_attributes (file, "csky", SHT_CSKY_ATTRIBUTES,
display_csky_attribute, NULL);
}
binutils-gdb/binutils/readelf.c
https://github.com/c-sky/binutils-gdb/blob/binutils-2_27-branch-csky/binutils/readelf.c
Thanks,
Mao Han
---
backends/riscv_cfi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backends/riscv_cfi.c b/backends/riscv_cfi.c
index 1a84a38..5d3e884 100644
--- a/backends/riscv_cfi.c
+++ b/backends/riscv_cfi.c
@@ -31,7 +31,7 @@
#include
-#define BACKEND aarch64_
+#define BACKEND r
t
> > 0x2aace6a3 in /home/vmh/elfutilswk/tests/test-25076/deleted-lib.so:
> > Callback returned failure
> > ./run-deleted.sh: line 38: kill: (12587) - No such process
> > FAIL run-deleted.sh (exit status: 1)
>
> This is again most likely because of script change
Signed-off-by: Mao Han
---
libelf/ChangeLog | 4 +++
libelf/elf.h | 96 ++--
2 files changed, 98 insertions(+), 2 deletions(-)
diff --git a/libelf/ChangeLog b/libelf/ChangeLog
index d9b7749..d3bdac3 100644
--- a/libelf/ChangeLog
+++ b
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
Signed-off-by: Mao Han
---
backends/ChangeLog
Hi,
FIX NEWLINE IN LAST EMAIL
On Wed, Apr 03, 2019 at 10:54:11PM +0200, Mark Wielaard wrote:
> Hi,
>
> On Mon, Apr 01, 2019 at 10:31:55AM +0800, Mao Han wrote:
> > This patch add backend support for C-SKY architecture.
>
> Thanks. I don't know anything about the C
Hi,
On Wed, Apr 03, 2019 at 10:54:11PM +0200, Mark Wielaard wrote:
> Hi,
>
> On Mon, Apr 01, 2019 at 10:31:55AM +0800, Mao Han wrote:
> > This patch add backend support for C-SKY architecture.
>
> Thanks. I don't know anything about the C-SKY architecture. Do you
>
+1,7 @@
+2019-04-01 Mao Han
+
+ * elf.h: Update from glibc.
+
2019-03-07 Mark Wielaard
* elf32_updatefile.c (updatemmap): Use posix_memalign instead of
diff --git a/libelf/elf.h b/libelf/elf.h
index 75043bc..01648bd 100644
--- a/libelf/elf.h
+++ b/libelf/elf.h
@@ -1,5 +1,5
/csky_reloc.def
create mode 100644 backends/csky_symbol.c
diff --git a/backends/ChangeLog b/backends/ChangeLog
index 0c61a0b..0c3193e 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,3 +1,16 @@
+2019-04-01 Mao Han
+
+ * backends/Makefile.am: Add C-SKY.
+ * backends/csky_cfi.c: New
./run-deleted.sh: line 38: kill: (12587) - No such process
FAIL run-deleted.sh (exit status: 1)
Mao Han (2):
libelf: Sync elf.h from glibc
Add backend support for C-SKY
backends/ChangeLog | 13 +
backends/Makefile.am | 9 +++-
backends/csky_cfi.c
23 matches
Mail list logo