This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Possible problem debug sections default addresses on powerpc-linux-gnu


On Thu, 13 Apr 2000, Donn Terry wrote:

> I hear the question.  I'll look into it as soon as

Thanks Donn.  Attached is one of the files I used to test orphan
placement, and garbage collection.
int __attribute__ ((__section__ (".text.f1"))) f1 (int x)
{
  return x;
}

int __attribute__ ((__section__ (".text.f2"))) f2 (int x)
{
  return x;
}

int __attribute__ ((__section__ (".text.f3"))) f3 (int x)
{
  return x;
}

int d1 __attribute__ ((__section__ (".data.d1")));
int d2 __attribute__ ((__section__ (".data.d2")));
int d3 __attribute__ ((__section__ (".data.d3")));

const int r1 __attribute__ ((__section__ (".data.r1"))) = 1;
const int r2 __attribute__ ((__section__ (".data.r2"))) = 2;
const int r3 __attribute__ ((__section__ (".data.r3"))) = 3;

int main(void)
{
  return f1 (d1) + f3 (r3);
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]