www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/12/20/22:10:48

From: garyh AT agora DOT rain DOT com (Gary Hanson)
Subject: crt0.s problem?
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Mon, 20 Dec 1993 18:43:36 -0800 (PST)

I tried to make a minor mod to crt0.s, found that it didn't work, took out
my patch, and found that the original crt0.s (from djlsr111) doesn't seen
to assemble to the same .o file found in the binary distribution; the newly
assembled version is longer and causes link errors when attempting to compile
a C program. Did I leave out a define, or switch or something?

C:\DJG\LIB ls -l cr*
-rw-rw-rw-   1 anonymou anonymou     1562 Nov 30 02:23 crt0.o
-rw-rw-rw-   1 anonymou anonymou     4369 Nov 30 10:23 crt0.s

C:\DJG\LIB mv crt0.o crt0.org

C:\DJG\LIB gcc -c crt0.s

C:\DJG\LIB ls -l cr*
-rw-rw-rw-   1 anonymou anonymou     2220 Dec 20 17:50 crt0.o
-rw-rw-rw-   1 anonymou anonymou     1562 Nov 30 02:23 crt0.org
-rw-rw-rw-   1 anonymou anonymou     4369 Nov 30 10:23 crt0.s

C:\DJG\LIB gcc -o hello hello.c
fake(.text+d2): undefined reference to `mcount_init'
fake(.text+105): undefined reference to `mcount_write'
fake(.text+17d): undefined reference to `mcount_histogram'
fake(.text+18b): undefined reference to `mcount_skip'
fake(.text+1a2): undefined reference to `mcount_histogram'

  --Gary Hanson  (garyh AT agora DOT rain DOT com)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019