Add ChangeLog entry. Fix copyright headers.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584
diff --git a/ChangeLog b/ChangeLog
index 1da3918..160acaa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,24 @@
-2011-02-08 Anthony Green <green@moxielogic.com>
-
- * configure.ac (SYMBOL_UNDERSCORE): Define.
+2011-02-09 Anthony Green <green@moxielogic.com>
+
+ * README: Mention ARM iOS.
+
+2011-02-09 Landon Fuller <landonf@macports.org>
+
+ * Makefile.am (EXTRA_DIST): Add build-ios.sh, src/arm/gentramp.sh,
+ src/arm/trampoline.S.
+ (nodist_libffi_la_SOURCES): Add src/arc/trampoline.S.
+ * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Define.
+ * src/arm/ffi.c (ffi_trampoline_table)
+ (ffi_closure_trampoline_table_page, ffi_trampoline_table_entry)
+ (FFI_TRAMPOLINE_CODELOC_CONFIG, FFI_TRAMPOLINE_CONFIG_PAGE_OFFSET)
+ (FFI_TRAMPOLINE_COUNT, ffi_trampoline_lock, ffi_trampoline_tables)
+ (ffi_trampoline_table_alloc, ffi_closure_alloc, ffi_closure_free):
+ Define for FFI_EXEC_TRAMPOLINE_TABLE case (iOS).
+ (ffi_prep_closure_loc): Handl FFI_EXEC_TRAMPOLINE_TABLE case
+ separately.
+ * src/arm/sysv.S: Handle Apple iOS host.
+ * src/closures.c: Handle FFI_EXEC_TRAMPOLINE_TABLE case.
+ * fficonfig.h.in, configure, Makefile.in: Rebuilt.
2011-02-08 Oren Held <orenhe@il.ibm.com>
diff --git a/Makefile.am b/Makefile.am
index 512e542..2926748 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,37 +4,34 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
SUBDIRS = include testsuite man
-EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
- src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
- src/arm/ffi.c src/arm/sysv.S src/arm/trampoline.S src/arm/ffitarget.h \
- src/avr32/ffi.c src/avr32/sysv.S src/avr32/ffitarget.h \
- src/cris/ffi.c src/cris/sysv.S src/cris/ffitarget.h \
- src/ia64/ffi.c src/ia64/ffitarget.h src/ia64/ia64_flags.h \
- src/ia64/unix.S \
- src/mips/ffi.c src/mips/n32.S src/mips/o32.S \
- src/mips/ffitarget.h \
- src/m32r/ffi.c src/m32r/sysv.S src/m32r/ffitarget.h \
- src/m68k/ffi.c src/m68k/sysv.S src/m68k/ffitarget.h \
- src/powerpc/ffi.c src/powerpc/sysv.S \
- src/powerpc/linux64.S src/powerpc/linux64_closure.S \
- src/powerpc/ppc_closure.S src/powerpc/asm.h \
- src/powerpc/aix.S src/powerpc/darwin.S \
- src/powerpc/aix_closure.S src/powerpc/darwin_closure.S \
- src/powerpc/ffi_darwin.c src/powerpc/ffitarget.h \
- src/s390/ffi.c src/s390/sysv.S src/s390/ffitarget.h \
- src/sh/ffi.c src/sh/sysv.S src/sh/ffitarget.h \
- src/sh64/ffi.c src/sh64/sysv.S src/sh64/ffitarget.h \
- src/sparc/v8.S src/sparc/v9.S src/sparc/ffitarget.h \
- src/sparc/ffi.c src/x86/darwin64.S \
- src/x86/ffi.c src/x86/sysv.S src/x86/win32.S src/x86/win64.S \
- src/x86/darwin.S src/x86/freebsd.S \
- src/x86/ffi64.c src/x86/unix64.S src/x86/ffitarget.h \
- src/pa/ffitarget.h src/pa/ffi.c src/pa/linux.S src/pa/hpux32.S \
- src/frv/ffi.c src/frv/eabi.S src/frv/ffitarget.h \
- src/dlmalloc.c \
- src/moxie/ffi.c src/moxie/eabi.S \
- libtool-version ChangeLog.libffi m4/libtool.m4 \
- m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4
+EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
+ src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
+ src/arm/ffi.c src/arm/sysv.S src/arm/trampoline.S \
+ src/arm/ffitarget.h src/avr32/ffi.c src/avr32/sysv.S \
+ src/avr32/ffitarget.h src/cris/ffi.c src/cris/sysv.S \
+ src/cris/ffitarget.h src/ia64/ffi.c src/ia64/ffitarget.h \
+ src/ia64/ia64_flags.h src/ia64/unix.S src/mips/ffi.c \
+ src/mips/n32.S src/mips/o32.S src/mips/ffitarget.h \
+ src/m32r/ffi.c src/m32r/sysv.S src/m32r/ffitarget.h \
+ src/m68k/ffi.c src/m68k/sysv.S src/m68k/ffitarget.h \
+ src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/linux64.S \
+ src/powerpc/linux64_closure.S src/powerpc/ppc_closure.S \
+ src/powerpc/asm.h src/powerpc/aix.S src/powerpc/darwin.S \
+ src/powerpc/aix_closure.S src/powerpc/darwin_closure.S \
+ src/powerpc/ffi_darwin.c src/powerpc/ffitarget.h \
+ src/s390/ffi.c src/s390/sysv.S src/s390/ffitarget.h \
+ src/sh/ffi.c src/sh/sysv.S src/sh/ffitarget.h src/sh64/ffi.c \
+ src/sh64/sysv.S src/sh64/ffitarget.h src/sparc/v8.S \
+ src/sparc/v9.S src/sparc/ffitarget.h src/sparc/ffi.c \
+ src/x86/darwin64.S src/x86/ffi.c src/x86/sysv.S \
+ src/x86/win32.S src/x86/win64.S src/x86/darwin.S \
+ src/x86/freebsd.S src/x86/ffi64.c src/x86/unix64.S \
+ src/x86/ffitarget.h src/pa/ffitarget.h src/pa/ffi.c \
+ src/pa/linux.S src/pa/hpux32.S src/frv/ffi.c src/frv/eabi.S \
+ src/frv/ffitarget.h src/dlmalloc.c src/moxie/ffi.c \
+ src/moxie/eabi.S libtool-version ChangeLog.libffi \
+ m4/libtool.m4 m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 \
+ m4/ltversion.m4 build-ios.sh src/arm/gentramp.sh
info_TEXINFOS = doc/libffi.texi
diff --git a/Makefile.in b/Makefile.in
index 852b7c6..d980656 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -400,37 +400,34 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = foreign subdir-objects
SUBDIRS = include testsuite man
-EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
- src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
- src/arm/ffi.c src/arm/sysv.S src/arm/trampoline.S src/arm/ffitarget.h \
- src/avr32/ffi.c src/avr32/sysv.S src/avr32/ffitarget.h \
- src/cris/ffi.c src/cris/sysv.S src/cris/ffitarget.h \
- src/ia64/ffi.c src/ia64/ffitarget.h src/ia64/ia64_flags.h \
- src/ia64/unix.S \
- src/mips/ffi.c src/mips/n32.S src/mips/o32.S \
- src/mips/ffitarget.h \
- src/m32r/ffi.c src/m32r/sysv.S src/m32r/ffitarget.h \
- src/m68k/ffi.c src/m68k/sysv.S src/m68k/ffitarget.h \
- src/powerpc/ffi.c src/powerpc/sysv.S \
- src/powerpc/linux64.S src/powerpc/linux64_closure.S \
- src/powerpc/ppc_closure.S src/powerpc/asm.h \
- src/powerpc/aix.S src/powerpc/darwin.S \
- src/powerpc/aix_closure.S src/powerpc/darwin_closure.S \
- src/powerpc/ffi_darwin.c src/powerpc/ffitarget.h \
- src/s390/ffi.c src/s390/sysv.S src/s390/ffitarget.h \
- src/sh/ffi.c src/sh/sysv.S src/sh/ffitarget.h \
- src/sh64/ffi.c src/sh64/sysv.S src/sh64/ffitarget.h \
- src/sparc/v8.S src/sparc/v9.S src/sparc/ffitarget.h \
- src/sparc/ffi.c src/x86/darwin64.S \
- src/x86/ffi.c src/x86/sysv.S src/x86/win32.S src/x86/win64.S \
- src/x86/darwin.S src/x86/freebsd.S \
- src/x86/ffi64.c src/x86/unix64.S src/x86/ffitarget.h \
- src/pa/ffitarget.h src/pa/ffi.c src/pa/linux.S src/pa/hpux32.S \
- src/frv/ffi.c src/frv/eabi.S src/frv/ffitarget.h \
- src/dlmalloc.c \
- src/moxie/ffi.c src/moxie/eabi.S \
- libtool-version ChangeLog.libffi m4/libtool.m4 \
- m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4
+EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
+ src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
+ src/arm/ffi.c src/arm/sysv.S src/arm/trampoline.S \
+ src/arm/ffitarget.h src/avr32/ffi.c src/avr32/sysv.S \
+ src/avr32/ffitarget.h src/cris/ffi.c src/cris/sysv.S \
+ src/cris/ffitarget.h src/ia64/ffi.c src/ia64/ffitarget.h \
+ src/ia64/ia64_flags.h src/ia64/unix.S src/mips/ffi.c \
+ src/mips/n32.S src/mips/o32.S src/mips/ffitarget.h \
+ src/m32r/ffi.c src/m32r/sysv.S src/m32r/ffitarget.h \
+ src/m68k/ffi.c src/m68k/sysv.S src/m68k/ffitarget.h \
+ src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/linux64.S \
+ src/powerpc/linux64_closure.S src/powerpc/ppc_closure.S \
+ src/powerpc/asm.h src/powerpc/aix.S src/powerpc/darwin.S \
+ src/powerpc/aix_closure.S src/powerpc/darwin_closure.S \
+ src/powerpc/ffi_darwin.c src/powerpc/ffitarget.h \
+ src/s390/ffi.c src/s390/sysv.S src/s390/ffitarget.h \
+ src/sh/ffi.c src/sh/sysv.S src/sh/ffitarget.h src/sh64/ffi.c \
+ src/sh64/sysv.S src/sh64/ffitarget.h src/sparc/v8.S \
+ src/sparc/v9.S src/sparc/ffitarget.h src/sparc/ffi.c \
+ src/x86/darwin64.S src/x86/ffi.c src/x86/sysv.S \
+ src/x86/win32.S src/x86/win64.S src/x86/darwin.S \
+ src/x86/freebsd.S src/x86/ffi64.c src/x86/unix64.S \
+ src/x86/ffitarget.h src/pa/ffitarget.h src/pa/ffi.c \
+ src/pa/linux.S src/pa/hpux32.S src/frv/ffi.c src/frv/eabi.S \
+ src/frv/ffitarget.h src/dlmalloc.c src/moxie/ffi.c \
+ src/moxie/eabi.S libtool-version ChangeLog.libffi \
+ m4/libtool.m4 m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 \
+ m4/ltversion.m4 build-ios.sh src/arm/gentramp.sh
info_TEXINFOS = doc/libffi.texi
diff --git a/install-sh b/install-sh
old mode 100644
new mode 100755
diff --git a/patches/ios b/patches/ios
index 36ce29c..a52d1fc 100644
--- a/patches/ios
+++ b/patches/ios
@@ -2,10 +2,28 @@ Index: libffi/ChangeLog
===================================================================
--- libffi.orig/ChangeLog
+++ libffi/ChangeLog
-@@ -1,3 +1,7 @@
-+2011-02-08 Anthony Green <green@moxielogic.com>
-+
-+ * configure.ac (SYMBOL_UNDERSCORE): Define.
+@@ -1,3 +1,25 @@
++2011-02-09 Anthony Green <green@moxielogic.com>
++
++ * README: Mention ARM iOS.
++
++2011-02-09 Landon Fuller <landonf@macports.org>
++
++ * Makefile.am (EXTRA_DIST): Add build-ios.sh, src/arm/gentramp.sh,
++ src/arm/trampoline.S.
++ (nodist_libffi_la_SOURCES): Add src/arc/trampoline.S.
++ * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Define.
++ * src/arm/ffi.c (ffi_trampoline_table)
++ (ffi_closure_trampoline_table_page, ffi_trampoline_table_entry)
++ (FFI_TRAMPOLINE_CODELOC_CONFIG, FFI_TRAMPOLINE_CONFIG_PAGE_OFFSET)
++ (FFI_TRAMPOLINE_COUNT, ffi_trampoline_lock, ffi_trampoline_tables)
++ (ffi_trampoline_table_alloc, ffi_closure_alloc, ffi_closure_free):
++ Define for FFI_EXEC_TRAMPOLINE_TABLE case (iOS).
++ (ffi_prep_closure_loc): Handl FFI_EXEC_TRAMPOLINE_TABLE case
++ separately.
++ * src/arm/sysv.S: Handle Apple iOS host.
++ * src/closures.c: Handle FFI_EXEC_TRAMPOLINE_TABLE case.
++ * fficonfig.h.in, configure, Makefile.in: Rebuilt.
+
2011-02-08 Oren Held <orenhe@il.ibm.com>
@@ -14,16 +32,73 @@ Index: libffi/Makefile.am
===================================================================
--- libffi.orig/Makefile.am
+++ libffi/Makefile.am
-@@ -6,7 +6,7 @@ SUBDIRS = include testsuite man
+@@ -4,37 +4,34 @@ AUTOMAKE_OPTIONS = foreign subdir-object
+
+ SUBDIRS = include testsuite man
- EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
- src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
+-EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
+- src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
- src/arm/ffi.c src/arm/sysv.S src/arm/ffitarget.h \
-+ src/arm/ffi.c src/arm/sysv.S src/arm/trampoline.S src/arm/ffitarget.h \
- src/avr32/ffi.c src/avr32/sysv.S src/avr32/ffitarget.h \
- src/cris/ffi.c src/cris/sysv.S src/cris/ffitarget.h \
- src/ia64/ffi.c src/ia64/ffitarget.h src/ia64/ia64_flags.h \
-@@ -144,6 +144,9 @@ nodist_libffi_la_SOURCES += src/powerpc/
+- src/avr32/ffi.c src/avr32/sysv.S src/avr32/ffitarget.h \
+- src/cris/ffi.c src/cris/sysv.S src/cris/ffitarget.h \
+- src/ia64/ffi.c src/ia64/ffitarget.h src/ia64/ia64_flags.h \
+- src/ia64/unix.S \
+- src/mips/ffi.c src/mips/n32.S src/mips/o32.S \
+- src/mips/ffitarget.h \
+- src/m32r/ffi.c src/m32r/sysv.S src/m32r/ffitarget.h \
+- src/m68k/ffi.c src/m68k/sysv.S src/m68k/ffitarget.h \
+- src/powerpc/ffi.c src/powerpc/sysv.S \
+- src/powerpc/linux64.S src/powerpc/linux64_closure.S \
+- src/powerpc/ppc_closure.S src/powerpc/asm.h \
+- src/powerpc/aix.S src/powerpc/darwin.S \
+- src/powerpc/aix_closure.S src/powerpc/darwin_closure.S \
+- src/powerpc/ffi_darwin.c src/powerpc/ffitarget.h \
+- src/s390/ffi.c src/s390/sysv.S src/s390/ffitarget.h \
+- src/sh/ffi.c src/sh/sysv.S src/sh/ffitarget.h \
+- src/sh64/ffi.c src/sh64/sysv.S src/sh64/ffitarget.h \
+- src/sparc/v8.S src/sparc/v9.S src/sparc/ffitarget.h \
+- src/sparc/ffi.c src/x86/darwin64.S \
+- src/x86/ffi.c src/x86/sysv.S src/x86/win32.S src/x86/win64.S \
+- src/x86/darwin.S src/x86/freebsd.S \
+- src/x86/ffi64.c src/x86/unix64.S src/x86/ffitarget.h \
+- src/pa/ffitarget.h src/pa/ffi.c src/pa/linux.S src/pa/hpux32.S \
+- src/frv/ffi.c src/frv/eabi.S src/frv/ffitarget.h \
+- src/dlmalloc.c \
+- src/moxie/ffi.c src/moxie/eabi.S \
+- libtool-version ChangeLog.libffi m4/libtool.m4 \
+- m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4
++EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
++ src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
++ src/arm/ffi.c src/arm/sysv.S src/arm/trampoline.S \
++ src/arm/ffitarget.h src/avr32/ffi.c src/avr32/sysv.S \
++ src/avr32/ffitarget.h src/cris/ffi.c src/cris/sysv.S \
++ src/cris/ffitarget.h src/ia64/ffi.c src/ia64/ffitarget.h \
++ src/ia64/ia64_flags.h src/ia64/unix.S src/mips/ffi.c \
++ src/mips/n32.S src/mips/o32.S src/mips/ffitarget.h \
++ src/m32r/ffi.c src/m32r/sysv.S src/m32r/ffitarget.h \
++ src/m68k/ffi.c src/m68k/sysv.S src/m68k/ffitarget.h \
++ src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/linux64.S \
++ src/powerpc/linux64_closure.S src/powerpc/ppc_closure.S \
++ src/powerpc/asm.h src/powerpc/aix.S src/powerpc/darwin.S \
++ src/powerpc/aix_closure.S src/powerpc/darwin_closure.S \
++ src/powerpc/ffi_darwin.c src/powerpc/ffitarget.h \
++ src/s390/ffi.c src/s390/sysv.S src/s390/ffitarget.h \
++ src/sh/ffi.c src/sh/sysv.S src/sh/ffitarget.h src/sh64/ffi.c \
++ src/sh64/sysv.S src/sh64/ffitarget.h src/sparc/v8.S \
++ src/sparc/v9.S src/sparc/ffitarget.h src/sparc/ffi.c \
++ src/x86/darwin64.S src/x86/ffi.c src/x86/sysv.S \
++ src/x86/win32.S src/x86/win64.S src/x86/darwin.S \
++ src/x86/freebsd.S src/x86/ffi64.c src/x86/unix64.S \
++ src/x86/ffitarget.h src/pa/ffitarget.h src/pa/ffi.c \
++ src/pa/linux.S src/pa/hpux32.S src/frv/ffi.c src/frv/eabi.S \
++ src/frv/ffitarget.h src/dlmalloc.c src/moxie/ffi.c \
++ src/moxie/eabi.S libtool-version ChangeLog.libffi \
++ m4/libtool.m4 m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 \
++ m4/ltversion.m4 build-ios.sh src/arm/gentramp.sh
+
+ info_TEXINFOS = doc/libffi.texi
+
+@@ -144,6 +141,9 @@ nodist_libffi_la_SOURCES += src/powerpc/
endif
if ARM
nodist_libffi_la_SOURCES += src/arm/sysv.S src/arm/ffi.c
@@ -146,16 +221,73 @@ Index: libffi/Makefile.in
sysconfdir = @sysconfdir@
target = @target@
target_alias = @target_alias@
-@@ -398,7 +402,7 @@ AUTOMAKE_OPTIONS = foreign subdir-object
+@@ -396,37 +400,34 @@ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ AUTOMAKE_OPTIONS = foreign subdir-objects
SUBDIRS = include testsuite man
- EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
- src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
+-EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
+- src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
- src/arm/ffi.c src/arm/sysv.S src/arm/ffitarget.h \
-+ src/arm/ffi.c src/arm/sysv.S src/arm/trampoline.S src/arm/ffitarget.h \
- src/avr32/ffi.c src/avr32/sysv.S src/avr32/ffitarget.h \
- src/cris/ffi.c src/cris/sysv.S src/cris/ffitarget.h \
- src/ia64/ffi.c src/ia64/ffitarget.h src/ia64/ia64_flags.h \
-@@ -485,10 +489,10 @@ nodist_libffi_la_SOURCES = $(am__append_
+- src/avr32/ffi.c src/avr32/sysv.S src/avr32/ffitarget.h \
+- src/cris/ffi.c src/cris/sysv.S src/cris/ffitarget.h \
+- src/ia64/ffi.c src/ia64/ffitarget.h src/ia64/ia64_flags.h \
+- src/ia64/unix.S \
+- src/mips/ffi.c src/mips/n32.S src/mips/o32.S \
+- src/mips/ffitarget.h \
+- src/m32r/ffi.c src/m32r/sysv.S src/m32r/ffitarget.h \
+- src/m68k/ffi.c src/m68k/sysv.S src/m68k/ffitarget.h \
+- src/powerpc/ffi.c src/powerpc/sysv.S \
+- src/powerpc/linux64.S src/powerpc/linux64_closure.S \
+- src/powerpc/ppc_closure.S src/powerpc/asm.h \
+- src/powerpc/aix.S src/powerpc/darwin.S \
+- src/powerpc/aix_closure.S src/powerpc/darwin_closure.S \
+- src/powerpc/ffi_darwin.c src/powerpc/ffitarget.h \
+- src/s390/ffi.c src/s390/sysv.S src/s390/ffitarget.h \
+- src/sh/ffi.c src/sh/sysv.S src/sh/ffitarget.h \
+- src/sh64/ffi.c src/sh64/sysv.S src/sh64/ffitarget.h \
+- src/sparc/v8.S src/sparc/v9.S src/sparc/ffitarget.h \
+- src/sparc/ffi.c src/x86/darwin64.S \
+- src/x86/ffi.c src/x86/sysv.S src/x86/win32.S src/x86/win64.S \
+- src/x86/darwin.S src/x86/freebsd.S \
+- src/x86/ffi64.c src/x86/unix64.S src/x86/ffitarget.h \
+- src/pa/ffitarget.h src/pa/ffi.c src/pa/linux.S src/pa/hpux32.S \
+- src/frv/ffi.c src/frv/eabi.S src/frv/ffitarget.h \
+- src/dlmalloc.c \
+- src/moxie/ffi.c src/moxie/eabi.S \
+- libtool-version ChangeLog.libffi m4/libtool.m4 \
+- m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4
++EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
++ src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
++ src/arm/ffi.c src/arm/sysv.S src/arm/trampoline.S \
++ src/arm/ffitarget.h src/avr32/ffi.c src/avr32/sysv.S \
++ src/avr32/ffitarget.h src/cris/ffi.c src/cris/sysv.S \
++ src/cris/ffitarget.h src/ia64/ffi.c src/ia64/ffitarget.h \
++ src/ia64/ia64_flags.h src/ia64/unix.S src/mips/ffi.c \
++ src/mips/n32.S src/mips/o32.S src/mips/ffitarget.h \
++ src/m32r/ffi.c src/m32r/sysv.S src/m32r/ffitarget.h \
++ src/m68k/ffi.c src/m68k/sysv.S src/m68k/ffitarget.h \
++ src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/linux64.S \
++ src/powerpc/linux64_closure.S src/powerpc/ppc_closure.S \
++ src/powerpc/asm.h src/powerpc/aix.S src/powerpc/darwin.S \
++ src/powerpc/aix_closure.S src/powerpc/darwin_closure.S \
++ src/powerpc/ffi_darwin.c src/powerpc/ffitarget.h \
++ src/s390/ffi.c src/s390/sysv.S src/s390/ffitarget.h \
++ src/sh/ffi.c src/sh/sysv.S src/sh/ffitarget.h src/sh64/ffi.c \
++ src/sh64/sysv.S src/sh64/ffitarget.h src/sparc/v8.S \
++ src/sparc/v9.S src/sparc/ffitarget.h src/sparc/ffi.c \
++ src/x86/darwin64.S src/x86/ffi.c src/x86/sysv.S \
++ src/x86/win32.S src/x86/win64.S src/x86/darwin.S \
++ src/x86/freebsd.S src/x86/ffi64.c src/x86/unix64.S \
++ src/x86/ffitarget.h src/pa/ffitarget.h src/pa/ffi.c \
++ src/pa/linux.S src/pa/hpux32.S src/frv/ffi.c src/frv/eabi.S \
++ src/frv/ffitarget.h src/dlmalloc.c src/moxie/ffi.c \
++ src/moxie/eabi.S libtool-version ChangeLog.libffi \
++ m4/libtool.m4 m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 \
++ m4/ltversion.m4 build-ios.sh src/arm/gentramp.sh
+
+ info_TEXINFOS = doc/libffi.texi
+
+@@ -485,10 +486,10 @@ nodist_libffi_la_SOURCES = $(am__append_
$(am__append_15) $(am__append_16) $(am__append_17) \
$(am__append_18) $(am__append_19) $(am__append_20) \
$(am__append_21) $(am__append_22) $(am__append_23) \
@@ -168,7 +300,7 @@ Index: libffi/Makefile.in
libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
AM_CCASFLAGS = $(AM_CPPFLAGS)
-@@ -724,6 +728,8 @@ src/arm/sysv.lo: src/arm/$(am__dirstamp)
+@@ -724,6 +725,8 @@ src/arm/sysv.lo: src/arm/$(am__dirstamp)
src/arm/$(DEPDIR)/$(am__dirstamp)
src/arm/ffi.lo: src/arm/$(am__dirstamp) \
src/arm/$(DEPDIR)/$(am__dirstamp)
@@ -177,7 +309,7 @@ Index: libffi/Makefile.in
src/avr32/$(am__dirstamp):
@$(MKDIR_P) src/avr32
@: > src/avr32/$(am__dirstamp)
-@@ -811,6 +817,8 @@ mostlyclean-compile:
+@@ -811,6 +814,8 @@ mostlyclean-compile:
-rm -f src/arm/ffi.lo
-rm -f src/arm/sysv.$(OBJEXT)
-rm -f src/arm/sysv.lo
@@ -186,7 +318,7 @@ Index: libffi/Makefile.in
-rm -f src/avr32/ffi.$(OBJEXT)
-rm -f src/avr32/ffi.lo
-rm -f src/avr32/sysv.$(OBJEXT)
-@@ -929,6 +937,7 @@ distclean-compile:
+@@ -929,6 +934,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@src/alpha/$(DEPDIR)/osf.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@src/arm/$(DEPDIR)/ffi.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@src/arm/$(DEPDIR)/sysv.Plo@am__quote@
@@ -412,14 +544,15 @@ Index: libffi/src/arm/ffi.c
===================================================================
--- libffi.orig/src/arm/ffi.c
+++ libffi/src/arm/ffi.c
-@@ -1,5 +1,5 @@
+@@ -1,5 +1,6 @@
/* -----------------------------------------------------------------------
- ffi.c - Copyright (c) 1998, 2008 Red Hat, Inc.
+ ffi.c - Copyright (c) 1998, 2008, 2011 Red Hat, Inc.
++ Copyright (c) 2011 Plausible Labs Cooperative, Inc.
ARM Foreign Function Interface
-@@ -337,6 +337,220 @@ ffi_prep_incoming_args_SYSV(char *stack,
+@@ -337,6 +338,220 @@ ffi_prep_incoming_args_SYSV(char *stack,
/* How to make a trampoline. */
@@ -640,7 +773,7 @@ Index: libffi/src/arm/ffi.c
#define FFI_INIT_TRAMPOLINE(TRAMP,FUN,CTX) \
({ unsigned char *__tramp = (unsigned char*)(TRAMP); \
unsigned int __fun = (unsigned int)(FUN); \
-@@ -349,6 +563,7 @@ ffi_prep_incoming_args_SYSV(char *stack,
+@@ -349,6 +564,7 @@ ffi_prep_incoming_args_SYSV(char *stack,
__clear_cache((&__tramp[0]), (&__tramp[19])); \
})
@@ -648,7 +781,7 @@ Index: libffi/src/arm/ffi.c
/* the cif must already be prep'ed */
-@@ -368,10 +583,16 @@ ffi_prep_closure_loc (ffi_closure* closu
+@@ -368,10 +584,16 @@ ffi_prep_closure_loc (ffi_closure* closu
else
FFI_ASSERT (0);
@@ -670,14 +803,15 @@ Index: libffi/src/arm/sysv.S
===================================================================
--- libffi.orig/src/arm/sysv.S
+++ libffi/src/arm/sysv.S
-@@ -1,5 +1,5 @@
+@@ -1,5 +1,6 @@
/* -----------------------------------------------------------------------
- sysv.S - Copyright (c) 1998, 2008 Red Hat, Inc.
+ sysv.S - Copyright (c) 1998, 2008, 2011 Red Hat, Inc.
++ Copyright (c) 2011 Plausible Labs Cooperative, Inc.
ARM Foreign Function Interface
-@@ -39,7 +39,11 @@
+@@ -39,7 +40,11 @@
#else
#define CNAME(x) x
#endif
@@ -689,7 +823,7 @@ Index: libffi/src/arm/sysv.S
#endif
#ifdef __ELF__
-@@ -48,6 +52,12 @@
+@@ -48,6 +53,12 @@
#define LSYM(x) x
#endif
@@ -702,7 +836,7 @@ Index: libffi/src/arm/sysv.S
/* We need a better way of testing for this, but for now, this is all
we can do. */
@ This selects the minimum architecture level required.
-@@ -105,21 +115,33 @@
+@@ -105,21 +116,33 @@
.align 0
.thumb
.thumb_func
@@ -737,7 +871,7 @@ Index: libffi/src/arm/sysv.S
UNWIND .fnstart
.endm
#endif
-@@ -141,8 +163,7 @@ _L__\name:
+@@ -141,8 +164,7 @@ _L__\name:
#endif
.endm
@@ -747,7 +881,7 @@ Index: libffi/src/arm/sysv.S
@ r1: &ecif
@ r2: cif->bytes
@ r3: fig->flags
-@@ -222,11 +243,18 @@ ARM_FUNC_START ffi_call_SYSV
+@@ -222,11 +244,18 @@ ARM_FUNC_START ffi_call_SYSV
#endif
LSYM(Lepilogue):
@@ -767,7 +901,7 @@ Index: libffi/src/arm/sysv.S
/*
-@@ -247,7 +275,7 @@ ARM_FUNC_START ffi_closure_SYSV
+@@ -247,7 +276,7 @@ ARM_FUNC_START ffi_closure_SYSV
sub sp, sp, #16
str sp, [sp, #8]
add r1, sp, #8
@@ -776,7 +910,7 @@ Index: libffi/src/arm/sysv.S
cmp r0, #FFI_TYPE_INT
beq .Lretint
-@@ -299,7 +327,9 @@ ARM_FUNC_START ffi_closure_SYSV
+@@ -299,7 +328,9 @@ ARM_FUNC_START ffi_closure_SYSV
.ffi_closure_SYSV_end:
UNWIND .fnend
@@ -786,7 +920,7 @@ Index: libffi/src/arm/sysv.S
/* Below are VFP hard-float ABI call and closure implementations.
-@@ -371,7 +401,7 @@ LSYM(Lbase_args):
+@@ -371,7 +402,7 @@ LSYM(Lbase_args):
@ assume no return value.
cmp r2, #0
beq LSYM(Lepilogue_vfp)
@@ -799,7 +933,17 @@ Index: libffi/src/closures.c
===================================================================
--- libffi.orig/src/closures.c
+++ libffi/src/closures.c
-@@ -32,7 +32,7 @@
+@@ -1,6 +1,7 @@
+ /* -----------------------------------------------------------------------
+- closures.c - Copyright (c) 2007 Red Hat, Inc.
+- Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc
++ closures.c - Copyright (c) 2007, 2009, 2010 Red Hat, Inc.
++ Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc
++ Copyright (c) 2011 Plausible Labs Cooperative, Inc.
+
+ Code to allocate and deallocate memory for closures.
+
+@@ -32,7 +33,7 @@
#include <ffi.h>
#include <ffi_common.h>
@@ -808,7 +952,7 @@ Index: libffi/src/closures.c
# if __gnu_linux__
/* This macro indicates it may be forbidden to map anonymous memory
with both write and execute permission. Code compiled when this
-@@ -63,7 +63,11 @@
+@@ -63,7 +64,11 @@
#if FFI_CLOSURES
diff --git a/src/arm/ffi.c b/src/arm/ffi.c
index 1f926ee..0cb82cf 100644
--- a/src/arm/ffi.c
+++ b/src/arm/ffi.c
@@ -1,5 +1,6 @@
/* -----------------------------------------------------------------------
ffi.c - Copyright (c) 1998, 2008, 2011 Red Hat, Inc.
+ Copyright (c) 2011 Plausible Labs Cooperative, Inc.
ARM Foreign Function Interface
diff --git a/src/arm/sysv.S b/src/arm/sysv.S
index a50cff4..14a7f03 100644
--- a/src/arm/sysv.S
+++ b/src/arm/sysv.S
@@ -1,5 +1,6 @@
/* -----------------------------------------------------------------------
sysv.S - Copyright (c) 1998, 2008, 2011 Red Hat, Inc.
+ Copyright (c) 2011 Plausible Labs Cooperative, Inc.
ARM Foreign Function Interface
diff --git a/src/closures.c b/src/closures.c
index 279a54a..39067ac 100644
--- a/src/closures.c
+++ b/src/closures.c
@@ -1,6 +1,7 @@
/* -----------------------------------------------------------------------
- closures.c - Copyright (c) 2007 Red Hat, Inc.
- Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc
+ closures.c - Copyright (c) 2007, 2009, 2010 Red Hat, Inc.
+ Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc
+ Copyright (c) 2011 Plausible Labs Cooperative, Inc.
Code to allocate and deallocate memory for closures.