Generate collect2 targets in bfin-xxx-gcc

Source: Internet
Author: User
Generate the collect2 goal in bfin-xxx-gcc-Linux general technology-Linux programming and kernel information. The following is a detailed description. Happy shrimp
Http://blog.csdn.net/lights_joy/
Lights@hb165.com

This article applies
Gcc-4.3.1
Configure? Target = bfin-uclinux-gnu
Blackfin series DSPs
Cygwin gcc 3.4.4

Reprinted, but keep the author information

This rule is defined:

Collect2 $ (exeext): $ (COLLECT2_OBJS) $ (LIBDEPS)

# Don't try modifying collect2 (aka ld) in place -- it might be linking this.

$ (CC) $ (ALL_CFLAGS) $ (LDFLAGS)-o T $ @\

$ (COLLECT2_OBJS) $ (LIBS) $ (COLLECT2_LIBS)

Mv-f T $ @

.

COLLECT2_OBJS = collect2.o tlink. o intl. o version. o

1.1.1.1 collect2.o

This rule is defined:

Collect2.o: collect2.c $ (CONFIG_H) $ (SYSTEM_H) coretypes. h $ (TM_H) intl. h \

$ (OBSTACK_H) $ (DEMANGLE_H) collect2.h version. h

$ (CC) $ (ALL_CFLAGS) $ (ALL_CPPFLAGS )\

-DTARGET_MACHINE = \ "$ (target_noncanonical )\"\

-C $ (srcdir)/collect2.c $ (OUTPUT_OPTION)

All required targets have been generated. compile them directly.

1.1.1.2 tlink. o

This file applies to general rules:

. C. o:

$ (CC)-c $ (ALL_CFLAGS) $ (ALL_CPPFLAGS) $ <$ (OUTPUT_OPTION );\

There are also the following dependencies:

Tlink. o: tlink. c $ (DEMANGLE_H) $ (HASHTAB_H) $ (CONFIG_H) $ (SYSTEM_H) coretypes. h $ (TM_H )\

$ (OBSTACK_H) collect2.h intl. h

As all required targets have been generated, compile them directly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.