Displaying 3 results from an estimated 3 matches for "code_section".
2008 Jan 05
0
Assembly on Mac OS needs to be relocatable
I'm trying to port flac 1.2.1 to OS X (I'm taking over maintainership
of the Fink package), and I'm running into some problems with
bitreader_asm.nasm. After adding the following to nasm.h:
+%elifdef OBJ_FORMAT_macho
+ %define FLAC__PUBLIC_NEEDS_UNDERSCORE
+ %idefine code_section section .text
+ %idefine data_section section .data
+ %idefine bss_section section .bss
I can get it compiling, but when it tries to link the libFLAC dylib,
it complains:
ld: warning codegen in
FLAC__bitreader_read_rice_signed_block_asm_ia32_bswap.c1_loop (offset
0x0000003A) prevents image...
2004 Sep 10
1
checking OS support for SSE
...sm
--- src/libFLAC/ia32/cpu_asm.nasm 2001/07/18 00:24:46 1.4
+++ src/libFLAC/ia32/cpu_asm.nasm 2001/07/27 08:57:04
@@ -22,7 +22,7 @@
cglobal FLAC__cpu_info_asm_ia32
cglobal FLAC__cpu_info_extended_amd_asm_ia32
-cglobal FLAC__cpu_info_sse_os_asm_ia32
+cglobal FLAC__cpu_info_sse_test_asm_ia32
code_section
@@ -81,20 +81,7 @@
pop ebx
ret
-;WATCHOUT - DO NOT call this function until you have verified CPU support of
-; SSE by inspecting the return value from FLAC__cpu_info_asm_ia32
-;NOTE - Since we're not in priv level 0 we can't just check CR4 bits 9 & 10,
-; so rig...
2017 Mar 10
3
[cfe-dev] proposal - pragma section directive in clang
...scope. All global variables and functions get assigned to the
> corresponding specialized
> section name if one is present. With this feature, the following code:
>
> // foo.c
> #pragma bss_section(".bss.alpha")
> #pragma data_section(".data.beta")
> #pragma code_section(".code.gamma")
> #pragma const_section(".const.delta")
> int a;
> int b=2;
> const int d = 5;
> int c(){
> return d;
> }
>
> ..will emit llvm-ir as:
>
> target triple = "armv7-arm-none-eabi"
> @a = global i32 0, section ".bss....