mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-14 00:29:39 +00:00
gcc m68k: put macsbug symbols in the same section as the function again, because gcc7 sometimes puts two functions in one section. --mac-strip-macsbug has no effect for now.
This commit is contained in:
parent
6edc940bd2
commit
b30c823f2b
|
@ -6771,8 +6771,8 @@ m68k_write_macsbug_name(FILE *file, const char *name)
|
|||
int len = strlen(name);
|
||||
if(len > 255)
|
||||
len = 255;
|
||||
if(flag_function_sections)
|
||||
fprintf(file, "\t.section .text.%s.macsbug,\"ax\",@progbits\n",name);
|
||||
//if(flag_function_sections)
|
||||
// fprintf(file, "\t.section .text.%s.macsbug,\"ax\",@progbits\n",name);
|
||||
fprintf(file, "# macsbug symbol\n");
|
||||
if(!retro68_hack_asm_rts_counter)
|
||||
fprintf(file, "\trts\n");
|
||||
|
@ -6783,8 +6783,8 @@ m68k_write_macsbug_name(FILE *file, const char *name)
|
|||
|
||||
ASM_OUTPUT_ASCII(file, name, len);
|
||||
fprintf(file, "\t.align 2,0\n\t.short 0\n");
|
||||
if(flag_function_sections)
|
||||
fprintf(file, "\t.section .text.%s,\"ax\",@progbits\n",name);
|
||||
//if(flag_function_sections)
|
||||
// fprintf(file, "\t.section .text.%s,\"ax\",@progbits\n",name);
|
||||
}
|
||||
|
||||
static tree
|
||||
|
|
Loading…
Reference in New Issue
Block a user