mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-21 13:17:58 +01:00
Patch gcc-3.4.3-BeOS-jcr-fix.diff from Marcin's gcc 3.4.3 package. It
keeps the JCR section (Java support stuff) from being created. A bit hacky. There's the target define TARGET_USE_JCR_SECTION which is documented to be used to disable it, but AFAI have seen it is never evaluated. git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14995 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1c87b35698
commit
57087cfc96
@ -134,7 +134,9 @@ extern void *__deregister_frame_info_bases (const void *)
|
||||
extern void __do_global_ctors_1 (void);
|
||||
|
||||
/* Likewise for _Jv_RegisterClasses. */
|
||||
#ifdef JCR_SECTION_NAME
|
||||
extern void _Jv_RegisterClasses (void *) TARGET_ATTRIBUTE_WEAK;
|
||||
#endif
|
||||
|
||||
#ifdef OBJECT_FORMAT_ELF
|
||||
|
||||
|
@ -338,9 +338,13 @@ do { fputs (integer_asm_op (POINTER_SIZE / BITS_PER_UNIT, TRUE), FILE); \
|
||||
at program start-up time. */
|
||||
#if defined (TARGET_ASM_NAMED_SECTION) && SUPPORTS_WEAK
|
||||
#ifndef JCR_SECTION_NAME
|
||||
/* Hack to remove _Jv crap on BeOS. i know it should be made somehow through
|
||||
config files, but i don't know how (in which file ;) */
|
||||
#ifndef __BEOS__
|
||||
#define JCR_SECTION_NAME ".jcr"
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* This decision to use a .jcr section can be overridden by defining
|
||||
USE_JCR_SECTION to 0 in target file. This is necessary if target
|
||||
|
Loading…
x
Reference in New Issue
Block a user