Source: libgc
Version: 1:7.2d-6.1
Severity: normal
Tags: upstream patch

Hi,

Please add support for OpenRISC/or1k, we are working to add this port to Debian
and this package is a dependency of a few important packages.

This bug applies to upstream, I am planning to forward it upstream either before
or soon after is available in Debian.

The changes should only affect this port and not have ill effects in the rest of
the package.  I will upload either the patch attached or small variations of it,
if we find some problem in the meantime.

I plan to NMU (to delayed) if you don't reply, but it would be nice if you can
acknowledge (so I can upload sunner) or, better yet, applied it yourself.
(Wookey recently NMUed for arm64, so I understand that you might be busy).


Cheers.
--
Manuel
diff -Nru libgc-7.2d/debian/changelog libgc-7.2d/debian/changelog
--- libgc-7.2d/debian/changelog	2014-07-03 01:31:40.000000000 +0100
+++ libgc-7.2d/debian/changelog	2014-07-30 01:21:32.000000000 +0100
@@ -1,3 +1,11 @@
+libgc (1:7.2d-6.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add OpenRISC/or1k support: gcconfig.h (or1k-port.patch) and symbols
+    file
+
+ -- Manuel A. Fernandez Montecelo <m...@debian.org>  Wed, 30 Jul 2014 01:20:57 +0100
+
 libgc (1:7.2d-6.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru libgc-7.2d/debian/libgc1c2.symbols libgc-7.2d/debian/libgc1c2.symbols
--- libgc-7.2d/debian/libgc1c2.symbols	2014-07-03 01:28:14.000000000 +0100
+++ libgc-7.2d/debian/libgc1c2.symbols	2014-07-30 01:19:52.000000000 +0100
@@ -84,7 +84,7 @@
  GC_core_malloc@Base 1:7.2d
  GC_core_malloc_atomic@Base 1:7.2d
  GC_current_warn_proc@Base 1:7.2d
- (arch=!arm64 !kfreebsd-amd64 !kfreebsd-i386 !mips !mipsel !s390 !s390x !sparc !sparc64)GC_data_start@Base 1:7.2d
+ (arch=!arm64 !kfreebsd-amd64 !kfreebsd-i386 !mips !mipsel !or1k !s390 !s390x !sparc !sparc64)GC_data_start@Base 1:7.2d
  GC_debug_change_stubborn@Base 1:7.2d
  GC_debug_end_stubborn_change@Base 1:7.2d
  GC_debug_free@Base 1:7.2d
@@ -159,7 +159,7 @@
  GC_ext_descriptors@Base 1:7.2d
  GC_extend_size_map@Base 1:7.2d
  GC_fail_count@Base 1:7.2d
- (arch=!arm64 !mips !mipsel !s390 !s390x)GC_fault_handler@Base 1:7.2d
+ (arch=!arm64 !mips !mipsel !or1k !s390 !s390x)GC_fault_handler@Base 1:7.2d
  (arch=alpha amd64 i386 ia64 m68k x32)GC_fault_handler_lock@Base 1:7.2d
  GC_finalize@Base 1:7.2d
  GC_finalize_all@Base 1:7.2d
@@ -168,8 +168,8 @@
  GC_finalizer_notifier@Base 1:7.2d
  GC_find_header@Base 1:7.2d
  GC_find_leak@Base 1:7.2d
- (arch=!arm64 !mips !mipsel !s390 !s390x)GC_find_limit@Base 1:7.2d
- (arch=!arm64 !mips !mipsel !s390 !s390x)GC_find_limit_with_bound@Base 1:7.2d
+ (arch=!arm64 !mips !mipsel !or1k !s390 !s390x)GC_find_limit@Base 1:7.2d
+ (arch=!arm64 !mips !mipsel !or1k !s390 !s390x)GC_find_limit_with_bound@Base 1:7.2d
  GC_findleak_delay_free@Base 1:7.2d
  GC_finish_collection@Base 1:7.2d
  GC_fo_entries@Base 1:7.2d
@@ -265,7 +265,7 @@
  GC_init_explicit_typing@Base 1:7.2d
  GC_init_gcj_malloc@Base 1:7.2d
  GC_init_headers@Base 1:7.2d
- (arch=!arm64 !kfreebsd-amd64 !kfreebsd-i386 !mips !mipsel !s390 !s390x !sparc !sparc64)GC_init_linux_data_start@Base 1:7.2d
+ (arch=!arm64 !kfreebsd-amd64 !kfreebsd-i386 !mips !mipsel !or1k !s390 !s390x !sparc !sparc64)GC_init_linux_data_start@Base 1:7.2d
  GC_init_parallel@Base 1:7.2d
  GC_init_size_map@Base 1:7.2d
  GC_init_thread_local@Base 1:7.2d
@@ -286,7 +286,7 @@
  GC_is_visible@Base 1:7.2d
  GC_is_visible_print_proc@Base 1:7.2d
  GC_java_finalization@Base 1:7.2d
- (arch=!arm64 !mips !mipsel !s390 !s390x)GC_jmp_buf@Base 1:7.2d
+ (arch=!arm64 !mips !mipsel !or1k !s390 !s390x)GC_jmp_buf@Base 1:7.2d
  (arch=armel armhf hurd-i386)GC_key_create@Base 1:7.2d
  GC_large_alloc_warn_interval@Base 1:7.2d
  GC_large_alloc_warn_suppressed@Base 1:7.2d
@@ -477,7 +477,7 @@
  (arch=armel armhf hurd-i386)GC_remove_specific@Base 1:7.2d
  GC_remove_tmp_roots@Base 1:7.2d
  (arch=!hurd-i386 !kfreebsd-amd64 !kfreebsd-i386)GC_repeat_read@Base 1:7.2d
- (arch=!arm64 !mips !mipsel !s390 !s390x)GC_reset_fault_handler@Base 1:7.2d
+ (arch=!arm64 !mips !mipsel !or1k !s390 !s390x)GC_reset_fault_handler@Base 1:7.2d
  GC_reset_finalizer_nested@Base 1:7.2d
  GC_restart_handler@Base 1:7.2d
  GC_retry_signals@Base 1:7.2d
@@ -515,7 +515,7 @@
  GC_set_warn_proc@Base 1:7.2d
  GC_setpagesize@Base 1:7.2d
  (arch=armel armhf hurd-i386)GC_setspecific@Base 1:7.2d
- (arch=!arm64 !mips !mipsel !s390 !s390x)GC_setup_temporary_fault_handler@Base 1:7.2d
+ (arch=!arm64 !mips !mipsel !or1k !s390 !s390x)GC_setup_temporary_fault_handler@Base 1:7.2d
  GC_should_collect@Base 1:7.2d
  GC_should_invoke_finalizers@Base 1:7.2d
  GC_signal_mark_stack_overflow@Base 1:7.2d
diff -Nru libgc-7.2d/debian/patches/or1k-port.patch libgc-7.2d/debian/patches/or1k-port.patch
--- libgc-7.2d/debian/patches/or1k-port.patch	1970-01-01 01:00:00.000000000 +0100
+++ libgc-7.2d/debian/patches/or1k-port.patch	2014-07-30 19:13:38.000000000 +0100
@@ -0,0 +1,37 @@
+--- a/include/private/gcconfig.h
++++ b/include/private/gcconfig.h
+@@ -148,6 +148,10 @@
+ #    endif
+ #    define mach_type_known
+ # endif
++# if defined(__or1k__)
++#    define OR1K
++#    define mach_type_known
++# endif
+ # if defined(DGUX) && (defined(i386) || defined(__i386__))
+ #    define I386
+ #    ifndef _USING_DGUX
+@@ -1584,6 +1588,23 @@
+ #   endif
+ # endif
+ 
++# ifdef OR1K
++#   define MACH_TYPE "OR1K"
++#   ifdef LINUX
++#     define OS_TYPE "LINUX"
++#     define DYNAMIC_LOADING
++      extern int _end[];
++#     define DATAEND (ptr_t)(_end)
++      extern int __data_start[];
++#     define DATASTART ((ptr_t)(__data_start))
++#     define ALIGNMENT 4
++#     ifndef HBLKSIZE
++#       define HBLKSIZE 4096
++#     endif
++#     define LINUX_STACKBOTTOM
++#   endif /* Linux */
++# endif
++
+ # ifdef HP_PA
+ #   define MACH_TYPE "HP_PA"
+ #   ifdef __LP64__
diff -Nru libgc-7.2d/debian/patches/series libgc-7.2d/debian/patches/series
--- libgc-7.2d/debian/patches/series	2014-07-03 01:28:14.000000000 +0100
+++ libgc-7.2d/debian/patches/series	2014-07-30 19:11:57.000000000 +0100
@@ -6,3 +6,4 @@
 enable-threads.diff
 allow-automake-1.13
 arm64.diff
+or1k-port.patch

Reply via email to