GCC m68k pc-relative

Asked by WOJTOWKI

Hello,
I was using a Microtek toolchain to generate an executable binary with relocatable code (pc-relative) and data from a fixed address (Absolute data). Today, this toolchain does not work on Windows 7 64 bits. The idea is to replace Microtek toolchain for 68000 with the GNU toolchain (GCC 4.8.0).

But I can not find the same options on the gcc compiler:

Microtec compiler "MCC68K" with:
"-Mcp": Directs the compiler to use PC-relative addressing for all code references.
"-Mda": Directs the compiler to use absolute addressing for all data references.

Gcc (m68k-elf-gcc) with:
-mpcrel

Unable to build with gcc relocatable code with no relocatable data as the Microteck compiler. With "-mpcrel", all is relocatable (code and data).

do you have an idea?

Sorry for my bad english.

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Joey Ye (jinyun-ye) said :
#1

I don't get it. If you are seeking support for non-ARM target, I'm afraid I
have no expertise to help. This tools only work for ARM targets.
2014-4-11 下午7:41于 "WOJTOWKI" <email address hidden>写道:

> New question #246860 on GCC ARM Embedded:
> https://answers.launchpad.net/gcc-arm-embedded/+question/246860
>
> Hello,
> I was using a Microtek toolchain to generate an executable binary with
> relocatable code (pc-relative) and data from a fixed address (Absolute
> data). Today, this toolchain does not work on Windows 7 64 bits. The idea
> is to replace Microtek toolchain for 68000 with the GNU toolchain (GCC
> 4.8.0).
>
> But I can not find the same options on the gcc compiler:
>
> Microtec compiler "MCC68K" with:
> "-Mcp": Directs the compiler to use PC-relative addressing for all code
> references.
> "-Mda": Directs the compiler to use absolute addressing for all data
> references.
>
> Gcc (m68k-elf-gcc) with:
> -mpcrel
>
> Unable to build with gcc relocatable code with no relocatable data as the
> Microteck compiler. With "-mpcrel", all is relocatable (code and data).
>
> do you have an idea?
>
> Sorry for my bad english.
>
> Thanks.
>
>
> --
> You received this question notification because you are an answer
> contact for GCC ARM Embedded.
>

Can you help with this problem?

Provide an answer of your own, or ask WOJTOWKI for more information if necessary.

To post a message you must log in.