[gnu.g++.bug] vtables in .data segment

rfg@MCC.COM (Ron Guilmette) (04/25/89)

Can anyone tell me why g++ places virtual function tables into
the .data segment?

I was very surprized to find out that this was the case.  Up until
today, I always believed (naively) that they would be put into the
.text segment since they are (should be?) read-only.

Is something going on with vtables that I don't know about?

Please excuse me if my ignorance is showing.

// Ron Guilmette  -  MCC  -  Experimental Systems Kit Project
// 3500 West Balcones Center Drive,  Austin, TX  78759  -  (512)338-3740
// ARPA: rfg@mcc.com
// UUCP: {rutgers,uunet,gatech,ames,pyramid}!cs.utexas.edu!pp!rfg