Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
7 years ago

aligned_alloc linker issues

I'm trying to share data between the ARM and the FPGA. I've made the F2SDRAM interface 256 bits wide. So, to make life easier I'd like to align the data to a 256 bit boundary. Figured I use the aligned_alloc() function. The linker chokes with the following message:

aligned_alloc.c:(.text+0x14): undefined reference to 'posix_memalign'

I'm using Altera Baremetal GCC toolchain

Quartus Prime 17.1

Any thoughts on how to make the linker happy?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Ok that frowny face is not suppose to be there.

    aligned_alloc.c: (.text+0x14):

    Why does : ( with no space between automatically become a frowny face. Just doesn't seem right.