ChangeLog-9495 402 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049
  1. Thu Dec 21 12:43:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  2. * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the
  3. old style TOC16 references without using R_PPC_GOT.
  4. (ppc_reloc_type): Ditto.
  5. (ppc_elf_reloc_type_lookup): Add support for TOC16.
  6. (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner.
  7. (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc.
  8. (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support.
  9. (ppc_elf_check_relocs): New function for GOT/PLT support that is
  10. work in progress.
  11. (ppc_elf_adjust_dynamic_symbol): Ditto.
  12. (ppc_elf_adjust_dynindx): Ditto.
  13. (ppc_elf_size_dynamic_sections): Ditto.
  14. (ppc_elf_finish_dynamic_symbol): Ditto.
  15. (ppc_elf_finish_dynamic_sections): Ditto.
  16. (ELF_DYNAMIC_INTERPRETER): Define.
  17. Wed Dec 20 19:14:18 1995 Ken Raeburn <raeburn@cygnus.com>
  18. * elf.c (copy_private_bfd_data): When attaching sections to
  19. segments ignore sections that won't be allocated. Patch from
  20. Andreas Schwab.
  21. Tue Dec 19 20:01:43 1995 Ken Raeburn <raeburn@cygnus.com>
  22. * config.bfd: Match on m68k-cbm-* only if OS doesn't match
  23. anything else.
  24. Tue Dec 19 16:38:59 1995 Ian Lance Taylor <ian@cygnus.com>
  25. * coff-i960.c (CALC_ADDEND): Define.
  26. (coff_i960_relocate_section): Add the input section VMA to the
  27. addend for PC relative relocs.
  28. Sun Dec 17 20:11:55 1995 Kim Knuttila <krk@cygnus.com>
  29. * peicode.h (pe_print_pdata): Must test the entire entry for zero
  30. to correctly terminate.
  31. Fri Dec 15 12:05:57 1995 Ian Lance Taylor <ian@cygnus.com>
  32. * targets.c (enum bfd_endian): Define.
  33. (bfd_target): Rename byteorder_big_p to byteorder, and change it
  34. from boolean to enum bfd_endian. Change header_byteorder_big_p
  35. correspondingly.
  36. * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
  37. (bfd_header_big_endian, bfd_header_little_endian): New macros.
  38. * bfd-in2.h: Rebuild.
  39. * All targets: Change initialization of byteorder and
  40. header_byteorder to use enum bfd_endian values rather than
  41. booleans.
  42. * All files: Change all references to byteorder_big_p and
  43. header_byteorder_big_p to use new bfd_*_endian macros.
  44. * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
  45. s_vaddr.
  46. * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
  47. vma.
  48. * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
  49. Fri Dec 15 07:32:09 1995 steve chamberlain <sac@slash.cygnus.com>
  50. * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
  51. Thu Dec 14 13:45:37 1995 Ian Lance Taylor <ian@cygnus.com>
  52. * ieee.c: Lots of minor cleanups. Make many functions return
  53. errors rather than calling abort. Also:
  54. (ieee_write_twobyte): Remove; change callers to call existing
  55. ieee_write_2bytes function.
  56. (ieee_write_expression): Don't output the section twice when
  57. outputting a local symbol. Don't emit an extraneous zero if there
  58. is only one term.
  59. (ieee_slurp_sections): Set the lma as well as the vma.
  60. (ieee_archive_p): Use bfd_alloc_grow rather than an obstack.
  61. * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just
  62. a recognized one or bfd_arch_unknown.
  63. (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy
  64. to succeed.
  65. (ihex_get_symtab): Likewise.
  66. Wed Dec 13 15:44:06 1995 Ian Lance Taylor <ian@cygnus.com>
  67. * aoutx.h: Include <ctype.h>.
  68. (struct aout_link_includes_table): Define.
  69. (struct aout_link_includes_totals): Define.
  70. (struct aout_link_includes_entry): Define.
  71. (aout_link_includes_lookup): Define macro.
  72. (struct aout_final_link_info): Add includes field.
  73. (aout_link_includes_newfunc): New static function.
  74. (NAME(aout,final_link)): Initialize includes hash table.
  75. (aout_link_write_symbols): Eliminate duplicate N_BINCL entries.
  76. Wed Dec 13 10:52:14 1995 Stan Shebs <shebs@andros.cygnus.com>
  77. * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff.
  78. Wed Dec 13 11:07:45 1995 Kim Knuttila <krk@cygnus.com>
  79. * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
  80. Tue Dec 12 17:42:06 1995 Kim Knuttila <krk@cygnus.com>
  81. * peicode.h (pe_print_reloc): New function to dump the .reloc section.
  82. (pe_print_private_bfd_data): call pe_print_reloc.
  83. * coffcode.h (coff_set_alignment_hook): .reloc section alignment.
  84. * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed
  85. up some debugging as well.
  86. Tue Dec 12 11:34:23 1995 Ian Lance Taylor <ian@cygnus.com>
  87. * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette
  88. <rfg@monkeys.com>.
  89. Fri Dec 8 17:47:07 1995 Ian Lance Taylor <ian@cygnus.com>
  90. * elflink.h (elf_link_add_object_symbols): Set section_count to 0
  91. when setting sections to NULL.
  92. Wed Dec 6 17:05:37 1995 Ian Lance Taylor <ian@cygnus.com>
  93. * xcofflink.c (struct xcoff_loader_info): Add export_defineds
  94. field.
  95. (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter.
  96. (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT
  97. for all symbols.
  98. * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
  99. * bfd-in2.h: Rebuild.
  100. Mon Dec 4 16:40:47 1995 Kim Knuttila <krk@cygnus.com>
  101. * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's
  102. Mon Dec 4 11:25:39 1995 Ian Lance Taylor <ian@cygnus.com>
  103. * ihex.c (ihex_scan): Handle record types 4 and 5.
  104. (ihex_object_p): Permit types 4 and 5.
  105. (ihex_set_section_contents): Remove check for out of range
  106. addresses.
  107. (ihex_write_object_contents): Generate types 4 and 5.
  108. * elflink.h (elf_link_output_extsym): Just ignore warning and
  109. indirect references to symbols which don't really exist.
  110. Sun Dec 3 19:00:27 1995 Kim Knuttila <krk@cygnus.com>
  111. * peicode.h (pe_print_idata): Minor format fixes
  112. (pe_print_edata): New function. Under private printing, this formats
  113. the edata section of a PE file.
  114. (pe_print_private_bfd_data): Added call to pe_print_edata.
  115. Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
  116. * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
  117. index, don't call stoi.
  118. Fri Dec 1 14:46:51 1995 Ian Lance Taylor <ian@cygnus.com>
  119. * srec.c (srec_scan): Set lma as well as vma.
  120. * ihex.c: New file; support for Intel Hex format.
  121. * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour.
  122. (ihex_vec): Declare.
  123. (bfd_target_vector): Always include ihex_vec.
  124. * bfd.c (struct _bfd): Add ihex_data field to tdata union.
  125. * Makefile.in: Rebuild dependencies.
  126. (BFD_LIBS): Add ihex.o
  127. (BFD_LIBS_CFILES): Add ihex.c.
  128. * bfd-in2.h: Rebuild.
  129. * elf.c (assign_file_positions_for_segments): Sort the sections in
  130. each segment.
  131. (get_program_header_size): Return the right size if segment_map is
  132. not NULL.
  133. (copy_private_bfd_data): Don't bother to sort the sections.
  134. * bfd.c (bfd_record_phdr): New function.
  135. * bfd-in.h (bfd_record_phdr): Declare.
  136. * bfd-in2.h: Rebuild.
  137. * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
  138. BFD_ASSERT.
  139. * libbfd.c (bfd_malloc, bfd_realloc): New functions.
  140. (bfd_zmalloc): Return PTR, not char *. Take size_t, not
  141. bfd_size_type.
  142. * libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
  143. (bfd_zmalloc): Change declaration.
  144. * libbfd.h: Rebuild.
  145. * Many files: Use bfd_malloc and bfd_realloc rather than malloc
  146. and realloc. Don't set bfd_error_no_memory if they fail.
  147. Thu Nov 30 19:32:26 1995 Kim Knuttila <krk@cygnus.com>
  148. * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous
  149. uses as well. Added a new howto to deal with TOCREL16 relocs that
  150. are TOCDEFN as well.
  151. (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs
  152. to handle RVA relocs from dlltool.
  153. (ppc_coff_rtype2howto): TOCDEFN reloc addition.
  154. (coff_ppc_rtype_to_howto): TOCDEFN reloc addition.
  155. (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition.
  156. * coffcode.h (coff_set_alignment_hook): check idata$X sections
  157. to get the right section alignment.
  158. Thu Nov 30 16:48:18 1995 Ian Lance Taylor <ian@cygnus.com>
  159. * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
  160. p_paddr if p_paddr is zero.
  161. (make_mapping): Set includes_filehdr and includes_phdrs for first
  162. PT_LOAD segment.
  163. (map_sections_to_segments): Set includes_phdrs for PT_PHDR
  164. segment.
  165. (assign_file_positions_for_segments): Handle includes_filehdr and
  166. includes_phdrs. Remove special handling of PT_PHDR and first
  167. PT_LOAD segments.
  168. (copy_private_bfd_data): Set includes_filehdr and includes_phdr
  169. when appropriate. Remove special handling of PT_PHDR segment.
  170. Use a more complex condition for when a section is included in a
  171. segment to handle Solaris linker oddities.
  172. Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
  173. * coff-m88k.c (howto_table): Reformatted for easier reading;
  174. special_function now points to new function m88k_special_reloc.
  175. (howto_hvrt16): Function previously used for handling HVRT16 relocs
  176. removed.
  177. (rtype2howto): Do not add reloc's r_offset to the addend, this will
  178. be done correctly by m88k_special_reloc.
  179. (reloc_processing): New function to be used by RELOC_PROCESSING.
  180. (RELOC_PROCESSING): Define to call reloc_processing.
  181. Wed Nov 29 12:42:36 1995 Ian Lance Taylor <ian@cygnus.com>
  182. * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
  183. (pe_print_pdata): Likewise.
  184. * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
  185. obstack_alloc fails.
  186. (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
  187. fails.
  188. * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
  189. * Many files: don't set bfd_error_no_memory if one of the above
  190. routines fails.
  191. * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
  192. if p_paddr_valid is set.
  193. (copy_private_bfd_data): New static function.
  194. (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.
  195. * elf.c (assign_file_positions_for_segments): Fix case where extra
  196. program headers were allocated.
  197. * elf.c (_bfd_elf_print_private_bfd_data): New function.
  198. * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
  199. * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
  200. _bfd_elf_print_private_bfd_data.
  201. * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
  202. r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
  203. Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
  204. (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
  205. RELOC_SECTION_LITA for ALPHA_R_IGNORE.
  206. (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
  207. RELOC_SECTION_ABS to RELOC_SECTION_NONE.
  208. Tue Nov 28 16:59:50 1995 Ian Lance Taylor <ian@cygnus.com>
  209. * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
  210. * elf.c (make_mapping): New static function.
  211. (map_sections_to_segments): New static function.
  212. (elf_sort_sections): New static function.
  213. (assign_file_positions_for_segments): New static function.
  214. (map_program_segments): Remove.
  215. (get_program_header_size): Remove sorted_hdrs, count, and
  216. maxpagesize parameters. Simplify.
  217. (assign_file_positions_except_relocs): When generating an
  218. executable, use assign_file_positions_for_segments.
  219. (elf_sort_hdrs): Remove.
  220. (_bfd_elf_sizeof_headers): Remove eliminated parameters from call
  221. to get_program_header_size.
  222. Mon Nov 27 12:27:46 1995 Ian Lance Taylor <ian@cygnus.com>
  223. * hp300hpux.c (MY(callback)): Set lma as well as vma.
  224. * configure, config.in: Regenerate with autoconf 2.7.
  225. * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
  226. * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
  227. Wed Nov 22 12:02:09 1995 Ian Lance Taylor <ian@cygnus.com>
  228. * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section.
  229. (ecoff_sec_to_styp_flags): Likewise.
  230. (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST.
  231. (ecoff_set_symbol_info): Handle scRConst.
  232. (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST.
  233. (ecoff_compute_section_file_positions): Handle .rconst section.
  234. (_bfd_ecoff_write_object_contents): Likewise.
  235. (ecoff_link_check_archive_element): Handle scRConst.
  236. (ecoff_link_add_externals): Likewise.
  237. (ecoff_link_write_external): Handle .rconst section.
  238. (ecoff_reloc_link_order): Likewise.
  239. * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst.
  240. * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst
  241. section.
  242. (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
  243. * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
  244. DEF_DYNAMIC flag is set.
  245. Tue Nov 21 13:25:29 1995 Ken Raeburn <raeburn@cygnus.com>
  246. * host-aout.c: If TRAD_HEADER is defined, include it.
  247. Tue Nov 21 13:03:57 1995 Ian Lance Taylor <ian@cygnus.com>
  248. * aclocal.m4 (AC_PROG_CC): Remove local definition.
  249. (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM.
  250. (BFD_NEED_DECLARATION): New function.
  251. * configure.in: Use BFD_NEED_DECLARATION.
  252. * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section.
  253. * configure, config.in: Rebuild with autoconf 2.6.
  254. * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
  255. special_sections before returning when called with a non XCOFF
  256. BFD.
  257. * coffgen.c (coff_renumber_symbols): Sort common symbols with
  258. global symbols.
  259. * coffcode.h (coff_compute_section_file_positions): Only pad the
  260. previous section to force file alignment when creating an
  261. executable.
  262. Mon Nov 20 14:54:09 1995 Ian Lance Taylor <ian@cygnus.com>
  263. * coffcode.h (coff_compute_section_file_positions): If
  264. RS6000COFF_C, set up the .debug section.
  265. * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
  266. if it is not large enough to accomodate the entire TOC area with
  267. signed 16 bit offsets.
  268. (xcoff_write_global_symbol): Handle negative TOC offsets in global
  269. linkage code.
  270. (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
  271. TOC anchor to use the TOC value used in the output file.
  272. Sat Nov 18 18:01:41 1995 Ian Lance Taylor <ian@cygnus.com>
  273. * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
  274. (_bfd_coff_read_string_table): Likewise.
  275. Sat Nov 18 19:43:04 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
  276. * pe-arm.c: Fix typos.
  277. * coff-arm.c: Likewise.
  278. Fri Nov 17 16:22:04 1995 Kim Knuttila <krk@cygnus.com>
  279. * coff-ppc.c (list_ele): Added "cat"egory member.
  280. (record_toc): New category parameter (priv or pub).
  281. (ppc_record_toc_entry): Check to see if toc bounds exceeded.
  282. (ppc_process_before_allocation): Removed embrionic data-in-toc from
  283. the mainline. It addes extra toc cells in error.
  284. (ppc_coff_swap_sym_in_hook): Added some documentation.
  285. (dump_toc): Can now diagnose "virtual toc" chicanery.
  286. Fri Nov 17 10:41:25 1995 Philippe De Muyter <phdm@info.ucl.ac.be>
  287. * elf-bfd.h (struct elf_link_hash_table): Change type of
  288. dynsymcount and bucketcount fields from size_t to bfd_size_type.
  289. Fri Nov 17 10:02:58 1995 Ian Lance Taylor <ian@cygnus.com>
  290. * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
  291. pointerize C_LEAFSTAT or C_LEAFEXT entries.
  292. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
  293. DT_INIT and DT_FINI entries if the _init or _fini symbol is
  294. defined or mentioned in a regular file.
  295. Thu Nov 16 15:16:42 1995 Kim Knuttila <krk@cygnus.com>
  296. * coff-ppc.c (ppc_record_data_in_toc_entry): new function
  297. (coff_ppc_relocate_section): Handle TOCDEFN attribute
  298. (coff_ppc_relocate_section): Correct REL24 handling
  299. (ppc_process_before_allocation): Correct TOCDEFN handling
  300. * peicode.h (dir_names): Added name descriptions
  301. Thu Nov 16 03:38:03 1995 Ken Raeburn <raeburn@cygnus.com>
  302. * VERSION: Updated to cygnus-2.6.
  303. Wed Nov 15 19:30:07 1995 Ken Raeburn <raeburn@cygnus.com>
  304. * targets.c (m68k4knetbsd_vec): Declare.
  305. Wed Nov 15 18:05:52 1995 Ian Lance Taylor <ian@cygnus.com>
  306. * targets.c (bfd_target): Change type of second argument to
  307. _bfd_print_private_bfd_data from void * to PTR.
  308. * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
  309. using PTR rather than void *.
  310. * bfd-in2.h, libbfd.h: Rebuild.
  311. * peicode.h (pe_print_private_bfd_data): Change vfile from void *
  312. to PTR.
  313. * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
  314. _bfd_generic_bfd_print_private_bfd_data rather than casting
  315. bfd_true.
  316. Wed Nov 15 04:09:14 1995 Ken Raeburn <raeburn@cygnus.com>
  317. * Makefile.in (.dep1): Fix stupid typo in last change. Remove any
  318. "DO NOT DELETE" lines or blank lines that mkdep writes on some
  319. systems.
  320. (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
  321. BFD64_BACKENDS_CFILES): New variables.
  322. (CFILES): Use them.
  323. Tue Nov 14 11:52:23 1995 Ian Lance Taylor <ian@cygnus.com>
  324. * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
  325. not at the file position of the first section.
  326. * coffcode.h (coff_compute_section_file_positions): Avoid using
  327. unportable #elif.
  328. (coff_write_object_contents): When generating a PPC PE executable
  329. with no symbols, round up the file size to a COFF_PAGE_SIZE
  330. boundary.
  331. * cofflink.c (_bfd_coff_final_link): If there are no symbols,
  332. don't write out a string table.
  333. * elf.c (bfd_section_from_shdr): When using a different section
  334. header, pass the new one to _bfd_elf_make_section_from_shdr.
  335. (elf_fake_sections): Don't set sh_info and sh_entsize fields.
  336. (elf_map_symbols): Add section VMA to symbol value when comparing
  337. against 0.
  338. (_bfd_elf_compute_section_file_positions): Only build symbol table
  339. if there are some symbols. Set file offset of symtab and strtab
  340. sections.
  341. (assign_file_positions_except_relocs): Remove dosyms parameter.
  342. Change all callers. Never set file offset of symtab and strtab
  343. sections.
  344. (_bfd_elf_copy_private_section_data): New function.
  345. (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
  346. (_bfd_elf_copy_private_symbol_data): New function.
  347. (swap_out_syms): Check for special mapping of st_shndx created by
  348. copy_private_symbol_data.
  349. * elfxx-target.h: Use new copy routines.
  350. * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
  351. (_bfd_elf_copy_private_section_data): Declare.
  352. * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
  353. * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
  354. C_NT_WEAK.
  355. * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
  356. _bfd_dummy_target, matching the recent change to archive
  357. recognition.
  358. Mon Nov 13 13:24:38 1995 Ian Lance Taylor <ian@cygnus.com>
  359. * libbfd.c (bfd_get_file_window): Use casts to avoid doing
  360. arithmetic on PTR types.
  361. * aout-target.h (MY(callback)): Set the lma of the sections.
  362. * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
  363. symbol into a reloc against the section.
  364. Mon Nov 13 07:31:35 1995 Kim Knuttila <krk@cygnus.com>
  365. * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
  366. glue for the relocs: IMGLUE and IFGLUE.
  367. (record_toc): new function - tracks toc contents
  368. (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
  369. (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
  370. (ppc_coff_rtype2howto): removed invalid IMGLUE hack
  371. (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
  372. (ppc_record_toc_entry): Removed a debug define (duh)
  373. * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
  374. (pe_print_idata): New function - formats the idata section data
  375. (pe_print_pdata): New function - formats the pdata section data
  376. (pe_print_private_bfd_data): calls to above
  377. Sun Nov 12 12:23:24 1995 Stan Shebs <shebs@andros.cygnus.com>
  378. * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
  379. * coff-rs6000.c (rs6000coff_vec): Add conditional defines
  380. TARGET_SYM and TARGET_NAME for vector and BFD name.
  381. * coff-pmac.c (pmac_xcoff_vec): Remove.
  382. (TARGET_SYM, TARGET_NAME): Define.
  383. * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
  384. machine to 0, not all PowerMacs are 601s.
  385. Fri Nov 10 12:10:14 1995 Ian Lance Taylor <ian@cygnus.com>
  386. * elfcode.h (elf_object_p): Read in any program headers.
  387. * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
  388. based on the program headers, if any.
  389. (elf_fake_sections): Set sh_addr from the vma, not the lma.
  390. (map_program_segments): Set p_paddr of program headers based on
  391. the lma.
  392. Thu Nov 9 13:01:31 1995 Ian Lance Taylor <ian@cygnus.com>
  393. * archive.c (bfd_generic_archive_p): Preserve tdata in case of
  394. failure.
  395. * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
  396. trying to do a relocateable link with a non-a.out object file.
  397. * archive.c (bfd_generic_archive_p): Check the first object file
  398. in an archive even if target_defaulted is set. If the object file
  399. has the wrong xvec, reject it.
  400. * aoutx.h (NAME(aout,set_section_contents)): If a section can not
  401. be represented, report the name via _bfd_error_handler.
  402. (translate_to_native_sym_flags): Likewise.
  403. * elf32-mips.c (mips_elf_final_link): Likewise.
  404. * oasys.c (oasys_write_sections): Likewise.
  405. * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
  406. which checks for STYP_OVRFLO sections.
  407. (coff_compute_section_file_positions): If RS6000COFF_C, handle
  408. reloc and lineno count overflows.
  409. (coff_write_object_contents): Call coff_count_linenumbers before
  410. coff_compute_section_file_positions. If RS6000COFF_C, handle
  411. reloc and lineno count overflows.
  412. * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
  413. relocs before dealing with .pad sections. Count overflow section
  414. headers when handling .pad sections.
  415. * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
  416. if RS6000COFF_C.
  417. * xcofflink.c (XCOFF_DESCRIPTOR): Define.
  418. (struct xcoff_link_hash_table): Add descriptor_section and
  419. special_sections fields.
  420. (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
  421. (xcoff_link_add_symbols): Set linkage section alignment. Create
  422. descriptor section. Check for magic symbol names (_text, etc.),
  423. and record them in special_sections if found. Set
  424. XCOFF_DESCRIPTOR flag for a function descriptor, and set its
  425. descriptor field to point back to the function code symbol.
  426. (xcoff_sweep): Always mark the special descriptor_section.
  427. (bfd_xcoff_export_symbol): Check whether the symbol might be a
  428. function descriptor, and mark it if it is.
  429. (bfd_xcoff_size_dynamic_sections): Add new special_sections
  430. parameter, and fill it in. Allocate space for the descriptor
  431. section.
  432. (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
  433. global linkage code. If an undefined function descriptor is
  434. exported, arrange to define it. Warn about any other undefined
  435. exported symbol.
  436. (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
  437. (xcoff_write_global_symbol): Create a function descriptor when
  438. necessary.
  439. * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
  440. * bfd-in2.h: Rebuild.
  441. Thu Nov 9 08:40:23 1995 Kim Knuttila <krk@cygnus.com>
  442. * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
  443. (ppc_coff_link_hash_table): new types for hashing
  444. (ppc_coff_link_hash_newfunc): hash entry constructor
  445. (ppc_coff_link_hash_table_init): hash table initializer
  446. (ppc_coff_link_hash_table_create): hash table constructor
  447. (ppc_record_toc_entry): changed references to hash table
  448. (coff_ppc_relocate_section): changed references to hash table
  449. * libcoff-in.h (coff_link_hash_entry): removed toc_offset
  450. * libcoff.h: Rebuild
  451. * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
  452. (coff_link_add_symbols): removed toc_offset init
  453. Thu Nov 9 04:00:38 1995 Ken Raeburn <raeburn@cygnus.com>
  454. * Makefile.in (.dep1): Make sure the file mkdep is to write exists
  455. first.
  456. * configure.in: Added new option --with[out]-mmap. Set USE_MMAP
  457. if it is given and mmep is available.
  458. * acconfig.h: Undef USE_MMAP.
  459. * configure, config.in: Regenerated.
  460. * aoutx.h: If USE_MMAP is not defined, do all symbol and string
  461. table handling the old way.
  462. (aout_get_external_symbols): Don't complain if last byte of string
  463. table is nonzero.
  464. * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
  465. (bfd_free_window) [! USE_MMAP]: Don't define.
  466. (bfd_get_file_window,
  467. _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
  468. Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu>
  469. * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
  470. 0xffff0000.
  471. Wed Nov 8 11:31:11 1995 Ian Lance Taylor <ian@cygnus.com>
  472. * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
  473. compatible with AMD generated COFF files. Try to support both AMD
  474. and GNU formats simultaneously.
  475. (coff_a29k_relocate_section): Likewise.
  476. * libbfd.c (bfd_get_file_window): Change writable parameter from
  477. int to boolean; update all callers. Pass MAP_SHARED if not
  478. writable--it's required on Solaris. Cast fprintf argument to
  479. avoid warning.
  480. * bfd-in.h (bfd_get_file_window): Update declaration.
  481. * bfd-in2.h: Rebuild.
  482. * aoutx.h: Update calls to bfd_get_file_window.
  483. * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
  484. Change all uses.
  485. (xcoff_swap_ldhdr_in): New static function.
  486. (xcoff_swap_ldsym_in): New static function.
  487. (xcoff_find_reloc): Handle the case of a single reloc correctly.
  488. (xcoff_link_add_symbols): If we just created a descriptor, pass it
  489. to _bfd_generic_link_add_one_symbol, to save a hash lookup.
  490. Handle XTY_ER/XMC_XO symbols correctly.
  491. (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
  492. rather than normal symbol table.
  493. (bfd_xcoff_import_symbol): It's not an error if the symbol is
  494. already defined with the same absolute value.
  495. (xcoff_mark): When considering called symbols, check whether the
  496. descriptor is from a dynamic object, rather than the symbol
  497. itself.
  498. (xcoff_build_ldsyms): Likewise.
  499. * libbfd.c (bfd_get_file_window): Change return type to boolean.
  500. Cast realloc and malloc return values. If malloc or realloc fail,
  501. set bfd_error_no_memory.
  502. * bfd-in.h (bfd_get_file_window): Change type to boolean.
  503. * bfd-in2.h: Rebuild.
  504. Tue Nov 7 11:53:48 1995 Kim Knuttila <krk@cygnus.com>
  505. * coff-ppc.c (ppc_record_toc_entry): new function.
  506. (in_reloc_p): changed return value.
  507. (coff_ppc_relocate_section): much rework.
  508. (ppc_allocate_toc_section): new function.
  509. (ppc_process_before_allocation): new function.
  510. (ppc_coff_swap_sym_in_hook): new function.
  511. * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
  512. (coff_link_add_symbols): initialize toc_offset.
  513. * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
  514. (coff_swap_aouthdr_out): Added more sections to the data
  515. dictionary for the pe file header. Also changed linker version
  516. number on the ppc side.
  517. (dir_names): small improvements to the dictionary printing.
  518. (pe_mkobject_hook): save the file level flags.
  519. * libcoff-in.h (coff_link_hash_entry): added toc_offset field
  520. (pe_tdata): added real_flags field
  521. (coff_tdata): added local_toc_sym_map and access macro
  522. * libcoff.h (coff_link_hash_entry): added toc_offset field
  523. (pe_tdata): added real_flags field
  524. (coff_tdata): added local_toc_sym_map and access macro
  525. * coffcode.h (coff_set_alignment_hook): added hook for PE.
  526. (coff_mkobject): init for local_toc_sym_map
  527. (coff_write_object_contents): set the internal_a.magic to
  528. IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
  529. ppc compilers use.
  530. Tue Nov 7 13:48:58 1995 Ian Lance Taylor <ian@cygnus.com>
  531. * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
  532. entries until both the line number address and the function name
  533. address are too large.
  534. * configure.in: Call AC_CHECK_PROG to find and cache AR.
  535. * configure: Rebuilt.
  536. * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
  537. is defined in the environment.
  538. Tue Nov 7 10:57:24 1995 Jeffrey A Law (law@cygnus.com)
  539. * som.c (som_get_section_contents_in_window): Define to use
  540. generic version.
  541. Mon Nov 6 17:13:15 1995 Harry Dolan <dolan@ssd.intel.com>
  542. * coff-i860.c: New file, based on coff-i386.c.
  543. * cpu-i860.c: New file, based on cpu-i386.c.
  544. * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
  545. * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
  546. targets, using i860coff_vec.
  547. * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
  548. trad-core.o and hosts/i860mach3.h.
  549. (i860coff_vec): Use coff-i860.o and cofflink.o.
  550. * configure: Rebuild.
  551. * Makefile.in: Rebuild dependencies.
  552. (ALL_MACHINES): Add cpu-i860.o.
  553. (BFD32_BACKENDS): Add coff-i860.o.
  554. (CFILES): Add cpu-i860.c and coff-i860.c.
  555. * targets.c (i860coff_vec): Declare.
  556. (bfd_target_vector): Add &i860coff_vec.
  557. * archures.c (bfd_i860_arch): Declare.
  558. (bfd_archures_list): Add &bfd_i860_arch.
  559. * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
  560. (coff_set_flags): Handle bfd_arch_i860.
  561. (coff_write_object_contents): Handle I860 a.out magic number.
  562. Mon Nov 6 14:34:07 1995 Ian Lance Taylor <ian@cygnus.com>
  563. * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
  564. the created .tc section to 2.
  565. (xcoff_mark): Don't keep a .loader reloc for a call to an
  566. undefined symbol when creating a shared library.
  567. (xcoff_build_ldsyms): When creating a shared library, generate
  568. global linkage code for a call to an undefined symbol.
  569. Sun Nov 5 21:44:13 1995 Ken Raeburn <raeburn@cygnus.com>
  570. * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
  571. BFD32_BACKENDS, BFD64_BACKENDS.
  572. (.dep1): Put mkdep output in a separate file.
  573. Rebuilt dependencies.
  574. * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
  575. value.
  576. Permit use of mmap when available:
  577. * configure.in: Check for mmap, madvise, mprotect.
  578. * config.in, configure: Regenerated.
  579. * libbfd.c (struct _bfd_window_internal): Define type.
  580. (bfd_init_window, bfd_free_window, bfd_get_file_window): New
  581. functions.
  582. (ok_to_map): New static variable for debugging.
  583. (_bfd_generic_get_section_contents_in_window): New function.
  584. * bfd-in.h (bfd_window_internal): Declare type.
  585. (bfd_window): Define type.
  586. (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
  587. * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
  588. Declare.
  589. * libaout.h (struct aoutdata): Add two window fields.
  590. (obj_aout_sym_window, obj_aout_string_window): New macros.
  591. * aoutx.h (some_aout_object_p): Initialize windows.
  592. (aout_get_external_symbols): Get symbol data and strings in
  593. windows instead of explicitly allocated buffers.
  594. (slurp_symbol_table): Free window instead of memory.
  595. (bfd_free_cached_info): Release windows instead of freeing storage
  596. directly.
  597. (aout_link_free_symbols): Ditto.
  598. * targets.c (bfd_target): Add new field for
  599. get_section_contents_in_window.
  600. (BFD_JUMP_TABLE_GENERIC): Updated.
  601. * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
  602. coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
  603. libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
  604. macros for get_section_contents_in_window field.
  605. Sat Nov 4 12:23:26 1995 Fred Fish <fnf@cygnus.com>
  606. * core.c: Renamed to corefile.c
  607. * makefile.dos (OBJS): Change core.o to corefile.o
  608. * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
  609. Fri Nov 3 15:54:59 1995 Ian Lance Taylor <ian@cygnus.com>
  610. * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
  611. to o. Clobber and restore the list of new csects around the call
  612. to _bfd_generic_link_add_one_symbol, in case it wants to report a
  613. linker error and the linker wants to read the symbol table. Reset
  614. the line number count of a real section even if it has no relocs.
  615. (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
  616. * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
  617. is too small.
  618. Thu Nov 2 23:16:39 1995 Ian Lance Taylor <ian@cygnus.com>
  619. * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
  620. an undefined symbol in a shared link.
  621. * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
  622. oldtype from bfd_link_order_type to bfd_link_hash_type. From
  623. phdm@info.ucl.ac.be (Philippe De Muyter).
  624. Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
  625. * coff-m88k.c (rtype2howto): New static function.
  626. (RTYPE2HOWTO): Use it rather than a macro definition.
  627. * coffcode.h (coff_write_object_contents): set internal_a.magic
  628. to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
  629. * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
  630. define TRAD_HEADER to new file hosts/delta68.h.
  631. m88*-motorola-sysv*, however, does use ptrace-core.o.
  632. * hosts/delta68.h: New file.
  633. * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
  634. bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
  635. Wed Nov 1 13:51:54 1995 Ken Raeburn <raeburn@cygnus.com>
  636. * i386linux.c (MY(vec)): Declare before use.
  637. Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com>
  638. * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
  639. Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
  640. * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
  641. BFD is not of the right type.
  642. (bfd_elf_get_needed_list): Likewise.
  643. * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
  644. * sunos.c (bfd_sunos_get_needed_list): Likewise.
  645. * xcofflink.c (XCOFF_XVECP): Define.
  646. (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
  647. of the right type.
  648. (bfd_xcoff_import_symbol): Likewise.
  649. (bfd_xcoff_export_symbol): Likewise.
  650. (bfd_xcoff_link_count_reloc): Likewise.
  651. (bfd_xcoff_record_link_assignment): Likewise.
  652. (bfd_xcoff_size_dynamic_sections): Likewise.
  653. * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
  654. table index against the number of symbols for a base relative
  655. reloc.
  656. * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
  657. static function.
  658. * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
  659. full_aouthdr flag here...
  660. (_bfd_xcoff_bfd_final_link): ...not here.
  661. Tue Oct 31 12:52:02 1995 Fred Fish <fnf@cygnus.com>
  662. * libelf.h: Rename to elf-bfd.h to avoid conflict with
  663. systems that have a system <libelf.h>.
  664. * Makefile.in: Globally replace libelf.h with elf-bfd.h.
  665. * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
  666. elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
  667. elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
  668. elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
  669. elfxx-target.h: Include elf-bfd.h rather than libelf.h.
  670. * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
  671. Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com>
  672. * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If
  673. set, set BSF_WEAK in symbol. Change all callers.
  674. (ecoff_get_extr): Set weakext based on BSF_WEAK.
  675. (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
  676. _bfd_generic_link_add_one_symbol.
  677. (ecoff_indirect_link_order): Check that the section tdata relocs
  678. are not NULL before using them.
  679. * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
  680. define TRAD_HEADER as hosts/alphalinux.h.
  681. * configure: Rebuild.
  682. * hosts/alphalinux.h: New file.
  683. * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
  684. not int.
  685. Tue Oct 31 12:34:11 1995 Ian Lance Taylor <ian@cygnus.com>
  686. * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
  687. C_ECOMM storage classes.
  688. * xcofflink.c (xcoff_mark_symbol): New static function, broken out
  689. of xcoff_mark.
  690. (xcoff_mark): Call xcoff_mark_symbol.
  691. (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
  692. (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
  693. doing it by hand.
  694. (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
  695. Mon Oct 30 14:53:48 1995 Ian Lance Taylor <ian@cygnus.com>
  696. * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
  697. field.
  698. (xcoff_find_reloc): New static function.
  699. (xcoff_link_add_symbols): Use it.
  700. (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
  701. (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't
  702. relocate the value of C_DECL.
  703. * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
  704. Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com>
  705. * cofflink.c (_bfd_coff_generic_relocate_section): Make
  706. callback decide what goes in .relocs.
  707. * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
  708. * peicode.h (pe_mkobject_hook): Only copy aouthdr if
  709. there is one.
  710. Sat Oct 28 01:51:02 1995 Ian Lance Taylor <ian@cygnus.com>
  711. * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
  712. absolute section.
  713. Fri Oct 27 18:14:39 1995 Ian Lance Taylor <ian@cygnus.com>
  714. * xcofflink.c: More improvements, mostly to fix handling of
  715. constructors and a few other special cases.
  716. * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
  717. zero, reverting yesterday's change.
  718. * bfd-in.h (bfd_xcoff_link_record_set): Declare.
  719. (bfd_xcoff_link_count_reloc): Declare.
  720. (bfd_xcoff_record_link_assignment): Declare.
  721. * bfd-in2.h: Rebuild.
  722. Fri Oct 27 14:42:15 1995 Niklas Hallqvist <niklas@appli.se>
  723. * PORTING, aout-arm.c, aout-encap.c, aout-target.h,
  724. aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
  725. i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
  726. i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
  727. ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
  728. Change PAGE_SIZE to TARGET_PAGE_SIZE.
  729. * m68knetbsd.c: Ditto as well as add support for the m68k4k object
  730. format.
  731. * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
  732. segments includes the a.out header. See to that the magic number
  733. *always* is big-endian.
  734. * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
  735. m68k4k NetBSD configurations.
  736. * configure.in, configure: Separate i386 & mips NetBSD
  737. configurations from other BSD ones. Don't assume DEC is the only
  738. thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
  739. configurations. Add support for m68k4k NetBSD object format.
  740. * libaout.h: Added M_68K4K_NETBSD magic.
  741. * m68k4knetbsd.c: New file.
  742. * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
  743. * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
  744. <machine/endian.h>.
  745. * hosts/mipsnbsd.h: New file.
  746. Thu Oct 26 14:16:47 1995 Ian Lance Taylor <ian@cygnus.com>
  747. * xcofflink.c: Numerous changes to get closer to a working XCOFF
  748. linker.
  749. * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
  750. toc_section, and entry_section fields.
  751. (struct xcoff_section_tdata): Remove ldrel_count field.
  752. * libcoff.h: Rebuild.
  753. * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
  754. fields.
  755. (coff_compute_section_file_positions): If RS6000COFF_C, generate
  756. full a.out header if full_aouthdr is set in xcoff_data.
  757. (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc
  758. based on sections stored in xcoff_data.
  759. * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
  760. fields.
  761. (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
  762. (rs6000coff_vec): Set symbol_leading_char to '.'.
  763. * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
  764. value stored in ret rather than returning a pointer value.
  765. Wed Oct 25 23:10:39 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  766. * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
  767. format for now.
  768. Wed Oct 25 16:19:27 1995 Jeffrey A Law (law@cygnus.com)
  769. * som.c (som_slurp_string_table): Allocate the strings with malloc
  770. since they're free'd by free_cached_info.
  771. (som_slurp_symbol_table): Similarly for the symbol table.
  772. Wed Oct 25 14:59:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
  773. * Makefile.in (diststuff): Don't make headers.
  774. Wed Oct 25 11:32:54 1995 Ian Lance Taylor <ian@cygnus.com>
  775. * Makefile.in: Rebuild dependencies.
  776. * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
  777. output_bfd is not SunOS.
  778. (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of
  779. non-SunOS input files.
  780. * xcofflink.c: Extensive changes to support linking shared objects
  781. and generating a .loader section.
  782. * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
  783. (struct xcoff_section_tdata): Add lineno_count, first_symndx,
  784. last_symndx, and ldrel_count fields.
  785. * libcoff.h: Rebuild.
  786. * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
  787. * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
  788. is set.
  789. * bfd-in.h (bfd_xcoff_import_symbol): Declare.
  790. (bfd_xcoff_export_symbol): Declare.
  791. (bfd_xcoff_size_dynamic_sections): Declare.
  792. * bfd-in2.h: Rebuild.
  793. Tue Oct 24 17:44:20 1995 Stan Shebs <shebs@andros.cygnus.com>
  794. * configure.in: Add xcofflink.o to pmac_xcoff_vec.
  795. * configure: Rebuild.
  796. * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
  797. * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
  798. contents.
  799. (pmac_xcoff_vec): Update to use new xcoff support.
  800. * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
  801. (xcoff_write_armap): Declare buf as unsigned char.
  802. * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
  803. * mpw-make.sed: Generalize subdir_do edit.
  804. Tue Oct 24 10:25:01 1995 Jeffrey A Law (law@cygnus.com)
  805. * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
  806. correctly. Don't initialize asect->vma.
  807. Fri Oct 20 13:23:48 1995 Ken Raeburn <raeburn@cygnus.com>
  808. * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
  809. something a little less than the page size.
  810. Thu Oct 19 13:06:09 1995 Ian Lance Taylor <ian@cygnus.com>
  811. * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
  812. Wed Oct 18 16:20:08 1995 steve chamberlain <sac@slash.cygnus.com>
  813. * coff-i386.c (coff_i386_reloc_type_lookup): New.
  814. * coffcode.h (coff_write_object_contents): If .bss is before
  815. .data us that as data_start.
  816. * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
  817. calc correct.
  818. * peicode.h (add_data_entry): Use _cooked_size of data directory.
  819. (coff_swap_outhdr_out): Hardwire in version number.
  820. Wed Oct 18 16:50:54 1995 Ken Raeburn <raeburn@cygnus.com>
  821. * sunos.c (sunos_add_dynamic_symbols): Rename local variables
  822. major and minor to *_vno, since the former are also macros in
  823. SunOS header files. Cast result of bfd_alloc to appropriate
  824. type.
  825. * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
  826. before assigning to sec_data.
  827. Wed Oct 18 13:25:17 1995 Ian Lance Taylor <ian@cygnus.com>
  828. * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
  829. now relative to the section, not absolute.
  830. * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
  831. get the file name when there is a N_SO directory name. When
  832. handling stabs, remember that section->vma was added to the
  833. offset.
  834. Tue Oct 17 18:24:54 1995 Ian Lance Taylor <ian@cygnus.com>
  835. * sunos.c (struct sunos_link_hash_table): Add needed field.
  836. (sunos_link_hash_table_create): Call bfd_release, not free.
  837. (sunos_link_hash_table_create): Initialize needed field.
  838. (sunos_add_dynamic_symbols): Record needed objects.
  839. (bfd_sunos_get_needed_list): New function.
  840. * bfd-in.h (bfd_sunos_get_needed_list): Declare.
  841. * bfd-in2.h: Rebuild.
  842. Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com>
  843. * libcoff-in.h (pe_data_type.in_reloc_p): New.
  844. Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com>
  845. * bfd-in.h (struct bfd_link_needed_list): Rename from
  846. bfd_elf_link_needed_list.
  847. * bfd-in2.h: Rebuild.
  848. * elf.c, elflink.h, libelf.h: Corresponding changes.
  849. Add start at AIX linker support; no shared libraries yet.
  850. * xcofflink.c: New file.
  851. * configure.in (rs600coff_vec): Use xcofflink.o.
  852. * configure: Rebuild.
  853. * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
  854. fields.
  855. (struct xcoff_section_tdata): Define.
  856. (xcoff_section_data): Define macro.
  857. (_bfd_xcoff_bfd_link_hash_table_create): Declare.
  858. (_bfd_xcoff_bfd_link_add_symbols): Declare.
  859. (_bfd_xcoff_bfd_final_link): Declare.
  860. (_bfd_ppc_xcoff_relocate_section): Declare.
  861. * libcoff.h: Rebuild.
  862. * coff-rs6000.c: Clean up a bit.
  863. (xcoff_mkobject): Default modtype to 1L, not RE. Initialize
  864. cputype, csects, and debug_indices.
  865. (xcoff_copy_private_bfd_data): Copy cputype.
  866. (xcoff_howto_table): Rename from rs6000coff_howto_table.
  867. (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
  868. (xcoff_reloc_type_lookup): Rename from
  869. rs6000coff_reloc_type_lookup.
  870. (coff_relocate_section): Define.
  871. (_bfd_xcoff_sizeof_headers): Define.
  872. (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
  873. (_bfd_xcoff_bfd_relax_section): Define.
  874. (_bfd_xcoff_bfd_link_split_section): Define.
  875. (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
  876. coff.
  877. * coffcode.h (coff_compute_section_file_positions): If AIX,
  878. increment sofar by SMALL_AOUTSZ if not executable.
  879. (coff_write_object_contents): If AIX, always output an a.out
  880. header; if not executable, header size of SMALL_AOUTSZ.
  881. * hash.c (struct bfd_strtab_hash): Add xcoff field.
  882. (_bfd_stringtab_init): Initialize xcoff field.
  883. (_bfd_xcoff_stringtab_init): New function.
  884. (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
  885. (_bfd_stringtab_emit): In XCOFF mode, write out length.
  886. * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
  887. * libbfd.h: Rebuild.
  888. * Makefile.in: Rebuild dependencies.
  889. (BFD32_BACKENDS): Add xcofflink.o.
  890. (CFILES): Add xcofflink.c.
  891. * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
  892. SEC_NO_FLAGS, for .acommon section. From Peter Schauer
  893. <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>.
  894. Sat Oct 14 21:36:02 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  895. * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
  896. Fri Oct 13 17:48:43 1995 Ken Raeburn <raeburn@cygnus.com>
  897. * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
  898. * config.in: Regenerated.
  899. * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
  900. (_bfd_chunksize): New variable.
  901. (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
  902. for obstack chunk size.
  903. * configure.in: Check for getpagesize.
  904. * configure: Regenerated.
  905. Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  906. * trad-core.c (rawptr): Make it a local variable of
  907. ptrace_unix_core_file_p.
  908. Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com>
  909. * coff-arm.c (in_reloc_p): New.
  910. * coff-i386.c (in_reloc_p): New.
  911. * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
  912. (coff_write_object_contents): Only set has_reloc_section
  913. if PE_IMAGE.
  914. * cofflink.c (_bfd_coff_generic_relocate_section): Call
  915. in_reloc_p to decide if reloc should be emitted.
  916. * libcoff.h (pe_data_type.in_reloc_p): New.
  917. * peicode.h (pe_mkobject): Initialize in_reloc_p.
  918. Wed Oct 11 00:49:29 1995 Ian Lance Taylor <ian@cygnus.com>
  919. * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
  920. (_bfd_coff_read_internal_relocs): Likewise.
  921. * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
  922. (_bfd_coff_read_internal_relocs): Likewise.
  923. * elflink.h (elf_link_add_object_symbols): Correct conditions
  924. under which type and size change warnings are issued.
  925. Tue Oct 10 18:32:46 1995 Ian Lance Taylor <ian@cygnus.com>
  926. * coffgen.c (coff_count_linenumbers): Don't count line numbers for
  927. a symbol which is not in a real section.
  928. (coff_write_native_symbol): Corresponding change.
  929. * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
  930. coff_link_hash_newfunc and make non-static.
  931. (_bfd_coff_link_hash_table_init): New function, broken out of
  932. _bfd_coff_link_hash_table_create.
  933. (_bfd_coff_link_hash_table_create): Use it.
  934. (process_embedded_commands): Make static.
  935. * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
  936. (_bfd_coff_link_hash_table_init): Declare.
  937. * libcoff.h: Rebuild.
  938. * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
  939. field in XCOFF tdata.
  940. (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
  941. U802ROMAGIC, for clarity. Try to set arch and machine correctly
  942. based on cputype stored in a.out header, or in n_type of initial
  943. .file symbol.
  944. (coff_write_object_contents): Set cputype correctly in a.out
  945. header.
  946. (coff_slurp_symbol_table): Add casts to file_ptr to avoid
  947. warnings.
  948. * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
  949. (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
  950. old resv1 field.
  951. * libcoff-in.h (struct xcoff_tdata): Add cputype field.
  952. * libcoff.h: Rebuild.
  953. * cpu-rs6000.c (rs6000_compatible): New static function.
  954. (bfd_rs6000_arch): Use it.
  955. * cpu-powerpc.c (powerpc_compatible): New static function.
  956. (arch_info_struct): Define various flavours of PowerPC.
  957. (bfd_powerpc_arch): Use powerpc_compatible. Point at
  958. arch_info_struct.
  959. Tue Oct 10 10:50:46 1995 Fred Fish <fnf@cygnus.com>
  960. * Makefile.in (FLAGS_TO_PASS): Remove BISON.
  961. Tue Oct 10 01:28:29 1995 Ian Lance Taylor <ian@cygnus.com>
  962. * elflink.h (elf_link_add_object_symbols): Don't warn about
  963. changing the size or type if the old definition was weak.
  964. Mon Oct 9 11:24:08 1995 Ian Lance Taylor <ian@cygnus.com>
  965. * coffcode.h (combined_entry_type): Add fix_line field.
  966. (coff_slurp_line_table): Warn if we try to set the lineno field of
  967. a symbol twice.
  968. (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
  969. C_EINCL by setting fix_line. Fix C_BSTAT symbol value.
  970. * coffgen.c (coff_mangle_symbols): Handle fix_line.
  971. (coff_write_symbol): Only use N_DEBUG if the symbol is in the
  972. absolute section.
  973. (coff_print_symbol): Print fix_value symbols in a useful fashion.
  974. * libcoff.h: Rebuild.
  975. * libcoff-in.h (struct xcoff_tdata): Define.
  976. (xcoff_data): Define.
  977. * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
  978. * bfd-in2.h, libcoff.h: Rebuild.
  979. * coff-rs6000.c (xcoff_mkobject): New static function.
  980. (coff_mkobject): Define.
  981. (xcoff_copy_private_bfd_data): New static function.
  982. (coff_bfd_copy_private_bfd_data): Define.
  983. (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
  984. signed to bitfield.
  985. (rs6000coff_vec): Add DYNAMIC to object_flags.
  986. * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
  987. .loader sections specially.
  988. (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
  989. section alignment from the XCOFF tdata information.
  990. (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
  991. F_SHROBJ, and copy the extra a.out header information into the
  992. XCOFF tdata structure.
  993. (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
  994. F_DYNLOAD and the extra a.out header information.
  995. (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
  996. C_HIDEXT symbol with attached csect information.
  997. * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
  998. in the o_maxdata field.
  999. (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
  1000. * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
  1001. end if BSF_NOT_AT_END is set.
  1002. * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
  1003. _bfd_read_ar_hdr_fn.
  1004. * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
  1005. * bfd-in2.h, libbfd.h: Rebuild.
  1006. * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
  1007. return value.
  1008. (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
  1009. (bfd_slurp_bsd_armap_f2): Likewise.
  1010. (_bfd_slurp_extended_name_table): Likewise.
  1011. Fri Oct 6 16:18:35 1995 Ken Raeburn <raeburn@cygnus.com>
  1012. Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  1013. * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
  1014. when the symbol table is empty.
  1015. * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
  1016. space for section symbols, since we don't output them either.
  1017. (elf_m68k_adjust_dynindx): Removed.
  1018. * ptrace-core.c (rawptr): Make it a local variable of
  1019. ptrace_unix_core_file_p.
  1020. Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1021. * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
  1022. NULL.
  1023. * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
  1024. Mac object file formats.
  1025. Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
  1026. * coffgen.c (coff_fix_symbol_name): Don't try to set up file
  1027. auxent if there isn't one.
  1028. (coff_write_symbols): If there is no file auxent, use SYMNMLEN
  1029. rather than FILNMLEN as the maximum name length.
  1030. * coffcode.h (bfd_coff_backend_data): Add new field
  1031. _bfd_coff_print_aux.
  1032. (bfd_coff_print_aux): New static function.
  1033. (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
  1034. scnlen field of an XTY_LD csect aux entry.
  1035. (coff_print_aux): New static function.
  1036. (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
  1037. in coff_pointerize_aux_hook.
  1038. (bfd_coff_std_swap_table): Initialize new field.
  1039. * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
  1040. * libcoff.h: Rebuild.
  1041. * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
  1042. * coff-mips.c (mips_ecoff_backend_data): Likewise.
  1043. * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
  1044. if there are symbols, for native AIX ld compatibility.
  1045. * coffcode.h (bfd_coff_backend_data): Add new field
  1046. _bfd_coff_pointerize_aux_hook.
  1047. (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
  1048. or I960, and as 0 otherwise.
  1049. (bfd_coff_std_swap_table): Initialize new field.
  1050. * libcoff.h: Rebuild.
  1051. * coffgen.c (coff_pointerize_aux): Change parameters to take
  1052. symbol pointer instead of type and class, and to take aux index.
  1053. Call _bfd_coff_pointerize_aux_hook if it is defined.
  1054. (coff_get_normalized_symtab): Always call coff_pointerize_aux.
  1055. * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
  1056. * coff-mips.c (mips_ecoff_backend_data): Likewise.
  1057. * coff-rs6000.c: Add full support for AIX archives. Rewrite old
  1058. read-only/host-only support.
  1059. * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
  1060. BSF_LOCAL.
  1061. (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
  1062. RS6000COFF_C.
  1063. * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
  1064. BFD_JUMP_TABLE_ARCHIVE accordingly.
  1065. * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
  1066. (_bfd_compute_and_write_armap): Declare.
  1067. (_bfd_generic_read_ar_hdr): Declare.
  1068. (_bfd_read_ar_hdr): Define.
  1069. (_bfd_noarchive_read_ar_hdr): Define.
  1070. (_bfd_archive_bsd_read_ar_hdr): Define.
  1071. (_bfd_archive_coff_read_ar_hdr): Define.
  1072. * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
  1073. _bfd_read_ar_hdr instead.
  1074. (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
  1075. (_bfd_compute_and_write_armap): Rename from
  1076. compute_and_write_armap. Make non-static. Change all callers.
  1077. * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
  1078. than _bfd_snarf_ar_hdr.
  1079. * aout-target.h (MY_read_ar_hdr): Define if not defined.
  1080. * ieee.c (ieee_read_ar_hdr): Define.
  1081. * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
  1082. * oasys.c (oasys_read_ar_hdr): Define.
  1083. * som.c (som_read_ar_hdr): Define.
  1084. * bfd-in2.h, libbfd.h: Rebuild.
  1085. Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com>
  1086. * peicode.c (coff_swap_filehdr_in): If symptr is
  1087. zero, there aren't any symbols, even if nsyms is set.
  1088. Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com>
  1089. * libecoff.h (struct ecoff_backend_data): Add adjust_headers
  1090. field.
  1091. * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
  1092. sections, and set styp correctly for them: .got, .hash, .dynamic,
  1093. .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
  1094. (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
  1095. types.
  1096. (ecoff_sort_hdrs): New static function.
  1097. (ecoff_compute_section_file_positions): Return boolean, not void.
  1098. Sort the sections by VMA before looking through them. Put the
  1099. first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
  1100. section on an appropriate boundary within the page.
  1101. (ecoff_compute_reloc_file_positions): Check return value of
  1102. ecoff_compute_section_file_positions.
  1103. (_bfd_ecoff_set_section_contents): Likewise.
  1104. (_bfd_ecoff_write_object_contents): Check for various Alpha
  1105. section types when incrementing text_size and data_size. Call
  1106. adjust_headers backend function if it exists.
  1107. * coff-alpha.c (alpha_adjust_headers): New static function.
  1108. (alpha_ecoff_backend_data): Initialize adjust_headers field.
  1109. * coff-mips.c (mips_ecoff_backend_data): Likewise.
  1110. * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
  1111. Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com)
  1112. * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
  1113. of ALTERNATE_AIX_CORE_FORMAT.
  1114. * configure.in (aix4): No longer need CORE_FLAGS.
  1115. * configure: Updated.
  1116. Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com>
  1117. NS32k changes from Ian Dall:
  1118. * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
  1119. macros.
  1120. (aout_link_input_section_std, aout_link_input_section_ext,
  1121. aout_link_reloc_link_order): Call them instead of _bfd_*
  1122. versions.
  1123. * aout-target.h (MY_exec_header_not_counted): New macro, defaults
  1124. to zero.
  1125. (backend_data): Use it instead of hardcoded zero.
  1126. * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
  1127. (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
  1128. * ns32knetbsd.c: Include bfd.h.
  1129. (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
  1130. (MY_bfd_reloc_type_lookup): Declare function too.
  1131. * pc532-mach.c (set_sizes): Don't declare.
  1132. (MY_text_includes_header, MY_exec_header_not_counted): Define.
  1133. (backend_data, MY_backend_data): Don't define.
  1134. * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
  1135. ns32k-*-lites* like ns32k-*-netbsd*.
  1136. * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
  1137. compile on lites.
  1138. Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com>
  1139. * coffcode.h (coff_write_object_contents): Restore setting
  1140. f_timdat to 0, deleted on August 22.
  1141. Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
  1142. * coffcode.h (coff_bfd_copy_private_symbol_data,
  1143. coff_bfd_copy_private_section_data,
  1144. coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
  1145. * peicode.h (coff_bfd_copy_private_bfd_data): New
  1146. (pe_bfd_copy_private_bfd_data): New.
  1147. (coff_swap_scnhdr_in): Swap bss size into the right place.
  1148. (pe_print_private_bfd_data): Add some newlines.
  1149. Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com)
  1150. * som.c (setup_sections): Don't die if a space has no subspaces.
  1151. Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com>
  1152. * elflink.h (elf_link_add_object_symbols): Don't let a weak
  1153. dynamic symbol override a common symbol. Don't change the size or
  1154. type if they have been set and the new symbol is not a definition.
  1155. Warn if the size or type changes.
  1156. Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com)
  1157. * som.c (som_begin_writing): Don't write the symbol table or
  1158. symbol strings.
  1159. (som_finish_writing): Write them here. Place them after the
  1160. subspace data, but before the relocs.
  1161. Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com>
  1162. * sunos.c (sunos_add_one_symbol): Just pass false, not
  1163. info->shared_library, to sunos_create_dynamic_sections.
  1164. (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
  1165. section.
  1166. (sunos_check_dynamic_reloc): Remove .text section assertion.
  1167. Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com>
  1168. * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
  1169. * configure, configure.in: Add pmac_xcoff_vec case.
  1170. * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
  1171. * coff-pmac.c: New file, PowerMac XCOFF support.
  1172. * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
  1173. * targets.c (pmac_xcoff_vec): Declare.
  1174. * mpw-config.in: Various changes to be compatible with the
  1175. autoconf-based configury.
  1176. * mpw-make.sed: New file, sed commands to translate Unix
  1177. makefile into MPW syntax.
  1178. * mpw-make.in: Remove.
  1179. * hosts/mpw.h: Remove.
  1180. * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
  1181. true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
  1182. Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com>
  1183. * binary.c (binary_get_symtab): Return an empty string on error.
  1184. * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
  1185. Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
  1186. * coff-ppc.c: Reformatted according to gnu conventions
  1187. Removed irrelevant "if 0" code
  1188. Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
  1189. * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
  1190. symbols rather than as indirect symbols.
  1191. (MY(slurp_symbol_table)): Don't do anything special about
  1192. secondary symbols.
  1193. * coffcode.h (coff_new_section_hook): Make sure that the alignment
  1194. of .ctors and .dtors sections is no larger than 2.
  1195. * sunos.c (sunos_add_one_symbol): Don't change
  1196. bfd_link_hash_common to bfd_link_hash_new, since it may be on the
  1197. undef list.
  1198. (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
  1199. dynamic symbols when creating a shared library.
  1200. (sunos_scan_ext_relocs): Handle relocs correctly when creating a
  1201. shared library.
  1202. (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
  1203. written even if it is not defined in a regular object.
  1204. (sunos_write_dynamic_symbol): Use plt_offset for the address of
  1205. the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
  1206. rather than the constant 22.
  1207. (sunos_check_dynamic_reloc): Handle creating a shared library.
  1208. (sunos_finish_dynamic_link): Set the first entry in the GOT to
  1209. zero when creating a shared library.
  1210. * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
  1211. write it out at the start of the symbol table.
  1212. * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
  1213. Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com>
  1214. * config.bfd: Add arm-*-coff.
  1215. * configure.in, configure: Add armcoff_{little,big}_vec.
  1216. * targets.c (armcoff_{little,big}_vec): Declare.
  1217. (bfd_target_vector): Add armcoff_{little,big}_vec.
  1218. * coff-arm.c (armcoff_{little,big}_vec): Always define.
  1219. Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com>
  1220. * targets.c (bfd_find_target): Remove debugging code.
  1221. Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
  1222. * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
  1223. support on powerpc.
  1224. * Makefile.in: added *-ppc files
  1225. * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
  1226. allow pe based .o's to be shared with other tools on ppc/NT
  1227. * config.bfd: added powerpc[le]-[pe|winnt] config support
  1228. * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
  1229. * peicode.h: Added more section flags for PE on ppc
  1230. Added coff_swap_filehdr_out to allow peicode.h to be
  1231. used for non-image PE files on ppc.
  1232. Check for image, or not, before copying pe_opthdr
  1233. * targets.c: Added new bfd's
  1234. * targets.c: Removed two inactive bfds that shouldn't have made it this
  1235. far.
  1236. Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1237. * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
  1238. explicit values to initialize all relocs. Change all users.
  1239. (ppc_elf_brtaken_inner): New function to handle branch predicition
  1240. relocs.
  1241. (ppc_elf_brtaken_reloc): Ditto.
  1242. (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
  1243. relocs use ppc_elf_unsupported_reloc.
  1244. (ppc_elf_merge_private_bfd_data): Keep track of whether an error
  1245. needs to be reported.
  1246. (ppc_elf_relocate_section): Support branch prediction relocs.
  1247. Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com>
  1248. * bfd.c (bfd_assert): Remove \n from string passed to
  1249. _bfd_error_handler.
  1250. * coff-i386.c: (TWO_DATA_SECS): Don't define.
  1251. * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
  1252. (bfd_coff_make_section_hook): Don't define.
  1253. (coff_make_section_hook): Remove.
  1254. (sec_to_styp_flags): Remove TWO_DATA_SECS case.
  1255. (styp_to_sec_flags): Likewise.
  1256. (coff_write_object_contents): Likewise.
  1257. (bfd_coff_std_swap_table): Don't initialize make_section_hook
  1258. field.
  1259. * libcoff.h: Rebuild.
  1260. * coffgen.c (make_a_section_from_file): Just call
  1261. bfd_make_section_anyway, not bfd_make_section or
  1262. bfd_coff_make_section_hook.
  1263. * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
  1264. * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
  1265. * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
  1266. make_section_hook field.
  1267. * coff-mips.c (mips_ecoff_backend_data): Likewise.
  1268. * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
  1269. pointers into value field for warning and indirect symbols; just
  1270. leave the value field alone.
  1271. * linker.c (generic_link_add_symbol_list): Use next symbol for
  1272. warning and indirect symbols, rather than looking in symbol value.
  1273. * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
  1274. parameter. Change all callers. Remove support for indirect
  1275. symbols; it didn't work anyhow.
  1276. (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
  1277. * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
  1278. * bfd-in2.h: Rebuild.
  1279. Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1280. * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
  1281. go back to telling the tools this reloc operates on 32 bits.
  1282. Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com>
  1283. * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
  1284. rather than a direct fprintf.
  1285. * archive.c (_bfd_write_archive_contents): Likewise.
  1286. * coffcode.h (coff_slurp_symbol_table): Likewise.
  1287. * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
  1288. (ppc_elf_unsupported_reloc): Likewise.
  1289. (ppc_elf_relocate_section): Likewise.
  1290. * i386linux.c (linux_tally_symbols): Likewise.
  1291. (linux_finish_dynamic_link): Likewise.
  1292. * osf-core.c (osf_core_core_file_p): Likewise.
  1293. * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
  1294. * som.c (som_sizeof_headers): Likewise.
  1295. * srec.c (srec_bad_byte): Likewise.
  1296. * bfd.c (bfd_assert): Likewise. Also change file to be const.
  1297. * libbfd-in.h (bfd_assert): Declare first parameter const.
  1298. * libbfd.h: Rebuild.
  1299. * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
  1300. bfd_reloc_overflow is enough.
  1301. * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
  1302. * coff-h8500.c (rtype2howto): Likewise.
  1303. * coff-z8k.c (rtype2howto): Likewise.
  1304. * coffcode.h (dummy_reloc16_extra_cases): Likewise.
  1305. * elf.c (_bfd_elf_get_lineno): Likewise.
  1306. (_bfd_elf_no_info_to_howto): Likewise.
  1307. (_bfd_elf_no_info_to_howto_rel): Likewise.
  1308. * hp300hpux.c (convert_sym_type): Likewise.
  1309. (MY(swap_std_reloc_in)): Likewise.
  1310. * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
  1311. * libaout.h (struct aoutdata): Add line_buf field.
  1312. * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
  1313. and filename_buffer. Instead, use a malloc buffer stored in the
  1314. new line_buf field. Remove length restrictions.
  1315. * coffgen.c (string_size): Remove static variable.
  1316. (debug_string_size, debug_string_section): Likewise.
  1317. (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
  1318. and debug_string_size_p parameters. Use them instead of the
  1319. global variables. Change all callers.
  1320. (coff_write_symbol): Likewise.
  1321. (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
  1322. (coff_write_symbols): Add local variables to replace removed
  1323. global variables.
  1324. * libcoff-in.h (struct coff_section_tdata): Add offset, i,
  1325. function, and line_base fields.
  1326. * libcoff.h: Rebuild.
  1327. * coffgen.c (coff_find_nearest_line): Use section tdata to cache
  1328. information, rather than using static variables.
  1329. * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
  1330. file. From Peter DeWolf <pld@amt.tay1.dec.com>.
  1331. * init.c (initialized): Remove static variable.
  1332. (bfd_init): Don't bother setting initialized.
  1333. (bfd_check_init): Remove.
  1334. * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
  1335. * libbfd.h: Rebuild.
  1336. Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  1337. * rs6000-core.c (rs6000coff_core_p): Don't check the core file
  1338. size for full core dumps. Copy core file header to private data.
  1339. (rs6000coff_core_file_failing_command,
  1340. rs6000coff_core_file_failing_signal): New functions to extract
  1341. the file name and terminating signal from the core file.
  1342. * coff-rs6000.c: Use them.
  1343. Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com>
  1344. Change arch info to be const, initialized at compile time.
  1345. * archures.c: Reindent many functions. Change CONST to const.
  1346. (bfd_arch_info_type): Make arch_name const. Remove disassemble;
  1347. nothing set it anyhow. Make next const.
  1348. (bfd_arch_info_list): Remove.
  1349. (bfd_archures_list): Rename from archures_init_table. Change from
  1350. a table of function pointers to a table of bfd_arch_info_type
  1351. structure addresses.
  1352. (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
  1353. (bfd_lookup_arch): Likewise.
  1354. (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
  1355. const pointer.
  1356. (bfd_default_arch_struct): Make const.
  1357. (bfd_arch_init, bfd_arch_linkin): Remove.
  1358. (bfd_get_arch_info): Return a const pointer.
  1359. * init.c (bfd_init): Don't call bfd_arch_init.
  1360. * bfd.c (struct _bfd): Make arch_info const.
  1361. * bfd-in2.h: Rebuild.
  1362. * libbfd.h: Rebuild.
  1363. * configure.in: Put & before everything in $selarchs.
  1364. * configure: Rebuild.
  1365. * cpu-*.c: Change bfd_*_arch from a function which calls
  1366. bfd_arch_linkin to a const structure.
  1367. * ieee.c (ieee_object_p): Make arch const.
  1368. Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1369. * reloc.c (bfd_reloc_code_type): Add relocations to support all of
  1370. PowerPC V.4.
  1371. * bfd-in2.h: Regenerate.
  1372. * libbfd.h: Regenerate.
  1373. * elf32-ppc.c (reloc_type): Update names to match current draft.
  1374. (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
  1375. relative. Update names to current V.4 draft.
  1376. (ppc_elf_reloc_type_lookup): Add support for more relocations.
  1377. (ppc_elf_relocate_section): Rename relocations to match draft.
  1378. Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com>
  1379. * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
  1380. compiled with -mrelocatable-lib to be linked with either normal
  1381. modules or -mrelocatable modules.
  1382. Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
  1383. * coffcode.h (coff_write_object_contents): Clear the vstamp field
  1384. in the a.out header.
  1385. * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
  1386. a reloc against a local symbol, even if it's not a section.
  1387. Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
  1388. * targets.c (bfd_target): Remove unused align_power_min field.
  1389. * bfd-in2.h: Rebuild.
  1390. * All backends: Remove initialization of align_power_min.
  1391. Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
  1392. * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
  1393. Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
  1394. * config.bfd (mips-dec-netbsd*): New target.
  1395. * configure.host (mips-dec-netbsd*): New host.
  1396. * configure.in (mips-dec-netbsd*): New native.
  1397. * configure: Rebuild.
  1398. Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
  1399. Make the COFF backend linker merge common types:
  1400. * cofflink.c (struct coff_debug_merge_element): Define.
  1401. (struct coff_debug_merge_type): Define.
  1402. (struct coff_debug_merge_hash_entry): Define.
  1403. (struct coff_debug_merge_hash_table): Define.
  1404. (coff_debug_merge_hash_table_init): Define.
  1405. (coff_debug_merge_hash_table_free): Define.
  1406. (coff_debug_merge_hash_lookup): Define.
  1407. (struct coff_final_link_info): Add debug_merge field.
  1408. (coff_debug_merge_hash_newfunc): New static function.
  1409. (_bfd_coff_final_link): Allocate and free debug_merge table.
  1410. (coff_link_input_bfd): Merge identical enum, struct and union
  1411. types.
  1412. Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
  1413. Convert i960 COFF to use COFF backend linker.
  1414. * coff-i960.c (coff_i960_relocate): Use a coff_section_data
  1415. structure to store the symbol being used.
  1416. (coff_i960_start_final_link): New static function.
  1417. (coff_i960_relocate_section): New static function.
  1418. (coff_i960_adjust_symndx): New static function.
  1419. (coff_start_final_link): Define.
  1420. (coff_relocate_section): Define.
  1421. (coff_adjust_symndx): Define.
  1422. * coffcode.h (bfd_coff_backend_data): Add new callback function
  1423. _bfd_coff_start_final_link.
  1424. (bfd_coff_start_final_link): Define.
  1425. (coff_start_final_link): Define if not defined.
  1426. (bfd_coff_std_swap_table): Add coff_start_final_link.
  1427. * cofflink.c (_bfd_coff_internal_syment_name): Make globally
  1428. visible.
  1429. (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
  1430. function callback is not NULL.
  1431. * libcoff-in.h (struct coff_section_tdata): Add tdata field.
  1432. (_bfd_coff_internal_syment_name): Declare.
  1433. * libcoff.h: Rebuild.
  1434. * configure.in (icoff_big_vec): Add cofflink.o.
  1435. (icoff_little_vec): Likewise.
  1436. * configure: Rebuild.
  1437. Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
  1438. * Makefile.in (clean-info): Remove extraneous tab from line
  1439. following action.
  1440. Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
  1441. * cofflink.c (coff_link_input_bfd): Fail if a section with no
  1442. contents has relocs.
  1443. Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
  1444. * coffcode.h (coff_compute_section_file_positions): Keep the
  1445. raw size safe.
  1446. (coff_write_object_contents): Remember if it's a relocatable
  1447. file.
  1448. * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
  1449. * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
  1450. if relocatable file. Swap out saved raw size.
  1451. Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
  1452. * Makefile.in (do_maintainer_clean): Rename from do_realclean.
  1453. (maintainer-clean): Rename from realclean, passing
  1454. maintainer-clean down to subdirectories, but leave realclean as a
  1455. synonym.
  1456. * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
  1457. warning callback.
  1458. * dep-in.sed: Remove config.h from generated dependencies.
  1459. * sunos.c (sunos_slurp_dynamic_symtab): New static function,
  1460. broken out of sunos_canonicalize_dynamic_symtab.
  1461. (sunos_canonicalize_dynamic_symtab): Call new function
  1462. sunos_slurp_dynamic_symtab.
  1463. (sunos_add_dynamic_symbols): Add three new parameters. Return the
  1464. dynamic symbol table to the caller.
  1465. * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
  1466. callback to override the symbols being read.
  1467. * libaout.h (struct aout_backend_data): Add three new parameters
  1468. to add_dynamic_symbols callback.
  1469. Extensive minor changes to avoid various gcc warnings. Also:
  1470. * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
  1471. * archures.c (bfd_arch_info_type): Change mach field from long to
  1472. unsigned long.
  1473. (bfd_lookup_arch): Change machine parameter from long to unsigned
  1474. long.
  1475. Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
  1476. * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
  1477. a symbol with a non-zero plt_offset.
  1478. Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
  1479. * elfcode.h (align_file_position): Remove; not used.
  1480. * configure.in: Only check for <sys/procfs.h> on a native system,
  1481. and make sure it defines prstatus_t.
  1482. * configure: Rebuild.
  1483. Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
  1484. * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
  1485. * config.in: Rename from config.h.in.
  1486. * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
  1487. Check for config.h:config.in when creating stamp-h.
  1488. * configure: Rebuild.
  1489. * Makefile.in (stamp-h): Depend upon config.in rather than
  1490. config.h.in. Set CONFIG_HEADERS to config.h:config.in when
  1491. calling config.status.
  1492. * Makefile.in (do_distclean): Remove config.h and stamp-h.
  1493. (Makefile): Just rebuild Makefile.
  1494. (config.h, stamp-h): New targets.
  1495. * configure.in: Create stamp-h when rebuilding config.h.
  1496. * configure: Rebuild.
  1497. Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
  1498. * configure.in: Call AC_CONFIG_HEADER. Substitute
  1499. HOST_64BIT_LONG. Check that various header files exist. Check
  1500. that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
  1501. and/or free need to be declared. Don't make a link to sysdep.h.
  1502. Define TRAD_HEADER for various hosts.
  1503. * configure: Rebuild.
  1504. * configure.host: Don't set my_host. Add definitions taken from
  1505. host header files for various entries. Remove entries which now
  1506. do nothing.
  1507. * acconfig.h: New file.
  1508. * config.h.in: New file, built by autoheader.
  1509. * sysdep.h: New file.
  1510. * Makefile.in (do_distclean): Don't remove sysdep.h.
  1511. (RECONFIG): Remove.
  1512. (LOCAL_H_DEPS): New variable.
  1513. ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
  1514. $(RECONFIG).
  1515. ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
  1516. ($(OPTIONAL_BACKENDS)): Likewise.
  1517. (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
  1518. looking through sysdep.h.
  1519. * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
  1520. (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
  1521. (fprintf_vma, sprintf_vma): Likewise.
  1522. (int64_type, uint64_type): Don't define.
  1523. * bfd-in2.h: Rebuild.
  1524. * archures.c, bfd.c, srec.c: Include <ctype.h>.
  1525. * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
  1526. * lynx-core.c: Include stuff from old hosts/lynx.h.
  1527. * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
  1528. rather than NO_FCNTL.
  1529. * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
  1530. rather than NATIVE_HPPAHPUX_COMPILER.
  1531. * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
  1532. is defined.
  1533. * hosts/*.h: Remove all header files which merely include,
  1534. declare, and define things. Leave header files which define
  1535. information needed by trad-core.c.
  1536. * aclocal.m4 (BFD_BINARY_FOPEN): Define.
  1537. (BFD_CC_FOR_BUILD): Define.
  1538. * configure.in: Use BFD_CC_FOR_BUILD.
  1539. * configure: Rebuild.
  1540. Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
  1541. * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
  1542. * configure: Rebuild.
  1543. * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
  1544. a global symbol.
  1545. Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
  1546. * config.bfd: i386pe_ve -> i386pe_vec.
  1547. Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
  1548. * configure.host: Incorporate host Makefile fragments by setting
  1549. shell variables.
  1550. * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
  1551. AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
  1552. value based on whether the code is being compiled by a cross
  1553. compiler. Don't substitute host_makefile_frag or frags.
  1554. * aclocal.m4: New file to define local AC_PROG_CC.
  1555. * configure: Rebuild.
  1556. * Makefile.in (INSTALL): Set to @INSTALL@.
  1557. (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
  1558. (INSTALL_DATA): Set to @INSTALL_DATA@.
  1559. (AR): Set to @AR@.
  1560. (CC): Define as @CC@.
  1561. (CFLAGS): Set to @CFLAGS@.
  1562. (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
  1563. (@host_makefile_frag@): Remove.
  1564. (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
  1565. after other options.
  1566. (config.status): Remove dependency upon @frags@.
  1567. * config/*.mh, config/README: Remove.
  1568. * config.bfd: Rewrite to incorporate the contents of the Makefile
  1569. fragments by setting shell variables, rather than merely returning
  1570. the name of a Makefile fragment.
  1571. * configure.in: Use shell variables set by config.bfd rather than
  1572. looking at the target Makefile fragment files. Don't substitute
  1573. target_makefile_frag. Do substitute TDEFINES.
  1574. * configure: Rebuild.
  1575. * Makefile.in (@target_makefile_frag@): Remove.
  1576. (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
  1577. * config/*.mt: Remove.
  1578. Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
  1579. * configure.in: Put changequote lines around "i[345]86" patterns
  1580. section of core file support.
  1581. Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
  1582. * som.c (som_bfd_print_private_bfd_data): Define to use the
  1583. generic version.
  1584. Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
  1585. * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
  1586. entry, text_start and data_start.
  1587. Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
  1588. * Makefile.in (OFILES): Remove $(TDEPFILES).
  1589. * config/apollo.mt (TDEPFILES): Remove.
  1590. * config/README: Update.
  1591. * configure.in: For a native configuration, set COREFILE and
  1592. COREFLAG based on the canonical host name.
  1593. * configure: Rebuild.
  1594. * Makefile.in: Rebuild dependencies.
  1595. (ALL_CFLAGS): Add @COREFLAG@.
  1596. (OFILES): Replace $(HDEPFILES) with @COREFILE@.
  1597. * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
  1598. support routines. Check LYNX_CORE rather than HOST_LYNX.
  1599. * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
  1600. * i386lynx.c: Likewise.
  1601. * m68klynx.c: Likewise.
  1602. * sparclynx.c: Likewise.
  1603. * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
  1604. * *-core.c: Comment changes.
  1605. * config/decstation.mh (HDEPFILES): Remove.
  1606. (HDEFINES): Remove -DTRAD_CORE.
  1607. * config/irix3.mh (RANLIB): Remove.
  1608. * config/irix4.mh (HDEPFILES, RANLIB): Remove.
  1609. (HDEFINES): Remove -DIRIX_CORE.
  1610. * config/riscos.mh (RANLIB, HDEPFILES): Remove.
  1611. (HDEFINES): Remove -DTRAD_CORE.
  1612. * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
  1613. * config/ultra3.mh (RANLIB): Remove.
  1614. * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
  1615. * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
  1616. * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
  1617. * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
  1618. * config/hppahpux.mh, config/hppaosf.mh: Remove.
  1619. * config/i386aix.mh, config/i386bsd.mh: Remove.
  1620. * config/i386linux.mh, config/i386mach3.mh: Remove.
  1621. * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
  1622. * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
  1623. * config/mipsmach3.mh, config/news-mips.mh: Remove.
  1624. * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
  1625. * config/rs600.mh, config/rs6000lynx.mh: Remove.
  1626. * config/solaris2.mh, config/stratus.mh: Remove.
  1627. * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
  1628. * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
  1629. Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
  1630. * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
  1631. DT_FINI entry if the appropriate symbol is not in the hash table.
  1632. * libelf.h (struct elf_backend_data): Add create_program_headers
  1633. and want_hdr_in_seg fields.
  1634. * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
  1635. defined.
  1636. (elf_backend_create_program_headers): Likewise.
  1637. (elfNN_bed): Initialize create_program_headers and
  1638. want_hdr_in_seg.
  1639. * elf.c (get_program_header_size): Call create_program_headers
  1640. backend routine.
  1641. (map_program_segments): Check want_hdr_in_seg backend field. Call
  1642. create_program_headers backend routine.
  1643. * elf.c (assign_file_positions_except_relocs): Align non allocated
  1644. sections when creating an executable.
  1645. * elfcode.h (elf_swap_phdr_in): Make non static.
  1646. (elf_swap_phdr_out): Make non static.
  1647. * libelf.h (bfd_elf32_swap_phdr_in): Declare.
  1648. (bfd_elf32_swap_phdr_out): Declare.
  1649. (bfd_elf64_swap_phdr_in): Declare.
  1650. (bfd_elf64_swap_phdr_out): Declare.
  1651. * ecofflink.c (ecoff_collect_shuffle): New static function.
  1652. (_bfd_ecoff_get_accumulated_pdr): New function.
  1653. (_bfd_ecoff_get_accumulated_sym): New function.
  1654. (_bfd_ecoff_get_accumulated_ss): New function.
  1655. * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
  1656. (_bfd_ecoff_get_accumulated_sym): Declare.
  1657. (_bfd_ecoff_get_accumulated_ss): Declare.
  1658. * libbfd.h: Rebuild.
  1659. Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
  1660. * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
  1661. * elflink.h (elf_link_add_object_symbols): Handle indirect and
  1662. warning symbols. If any section is named .gnu.warning.XXX, treat
  1663. the contents as a warning to be issued if the symbol XXX is
  1664. referenced.
  1665. (elf_link_output_extsym): For an indirect or warning symbol, just
  1666. output the symbol it points to.
  1667. * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
  1668. if bfd_hash_allocate fails, since it will already be set.
  1669. (generic_link_hash_newfunc): Likewise.
  1670. (archive_hash_newfunc): Likewise.
  1671. (hash_entry_bfd): New static function.
  1672. (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
  1673. callback. Allocate a new warning using the hash table newfunc.
  1674. Use bfd_hash_replace to update the entry in the hash table, rather
  1675. than assuming we can copy the fields with structure assignment.
  1676. * hash.c (bfd_hash_replace): New function.
  1677. * bfd-in.h (bfd_hash_replace): Declare.
  1678. * bfd-in2.h: Rebuild.
  1679. Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
  1680. * config.bfd: Add mips*vr4300-*-elf* target.
  1681. * config/mipsbvr4300.mt: Added.
  1682. Thu Aug 31 16:00:53 1995 steve chamberlain <sac@slash.cygnus.com>
  1683. * Makefile.in: Update dependencies.
  1684. * aout-target.h (MY_bfd_print_private_bfd_data): New.
  1685. * bfd-in.h (PE STUFF): Deleted.
  1686. * bfd.c (tdata->pe_obj_data): New.
  1687. (bfd_print_private_bfd_data): New.
  1688. * coff-i386.c, coff-arm.c (coff_*-rtype_to_howto): Get image base from
  1689. new place.
  1690. * libcoff.h, libbfd.h, bfd-in2.h: Rebuilt.
  1691. * coffcode.h (pe_value): Delete
  1692. (coff_mkobject, coff_mkobject_hook): Conditionally build.
  1693. (coff_compute_section_file_positions): Look in new place.
  1694. (add_data_entry, fill_pe_header_info): Deleted.
  1695. (coff_write_object_contents): Remove PE stuff.
  1696. (coff_bfd_print_private_bfd_data): New.
  1697. * coffswap.h: Remove PE stuff.
  1698. * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): New.
  1699. * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): New.
  1700. * libcoff-in.h (pe_data_type): New.
  1701. * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): New.
  1702. * targets.c (_bfd_print_private_bfd_data): New.
  1703. * peicode.h: New file.
  1704. Thu Aug 31 11:49:21 1995 Ian Lance Taylor <ian@cygnus.com>
  1705. * bfd-in.h: Add extern "C" if __cplusplus.
  1706. * bfd-in2.h: Rebuild.
  1707. * coff-mips.c (mips_relocate_section): Don't convert a reloc
  1708. against an absolute symbol into a reloc against a section.
  1709. Thu Aug 31 08:00:14 1995 steve chamberlain <sac@slash.cygnus.com>
  1710. * coff-arm.c (coff_arm_reloc): Fix common size problem.
  1711. (i3coff_object_p): Delete.
  1712. Wed Aug 30 20:41:27 1995 steve chamberlain <sac@slash.cygnus.com>
  1713. * coff-arm.c (deletemeacoff_arm_reloc): Deleted.
  1714. (arm26): Not partial inplace.
  1715. * coffcode.h (coff_compute_section_file_positions): Don't
  1716. do page aligning if COFF_PAGE_SIZE isn't defined.
  1717. * coffswap.h (coff_swap_scnhdr_in): Update image base correctly.
  1718. Tue Aug 29 13:50:21 1995 steve chamberlain <sac@slash.cygnus.com>
  1719. * coffcode.h (coff_compute_section_file_positions):
  1720. Compile even if COFF_PAGE_SIZE isn't defined.
  1721. * cofflink.c (_bfd_coff_generate_reloc_section): Write
  1722. base file info as rvas.
  1723. * coff-arm.c (coff_rtype_to_howto): Deal with reloc 11.
  1724. * coffcode.h (coff_write_object_contents): Remove #if0ed code
  1725. Only remove empty sections in PE inmage files.
  1726. * libbfd.h, bfd-in2.h: regenerated.
  1727. * coff-arm.c (aoutarm_std_relo): New entry at 11.
  1728. (arm_reloc_type_lookup) : Understand type 11.
  1729. * coff-i386.c (howto_table): fix name of rva type.
  1730. (coff-i386_rtype_to_howto): Understand R_IMAGEBASE type.
  1731. * coffcode.h (sec_to_styp_flags): .edata is data.
  1732. (coff_compute_section_file_positions): Get page size right for PE.
  1733. Pagesize info is only valid in PE image files.
  1734. (fill_pe_header_info): Fix fields.
  1735. (coff_write_object_contents): Remove end_of_image calc.
  1736. (_bfd_coff_generate_reloc_section): Remove orphaned comment.
  1737. * coffswap.h (coff_swap_scnhdr_in): Don't always add IMAGE_BASE.
  1738. Swap in PE header.
  1739. (coff_swap_scnhdr_out): Setup PE flags correctly.
  1740. * reloc.c (BFD_RELOC_RVA): New field.
  1741. Thu Aug 24 17:49:59 1995 Ian Lance Taylor (ian@cygnus.com)
  1742. * cofflink.c (coff_link_input_bfd): Don't include line numbers for
  1743. a section if its output section has no contents.
  1744. Wed Aug 23 16:48:52 1995 Ian Lance Taylor (ian@cygnus.com)
  1745. * ecoff.c (_bfd_ecoff_slurp_symbolic_info): Add parentheses to FIX
  1746. expression to avoid compiler bug on HP-UX 9.01.
  1747. Wed Aug 23 09:49:39 1995 Steve Chamberlain <sac@rtl.cygnus.com>
  1748. * coffcode.h (pe_value): Unansify.
  1749. Mon Aug 21 17:49:28 1995 steve chamberlain <sac@slash.cygnus.com>
  1750. * bfd-in.h (bfd_link_subsystem): Turn enum into #defines.
  1751. (bfd_link_pe_info_dval): New
  1752. (bfd_link_stack_heap): Renamed and massaged into bfd_link_pe_info.
  1753. * bfd-in2.h: rebuilt.
  1754. * bfd.c (NT_subsystem, NT_stack_heap): Deleted.
  1755. * coffcode.h (pe_value): New function.
  1756. (fill_pe_header_info): New function.
  1757. (coff_write_object_contents): Use new function.
  1758. (coff_write_object_contents): Initialze link_data if not set.
  1759. * cofflink.c (coff_final_link_info): Remove pe randomness.
  1760. (dores_com): Update info in bfd_link_pe_info_dval.
  1761. (process_embedded_commands): Use the bfd_link_pe_info_dval.
  1762. (_bfd_coff_final_link): Remove PE stuff, initialize
  1763. coff_data->link_info.
  1764. * coffswap.h (coff_swap_[aout|filehdr]_out): Use indirect PE pointer.
  1765. (coff_swap_scnhdr_out): Use real imagebase.
  1766. * libcoff-in.h (coff_data_type.link_info): New field.
  1767. Mon Aug 21 11:10:32 1995 Ian Lance Taylor <ian@cygnus.com>
  1768. * linker.c (link_action): If an undefined reference follows an
  1769. undefined weak reference, change the type to undefined.
  1770. * elflink.h (elf_link_add_archive_symbols): Don't record an
  1771. undefined weak reference as defined, in case it turns into a real
  1772. undefined reference later in the same archive.
  1773. Thu Aug 17 16:29:09 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
  1774. * coff-sh.c (sh_relax_section): Cast value for used_by_bfd field
  1775. to PTR, not coff_section_tdata pointer, since PTR is the real type
  1776. of the field.
  1777. * cofflink.c (_bfd_coff_read_internal_relocs): Ditto.
  1778. Thu Aug 17 14:44:26 1995 Ian Lance Taylor <ian@cygnus.com>
  1779. Add support for linking SPARC SunOS PIC compiled code.
  1780. * sunos.c (SPARC_PLT_PIC_WORD0): Define.
  1781. (SPARC_PLT_PIC_WORD1, SPARC_PLT_PIC_WORD2): Define.
  1782. (struct sunos_link_hash_entry): Add got_offset and plt_offset
  1783. fields.
  1784. (struct sunos_link_hash_table): Add dynamic_sections_created and
  1785. dynamic_sections_needed fields.
  1786. (sunos_link_hash_newfunc): Initialize new fields.
  1787. (sunos_link_hash_table_create): Initialize new fields.
  1788. (sunos_create_dynamic_sections): New static function, broken out
  1789. of sunos_add_dynamic_symbols.
  1790. (sunos_add_dynamic_symbols): Call sunos_create_dynamic_sections.
  1791. (sunos_add_one_symbol): Call sunos_create_dynamic_sections.
  1792. (bfd_sunos_size_dynamic_sections): Call sunos_scan_relocs before
  1793. checking whether we need to set up the dynamic link information.
  1794. Define __GLOBAL_OFFSET_TABLE if anything referred to it.
  1795. (sunos_scan_std_relocs): Call sunos_create_dynamic_sections. Use
  1796. plt_offset field; only put symbol in .plt if it is not defined by
  1797. a regular object.
  1798. (sunos_scan_ext_relocs): Likewise. Handle base relative relocs.
  1799. (sunos_scan_dynamic_symbol): Store dynobj in local variable.
  1800. (sunos_write_dynamic_symbol): Check plt_offset rather than
  1801. checking whether symbol is in .plt section. If symbol is defined
  1802. in a regular object file, use SPARC_PLT_PIC_WORD[012], and don't
  1803. add a JMP_TBL reloc.
  1804. (sunos_check_dynamic_reloc): Add contents and relocationp fields.
  1805. If plt_offset is set, redirect relocation to PLT. If this is a
  1806. base relative reloc, redirect relocation to GOT. Check
  1807. dynamic_sections_needed field rather than whether dynobj is set.
  1808. (sunos_finish_dynamic_link): Check dynamic_sections_needed field
  1809. rather than whether dynobj is set. Don't die if .need and .rules
  1810. sections were not created.
  1811. * aoutx.h (howto_table_ext): Mark PC10, PC22, and JMP_TBL entries
  1812. PC relative. Mark PC10 complain_overflow_dont. Mark PC22 and
  1813. JMP_TBL complain_overflow_signed.
  1814. (NAME(aout,final_link)): If info->shared is set, set DYNAMIC.
  1815. (aout_link_input_section_std): Call check_dynamic_reloc for all
  1816. relocs. Pass contents and &relocation. Don't warn about an
  1817. undefined symbol until check_dynamic_reloc has been called. Don't
  1818. warn about an undefined symbol for a base relative reloc.
  1819. (aout_link_input_section_ext): Likewise. For a base relative
  1820. reloc, always treat r_index as an index into the symbol table.
  1821. * libaout.h (struct aout_backend_data): Add contents and
  1822. relocation argument to check_dynamic_reloc entry point.
  1823. (struct aoutdata): Add local_got_offsets field.
  1824. Wed Aug 16 01:03:07 1995 Ian Lance Taylor <ian@cygnus.com>
  1825. * elf32-i386.c (elf_i386_check_relocs): Fix bug in last change.
  1826. Mon Aug 14 11:39:24 1995 Ian Lance Taylor <ian@cygnus.com>
  1827. * aoutx.h (NAME(aout,machine_type)): Handle a machine of
  1828. bfd_mach_sparc or bfd_mach_sparc64.
  1829. * elflink.h (elf_link_add_object_symbols): If a symbol is a weak
  1830. definition, add it to the dynamic symbol table if any dynamic
  1831. object mentions it. If we do add it, make sure we add the
  1832. corresponding real symbol.
  1833. (elf_adjust_dynamic_symbol): Adjust a weak defined symbol which we
  1834. put in the dynamic symbol table, even if no regular object refers
  1835. to it.
  1836. * elf32-i386.c (elf_i386_check_relocs): When creating a shared
  1837. library, don't allocate space for a PC relative reloc against a
  1838. local symbol.
  1839. * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
  1840. * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
  1841. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Change assertion
  1842. to accept symbol with weakdef set.
  1843. * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
  1844. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
  1845. * elf32-m68k.c (elf_m68k_relocate_section): When creating a shared
  1846. libary, don't copy over a PC relative reloc against a local
  1847. symbol.
  1848. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  1849. Sun Aug 13 00:40:58 1995 Jeff Law (law@snake.cs.utah.edu)
  1850. * som.h (R_HPPA_BEGIN_BRTAB): Define.
  1851. (R_HPPA_END_BRTAB): Likewise.
  1852. * som.c (som_write_fixups): Handle R_BEGIN_BRTAB and R_END_BRTAB.
  1853. Thu Aug 10 15:53:29 1995 Ian Lance Taylor <ian@cygnus.com>
  1854. * coffswap.h (coff_swap_aux_in): Swap the array dimensions
  1855. whenever x_fcnary is not being used for something else, rather
  1856. than only for an array.
  1857. (coff_swap_aux_out): Likewise.
  1858. Tue Aug 8 16:34:57 1995 steve chamberlain <sac@slash.cygnus.com>
  1859. * cofflink.c (_bfd_coff_generic_relocate_section): Remove most
  1860. of special case stuff for PE. Now handled by relocs.
  1861. * coff-i386.c (coff_i386_reloc): Special case of PE type 7s.
  1862. (howto_table): Type 7 is dir32-rva.
  1863. Tue Aug 8 10:15:43 1995 Jeffrey A. Law <law@rtl.cygnus.com>
  1864. * configure.host: Recognize aix4 explicitly.
  1865. * rs6000-core.c (CORE_DATA_SIZE_FIELD): New macro to get a the size
  1866. of a core dump's data section. Provide alternate definition for aix4.
  1867. (SAVE_FIELD): Similarly for save state field (register info).
  1868. (STACK_END_ADDR): Provide definition suitable for aix4.
  1869. * config/{aix4.mh,aix4.mt}: New configuration files.
  1870. * hosts/aix4.h: Likewise.
  1871. Mon Aug 7 23:03:21 1995 Ian Lance Taylor <ian@cygnus.com>
  1872. * som.c (som_bfd_copy_private_symbol_data): Cast initializations
  1873. to avoid warnings.
  1874. Mon Aug 7 14:51:08 1995 Jeff Law (law@snake.cs.utah.edu)
  1875. * som.c (som_decode_symclass): Handle absolute symbols by checking
  1876. the SOM type (since they will rarely if ever be in the absolute
  1877. section).
  1878. Wed Aug 6 09:12:50 1995 Doug Evans <dje@canuck.cygnus.com>
  1879. * archures.c (bfd_mach_sparc, bfd_mach_sparc64): Define.
  1880. * bfd-in2.h: Regenerated.
  1881. * cpu-sparc.c (sparc_arch_info): Renamed from arch_info_struct.
  1882. (sparc64_arch_info): New static variable.
  1883. (bfd_sparc_arch): Link in sparc64_arch_info.
  1884. * elf64-sparc.c (sparc64_elf_xxx): Renamed from elf64_xxx.
  1885. (sparc64_elf_object_p): New static function.
  1886. (elf_backend_object_p): Define.
  1887. * config/sparc64-elf.mt (SELECT_VECS): Add bfd_elf32_sparc_vec.
  1888. Sat Aug 5 00:04:08 1995 Jeff Law (law@snake.cs.utah.edu)
  1889. * som.c (som_get_reloc_upper_bound): Return -1 on error. Compute
  1890. return value with sizeof (arelent *), not sizeof (arelent).
  1891. Wed Aug 2 12:32:21 1995 Ian Lance Taylor <ian@cygnus.com>
  1892. * elf.c (bfd_section_from_shdr): If the section pointed to by the
  1893. sh_link field of a reloc section is not a symbol table, and the
  1894. file contains a single symbol table, clobber the sh_link field of
  1895. the reloc section to point to the symbol table.
  1896. Tue Aug 1 10:09:01 1995 Doug Evans <dje@canuck.cygnus.com>
  1897. * coff-arm.c (howto reloc ARM26): Change size from 3 to 2.
  1898. (howto reloc ARM26D): Likewise.
  1899. Mon Jul 24 14:17:50 1995 Ian Lance Taylor <ian@cygnus.com>
  1900. * aoutx.h (NAME(aout,find_nearest_line)): Use the line just before
  1901. the offset, not the one just after. Break out of the loop after
  1902. finding a function past the offset, not merely when finding a
  1903. function with a line defined.
  1904. * ecofflink.c (_bfd_ecoff_locate_line): When handling stabs:
  1905. correct setting of sym_ptr_end to consider symbols skipped when
  1906. setting sym_ptr; don't leave loop early unless an N_FUN is found
  1907. with a larger value.
  1908. * coff-sh.c (sh_coff_howtos): Mark R_SH_PCDISP8BY2 and R_SH_PCDISP
  1909. as PC relative. Describe R_SH_IMM16. Add entries for
  1910. R_SH_SWITCH16, R_SH_SWITCH32, R_SH_USES, R_SH_COUNT, and
  1911. R_SH_ALIGN.
  1912. (SWAP_IN_RELOC_OFFSET): Define.
  1913. (SWAP_OUT_RELOC_OFFSET): Define.
  1914. (CALC_ADDEND): Define.
  1915. (sh_reloc): Change sym_value and addr to type bfd_vma. Skip reloc
  1916. types other than R_SH_IMM32 and R_SH_PCDISP on an external symbol.
  1917. (coff_bfd_relax_section): Define.
  1918. (coff_bfd_get_relocated_section_contents): Define.
  1919. (sh_relax_section): New static function.
  1920. (sh_relax_delete_bytes): New static function.
  1921. (sh_relocate_section): Handle R_SH_PCDISP on an external symbol.
  1922. (sh_coff_get_relocated_section_contents): New static function.
  1923. * cofflink.c (coff_link_add_object_symbols): Call
  1924. _bfd_coff_get_external_symbols, not coff_link_get_symbols. Call
  1925. _bfd_coff_free_symbols, not coff_link_free_symbols. Call
  1926. _bfd_coff_read_string_table, not coff_read_string_table.
  1927. (coff_link_check_archive_element): Likewise.
  1928. (coff_link_input_bfd): Likewise.
  1929. (coff_link_get_symbols): Move to coffgen.c.
  1930. (coff_read_string_table): Likewise.
  1931. (coff_link_free_symbols): Likewise.
  1932. (_bfd_coff_internal_syment_name): New static function.
  1933. (coff_link_check_ar_symbols): Use _bfd_coff_internal_syment_name.
  1934. (coff_link_add_symbols): Likewise.
  1935. (coff_link_input_bfd): Likewise.
  1936. (_bfd_coff_generic_relocate_section): Likewise.
  1937. (_bfd_coff_read_internal_relocs): New function.
  1938. (coff_link_input_bfd): Use cached section contents if available.
  1939. Use _bfd_coff_read_internal_relocs.
  1940. * coffcode.h (coff_slurp_symbol_table): Don't call bfd_seek.
  1941. (coff_bfd_get_relocated_section_contents): Only define if not
  1942. already defined.
  1943. (coff_bfd_relax_section): Likewise.
  1944. * coffgen.c (build_string_table): Remove.
  1945. (_bfd_coff_get_external_symbols): New function, moved in from old
  1946. coff_link_get_symbols in cofflink.c.
  1947. (_bfd_coff_read_string_table): New function, moved in from old
  1948. coff_read_string_table in cofflink.c.
  1949. (_bfd_coff_free_symbols): New function, moved in frmo old
  1950. coff_link_free_symbols in cofflink.c.
  1951. (coff_get_normalized_symtab): Use _bfd_coff_get_external_symbols
  1952. rather than reading the symbols directly. To free them, call
  1953. _bfd_coff_free_symbols. Use _bfd_coff_read_string_table rather
  1954. than build_string_table.
  1955. * libcoff-in.h (obj_coff_keep_syms): Define.
  1956. (obj_coff_keep_strings): Define.
  1957. (coff_data_type): Add fields keep_syms and keep_strings.
  1958. (coff_section_tdata): Define new structure.
  1959. (coff_section_data): Define.
  1960. (_bfd_coff_get_external_symbols): Declare.
  1961. (_bfd_coff_read_string_table): Declare.
  1962. (_bfd_coff_free_symbols): Declare.
  1963. (_bfd_coff_read_internal_relocs): Declare.
  1964. * libcoff.h: Rebuild.
  1965. Fri Jul 21 22:32:54 1995 Michael Meissner <meissner@cygnus.com>
  1966. * elf32-ppc.c (ppc_elf_howto_raw): Add support for R_PPC_SDAREL
  1967. relocation.
  1968. (ppc_elf_reloc_type_lookup): Ditto.
  1969. (ppc_elf_got16_inner): Ditto.
  1970. (ppc_elf_relocate_section): Ditto.
  1971. Thu Jul 20 19:19:06 1995 Jeff Law (law@snake.cs.utah.edu)
  1972. * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new (ignored)
  1973. argument.
  1974. * elf32-hppa.h: Corresponding change.
  1975. Thu Jul 20 19:01:07 1995 Ken Raeburn <raeburn@cygnus.com>
  1976. * libaout.h (set_aout_section_data): New macro.
  1977. * sunos.c (sunos_scan_relocs): Use it.
  1978. * aout-ns32k.c (MY_swap_std_reloc_out): Undef KEEPIT before
  1979. defining it.
  1980. Thu Jul 20 13:48:00 1995 Fred Fish <fnf@cygnus.com>
  1981. * hosts/i386v4.h (getgid, getuid): Change prototypes to be
  1982. compatible with Unixware 1.x and Unixware 2.x, and probably other
  1983. i386 svr4 versions as well.
  1984. Thu Jul 20 13:41:21 1995 Ken Raeburn <raeburn@cygnus.com>
  1985. * targets.c (bfd_target_vector): Since armpe and armpei have been
  1986. split into big- and little-endian variants, list all of them,
  1987. instead of the now-nonexistant armpe[i]_vec.
  1988. Thu Jul 20 00:06:39 1995 Ian Lance Taylor <ian@cygnus.com>
  1989. * elf.c (bfd_section_from_phdr): Set lma based on p_paddr.
  1990. (elf_fake_sections): Set sh_addr based on lma, not vma.
  1991. Wed Jul 19 15:52:01 1995 Doug Evans <dje@canuck.cygnus.com>
  1992. * coff-arm.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Replaces TARGET_SYM.
  1993. * configure.in (armpe_vec, armpei_vec): Add bi-endian support.
  1994. * configure: "regenerated".
  1995. * pe-arm.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Replaces TARGET_SYM.
  1996. (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Replaces TARGET_NAME.
  1997. * pei-arm.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Replaces TARGET_SYM.
  1998. (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Replaces TARGET_NAME.
  1999. * targets.c (armpe_vec, armpei_vec): Deleted.
  2000. (armpe_little_vec, armpe_big_vec, armpei_little_vec, armpei_big_vec):
  2001. Added.
  2002. * config/arm-pe.mt (DEFAULT_VECTOR): Default is armpe_little_vec.
  2003. (SELECT_VECS): Add bi-endian support.
  2004. Wed Jul 19 10:47:25 1995 Ian Lance Taylor <ian@cygnus.com>
  2005. * coff-sh.c: Clean up and comment.
  2006. (r_imm32): Remove.
  2007. (sh_coff_howtos): New static array.
  2008. (SH_COFF_HOWTO_COUNT): Define.
  2009. (get_symbol_value): Make relocation bfd_vma rather than long.
  2010. (RTYPE2HOWTO): Rewrite to use sh_coff_howtos.
  2011. (coff_relocate_section): Define to sh_relocate_section.
  2012. (sh_relocate_section): New static function.
  2013. Sat Jul 15 01:02:53 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  2014. * configure.host: Add support for generic m68k SVR4 host.
  2015. Fri Jul 14 13:13:55 1995 Ian Lance Taylor <ian@cygnus.com>
  2016. * aoutx.h (KEEPIT): Change definition to udata.i.
  2017. (KEEPITTYPE): Remove.
  2018. (NAME(aout,reloc_type_lookup)): Add cases to the
  2019. extended reloc type switch: SPARC_GOT10, SPARC_GOT13, SPARC_GOT22,
  2020. SPARC_PC10, SPARC_PC22, SPARC_WPLT30.
  2021. (NAME(aout,swap_std_reloc_out)): Don't bother to use stoi when
  2022. retrieving KEEPIT value.
  2023. (NAME(aout,swap_ext_reloc_out)): Likewise. Also, only add in
  2024. output section VMA for section symbols, and check BSF_SECTION_SYM
  2025. to control whether to set r_extern to 1.
  2026. * syms.c: Fix comments so that `make info' works.
  2027. * elf32-mips.c (mips_elf_find_nearest_line): Set SEC_HAS_CONTENTS
  2028. in .mdebug section, in case backend linker has cleared it.
  2029. Fri Jul 14 11:58:34 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  2030. * elf32-ppc.c (ppc_elf_addr16_ha_inner): Rewrite to take just one
  2031. argument, the final relocated address.
  2032. (ppc_elf_addr16_ha_inner): Adjust ppc_elf_addr16_ha_inner caller.
  2033. (ppc_elf_relocate_section): Ditto.
  2034. Thu Jul 13 17:22:03 1995 Jeff Law (law@snake.cs.utah.edu)
  2035. * som.c (hppa_som_gen_reloc_type): Choose a reasonable field
  2036. selector relocation for the difference of two symbols.
  2037. Thu Jul 13 10:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
  2038. * aoutx.h (NAME(aout,slurp_reloc_table)): Cast argument to size_t
  2039. for malloc.
  2040. * coff-mips.c (mips_relocate_section): Likewise, for memmove.
  2041. (mips_relax_section): Likewise, for malloc.
  2042. * cofflink.c (process_embedded_commands): Likewise.
  2043. (_bfd_coff_final_link): Likewise.
  2044. * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
  2045. (ecoff_final_link_debug_accumulate): Likewise.
  2046. (ecoff_indirect_link_order): Likewise, for memcpy and malloc.
  2047. (ecoff_reloc_link_order): Likewise, for malloc.
  2048. * ecofflink.c (ecoff_align_debug): Likewise, for memset.
  2049. (ecoff_write_symhdr): Likewise, for malloc.
  2050. * elf32-hppa.c (elf32_hppa_read_symext_info): Likewise.
  2051. * elf.c (assign_file_positions_except_relocs): Likewise, for
  2052. qsort.
  2053. * elf32-mips.c (mips_elf_read_ecoff_info): Likewise, for malloc.
  2054. * elfcode.h (elf_slurp_reloc_table): Likewise.
  2055. * elfcore.h (elf_corefile_note): Likewise.
  2056. * elflink.h (elf_link_add_object_symbols): Likewise.
  2057. (elf_link_read_relocs): Likewise.
  2058. (NAME(bfd_elf,size_dynamic_sections)): Likewise, for memset.
  2059. * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
  2060. * ieee.c (do_with_relocs): Likewise.
  2061. * linker.c (default_indirect_link_order): Likewise, for malloc.
  2062. * nlmcode.h (nlm_object_p): Likewise.
  2063. (nlm_write_object_contents): Likewise.
  2064. * oasys.c (oasys_set_section_contents): Likewise, for memcpy.
  2065. * reloc.c (bfd_generic_get_relocated_section_contents): Likewise,
  2066. for malloc.
  2067. * section.c (bfd_get_section_contents): Likewise, for memcpy.
  2068. * srec.c (srec_get_section_contents): Likewise.
  2069. (srec_set_section_contents): Likewise.
  2070. * sunos.c (bfd_sunos_size_dynamic_sections): Likewise, for
  2071. realloc and memset.
  2072. (sunos_scan_relocs): Likewise, for malloc.
  2073. (sunos_scan_dynamic_symbol): Likewise, for realloc.
  2074. * syms.c (_bfd_generic_read_minisymbols): Likewise, for malloc.
  2075. * versados.c (versados_get_section_contents): Likewise, for
  2076. memcpy.
  2077. * libbfd.c (real_read): Add prototype. Change argument types from
  2078. int to size_t.
  2079. (bfd_read): Cast real_read argument to size_t, not int.
  2080. (bfd_write): Cast fwrite argument to size_t, not int.
  2081. * elf64-gen.c (elf_info_to_howto): Fix definition for recent elf.c
  2082. changes.
  2083. * configure.in: Fix typo: change {$enableval} to ${enableval}.
  2084. * configure: Rebuild.
  2085. * Makefile.in (BFD32_BACKENDS): Add elflink.o.
  2086. * targets.c (bfd_target): Add fields _read_minisymbols and
  2087. _minisymbol_to_symbol.
  2088. (BFD_JUMP_TABLE_SYMBOLS): Add _read_minisymbols and
  2089. _minisymbol_to_symbol.
  2090. (bfd_read_minisymbols): Define.
  2091. (bfd_minisymbol_to_symbol): Define.
  2092. * syms.c (_bfd_generic_read_minisymbols): Define.
  2093. (_bfd_generic_minisymbol_to_symbol): Define.
  2094. * libbfd-in.h (_bfd_nosymbols_read_minisymbols): Define.
  2095. (_bfd_nosymbols_minisymbol_to_symbol): Define.
  2096. (_bfd_generic_read_minisymbols): Declare.
  2097. (_bfd_generic_minisymbol_to_symbol): Declare.
  2098. * bfd-in2.h: Rebuild.
  2099. * libbfd.h: Rebuild.
  2100. * aoutx.h (MINISYM_THRESHOLD): Define.
  2101. (NAME(aout,read_minisymbols)): New function.
  2102. (NAME(aout,minisymbol_to_symbol)): New function.
  2103. * libaout.h (NAME(aout,read_minisymbols)): Declare.
  2104. (NAME(aout,minisymbol_to_symbol)): Declare.
  2105. * aout-target.h (MY_read_minisymbols): Define.
  2106. (MY_minisymbol_to_symbol): Define.
  2107. * All targets: Define read_minisymbols and minisymbol_to_symbol.
  2108. Wed Jul 12 17:55:55 1995 Ken Raeburn <raeburn@cygnus.com>
  2109. * elflink.h (elf_link_add_object_symbols): Cast return value from
  2110. bfd_alloc.
  2111. * elfcode.h (size_info): Don't use "&" before function names.
  2112. Wed Jul 12 00:16:48 1995 Ken Raeburn <raeburn@kr-pc.cygnus.com>
  2113. * libelf.h (elf_backend_data): Use unsigned, not unsigned char,
  2114. for bitfields.
  2115. Tue Jul 11 15:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
  2116. * elf.c (bfd_section_from_shdr): In case SHT_REL[A], only get the
  2117. BFD section for the sh_link section if it is a SYMTAB section.
  2118. * aoutx.h (NAME(aout,link_add_symbols)): Don't bother to check
  2119. that archives hold a.out objects.
  2120. * cf-i386lynx.c (coff_bfd_link_add_symbols): Don't define.
  2121. (lynx_link_add_symbols): Remove.
  2122. * cf-m68klynx.c (coff_bfd_link_add_symbols): Don't define.
  2123. (lynx_link_add_symbols): Remove.
  2124. * elflink.h (elf_bfd_link_add_symbols): Don't bother to check that
  2125. archives hold ELF objects.
  2126. * archive.c (bfd_generic_archive_p): If the archive has a map, and
  2127. the target was defaulted, but the first object in the archive can
  2128. not be matched with that target, then return a bad format error.
  2129. * elf64-sparc.c (elf_sparc_howto_table): Set howto for WDISP16 to
  2130. elf64_wdisp16_reloc.
  2131. (elf64_wdisp16_reloc): New static function.
  2132. (elf64_sparc_relocate_section): New static function.
  2133. (elf_backend_relocate_section): Define.
  2134. * libelf.h (struct elf_size_info): Change type of last argument to
  2135. swap_symbol_out from char * to PTR.
  2136. (bfd_elf32_swap_symbol_out): Update declaration.
  2137. (bfd_elf64_swap_symbol_out): Likewise.
  2138. * elfcode.h (elf_swap_symbol_out): Change type of cdst from char *
  2139. to PTR.
  2140. * elf.c (swap_out_syms): Cast to PTR, not char *, when calling
  2141. swap_symbol_out routine.
  2142. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Likewise.
  2143. (elf_link_output_sym): Likewise.
  2144. (elf_link_output_extsym): Likewise.
  2145. * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Likewise.
  2146. Tue Jul 11 12:29:49 1995 Rick Sladkey <jrs@world.std.com>
  2147. * elf.c (_bfd_elf_find_nearest_line): Handle the simple case where
  2148. there is no debugging information.
  2149. Mon Jul 10 11:45:55 1995 Ken Raeburn <raeburn@cygnus.com>
  2150. * makefile.dos (OBJS): Add binary.o and tekhex.o. From DJ
  2151. Delorie.
  2152. Mon Jul 10 11:09:58 1995 Ian Lance Taylor <ian@cygnus.com>
  2153. * linker.c (set_symbol_from_hash): bfd_link_hash_new case: Don't
  2154. abort; it can happen for constructor symbols when not building
  2155. constructors.
  2156. * coff-i960.c (coff_i960_relocate): Correct typo: use ! on strcmp,
  2157. not on string.
  2158. * cofflink.c (_bfd_coff_generic_relocate_section): Remove unused
  2159. local i.
  2160. * coff-arm.c (coff_arm_rtype_to_howto): Don't declare.
  2161. (PCRELOFFSET): Define if not already defined.
  2162. * Makefile.in: Rebuild dependencies.
  2163. (BFD32_BACKENDS): Add coff-arm.o
  2164. (CFILES): Add coff-arm.c, pe-arm.c, pei-arm.c.
  2165. * aoutx.h (NAME(aout,link_hash_table_create)): Allocate hash table
  2166. using bfd_alloc, not malloc.
  2167. * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
  2168. * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
  2169. * i386linux.c (linux_link_hash_table_create): Likewise.
  2170. * linker.c (_bfd_generic_link_hash_table_create): Likewise.
  2171. * sunos.c (sunos_link_hash_table_create): Likewise.
  2172. Based on patches from Eric Youngdale <eric@aib.com>:
  2173. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): If -Bsymbolic,
  2174. output a DT_SYMBOLIC dynamic entry.
  2175. (elf_adjust_dynamic_symbol): If -Bsymbolic, don't require a PLT
  2176. entry for a locally defined symbol.
  2177. * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, do warn
  2178. about undefined symbols, and fill in the GOT entry for a symbol
  2179. defined in a regular object file.
  2180. (elf_i386_finish_dynamic_symbol): If -Bsymbolic, output a RELATIVE
  2181. reloc rather than a GLOB_DAT reloc for a symbol defined in a
  2182. regular object file.
  2183. * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, do warn
  2184. about undefined symbols, and fill in the GOT entry for a symbol
  2185. defined in a regular object file.
  2186. (elf_m68k_finish_dynamic_symbol): If -Bsymbolic, output a RELATIVE
  2187. reloc rather than a GLOB_DAT reloc for a symbol defined in a
  2188. regular object file.
  2189. * elf32-sparc.c (elf32_sparc_relocate_section): If -Bsymbolic, do
  2190. warn about undefined symbols, and fill in the GOT entry for a
  2191. symbol defined in a regular object file.
  2192. (elf32_sparc_finish_dynamic_symbol): If -Bsymbolic, output a
  2193. RELATIVE reloc rather than a GLOB_DAT reloc for a symbol defined
  2194. in a regular object file.
  2195. * config/m68k-coff.mt (SELECT_VECS): Rename from SELECT_VECTORS.
  2196. Correct elements to be actual BFD vector names.
  2197. * Makefile.in (Makefile): Don't depend upon @frags@.
  2198. (config.status): Depend upon @frags@.
  2199. Fri Jul 7 17:36:44 1995 Ian Lance Taylor <ian@cygnus.com>
  2200. * coffgen.c (coff_renumber_symbols): Sort defined symbols that are
  2201. neither BSF_FUNCTION not BSF_NOT_AT_END just before undefined
  2202. symbols.
  2203. * coffcode.h (coff_slurp_symbol_table): Set BSF_FUNCTION as well
  2204. as BSF_NOT_AT_END.
  2205. Fri Jul 7 17:16:15 1995 Ken Raeburn <raeburn@cygnus.com>
  2206. * Makefile.in (do_mostlyclean): Remove config.log.
  2207. (do_distclean): Remove config.cache.
  2208. Thu Jul 6 14:37:43 1995 Ian Lance Taylor <ian@cygnus.com>
  2209. * elf32-i386.c (elf_i386_relocate_section): Revert May 24 patch.
  2210. Don't copy PC32 reloc against section into shared object.
  2211. * Makefile.in: Rebuild dependencies.
  2212. (CFILES): Added elflink.c.
  2213. (Makefile): Depend upon config.status, not configure.in.
  2214. (config.status): New target; depend upon configure configure.host
  2215. and config.bfd.
  2216. Wed Jul 5 20:17:14 1995 Ken Raeburn <raeburn@cygnus.com>
  2217. * elfcore.h, elflink.h, elfcode.h, elf.c, elflink.c: Moved some
  2218. primarily size-independent code from elfcode.h to elf.c and new
  2219. file elflink.c; moved out other core- or linker-related routines
  2220. into other new .h files for clarity. Renamed many routines to
  2221. start with bfd_elf or _bfd_elf. Added a structure of
  2222. size-dependent but target-independent info to elfcode.h.
  2223. * Makefile.in: Build elflink.o. Update dependencies.
  2224. * libelf.h: Updated some declarations. Added a definition for the
  2225. new structure in elfcode.h. Added more fields to elf backend data
  2226. structure.
  2227. * elfxx-target.h: Refer to the appropriate size-dependent info.
  2228. * elf32-*.c: Changed some function names. Moved common
  2229. create_dynamic_sections code from m68k, sparc, and i386 support
  2230. into elflink.c. Define some new macros to fill in new fields of
  2231. back end data. Also clean up some "gcc -Wall" warnings regarding
  2232. unused or uninitialized variables.
  2233. * Makefile.in (BFD_LIBS): No, don't put elflink.o here.
  2234. * configure.in: Include it here whenever elf.o is specified.
  2235. Wed Jul 5 10:31:47 1995 Ian Lance Taylor <ian@cygnus.com>
  2236. * elf32-mips.c (mips_elf_object_p): Unconditionally set
  2237. elf_bad_symtab, since sometimes the symbol table is messed up and
  2238. the last symbol is global.
  2239. * ecoff.c (_bfd_ecoff_bfd_is_local_label): New function.
  2240. * libecoff.h (_bfd_ecoff_bfd_is_local_label): Declare.
  2241. * elf32-mips.c (mips_elf_is_local_label): New static function.
  2242. (bfd_elf32_bfd_is_local_label): Define.
  2243. * configure.in: Use $ac_config_sub, not $configsub.
  2244. * configure: Likewise.
  2245. Permit --enable-targets=ieee:
  2246. * config.bfd (*-*-ieee*): New target.
  2247. * config/ieee.mt: New file.
  2248. Wed Jul 5 04:16:35 1995 Ken Raeburn <raeburn@kr-pc.cygnus.com>
  2249. * config/i386aix.mh (HDEFINES): Remove -DFASCIST_FDOPEN.
  2250. Autoconfiscation:
  2251. * configure.in, Makefile.in, doc/Makefile.in: Switch from Cygnus
  2252. configure to autoconf ways of processing --enable arguments,
  2253. setting up symlinks, incorporating makefile fragments, printing
  2254. messages at configuration time, setting variables in Makefile.
  2255. Deleted some unused variables. Check for ranlib via autoconf.
  2256. For now, configure script removes doc/config.status.
  2257. * configure: New file.
  2258. * dep-in.sed: Use @SRCDIR@ instead of @srcdir@, so Makefile.in
  2259. line doesn't get broken by configure.
  2260. * doc/configure.in: Removed.
  2261. Tue Jul 4 12:22:21 1995 Ian Lance Taylor <ian@cygnus.com>
  2262. * archive.c (_bfd_construct_extended_name_table): If
  2263. BFD_TRADITIONAL_FORMAT is set, limit the length of all file names
  2264. to ar_max_namelen.
  2265. (bfd_dont_truncate_arname): If BFD_TRADITIONAL_FORMAT is set, call
  2266. bfd_bsd_truncate_arname.
  2267. (_bfd_write_archive_contents): Revert June 1 change.
  2268. * elfcode.h (NAME(bfd_elf,record_link_assignment)): Add provide
  2269. argument.
  2270. * bfd-in.h (bfd_elf32_record_link_assignment): Update prototype.
  2271. (bfd_elf64_record_link_assignment): Likewise.
  2272. * bfd-in2.h: Rebuild.
  2273. * libelf.h (struct elf_link_hash_table): Add needed field. Remove
  2274. saw_needed field.
  2275. * elfcode.h (elf_link_add_object_symbols): If elf_dt_needed_name
  2276. is an empty string, don't make a DT_NEEDED entry in the output
  2277. file. Record all DT_NEEDED entries found in input dynamic
  2278. objects.
  2279. (elf_link_output_extsym): Don't check saw_needed when issuing
  2280. warnings.
  2281. * elf.c (_bfd_elf_link_hash_table_init): Initialize needed, not
  2282. saw_needed.
  2283. (bfd_elf_get_needed_list): New function.
  2284. * bfd-in.h (struct bfd_elf_link_needed_list): Define.
  2285. (bfd_elf_get_needed_list): Define.
  2286. * bfd-in2.h: Rebuild.
  2287. * ecoff.c (_bfd_ecoff_find_nearest_line): Also initialize
  2288. find_buffer and fdrtab_len fields of newly allocated
  2289. find_line_info structure.
  2290. Mon Jul 3 17:03:52 1995 Jeff Law (law@snake.cs.utah.edu)
  2291. * som.c (hppa_som_gen_reloc_type): New argument "sym_diff",
  2292. nonzero when we're generating relocations for an expression
  2293. using the difference of two symbols. All callers changed.
  2294. Handle difference of symbols for both R_HPPA and R_COMPLEX
  2295. cases.
  2296. (som_write_fixups): Handle R_COMP1, R_COMP2 and R_CODE_EXPR
  2297. fixups.
  2298. Mon Jul 3 13:55:18 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2299. * config.bfd (win32): New configuration.
  2300. * configure.host (pe): Changed to i386win32.
  2301. * config/i386pe.mh: Deleted.
  2302. * config/i386win32.mh: New file.
  2303. Mon Jul 3 11:30:45 1995 Ian Lance Taylor <ian@cygnus.com>
  2304. * ecoff.c (_bfd_ecoff_find_nearest_line): If we allocate
  2305. find_line_info, clear the fdrtab field.
  2306. * targets.c (enum bfd_flavour): Add bfd_target_msdos_flavour here,
  2307. rather than in bfd-in2.h.
  2308. * bfd.c (enum bfd_error): Define bfd_error_no_armap.
  2309. (bfd_errmsgs): Add string for bfd_error_no_armap.
  2310. * bfd-in2.h: Rebuild.
  2311. * ecoff.c (ecoff_link_add_archive_symbols): If an archive has no
  2312. armap, set bfd_error_no_armap rather than bfd_error_no_symbols.
  2313. * elfcode.h (elf_link_add_archive_symbols): Likewise.
  2314. * linker.c (_bfd_generic_link_add_archive_symbols): Likewise.
  2315. * elfcode.h (elf_link_add_object_symbols): Permit common and
  2316. indirect symbols in weakdefs BFD_ASSERT.
  2317. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Simplify
  2318. BFD_ASSERT to permit some legal, but odd, cases.
  2319. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
  2320. * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
  2321. * Makefile.in: Rebuild dependencies.
  2322. (BFD32_BACKENDS): Add versados.o.
  2323. (CFILES): Add pe-i386.c, pei-i386.c, and versados.c.
  2324. Sun Jul 2 17:49:32 1995 Ian Lance Taylor <ian@cygnus.com>
  2325. * cofflink.c (_bfd_coff_generic_relocate_section): Cast base_file
  2326. to FILE * before using it.
  2327. * stab-syms.c: Revert yesterday's patch.
  2328. Sat Jul 1 12:10:42 1995 Fred Fish <fnf@cygnus.com>
  2329. * stab-syms.c (stdio.h): Include prior to libaout.h, which
  2330. includes bfdlink.h, which now uses FILE.
  2331. Sat Jul 1 00:11:08 1995 Ken Raeburn <raeburn@cygnus.com>
  2332. * elfxx-target.h: New file.
  2333. * libelf.h (struct elf_backend_data): Remove elf_64_p field.
  2334. * elfxx-target.h (elfNN_bed): Don't set it.
  2335. * elf32-target.h, elf64-target.h: Deleted.
  2336. * Makefile.in (elf32-target.h, elf64-target.h): Build them from
  2337. elfxx-target.h.
  2338. Fri Jun 30 16:07:18 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2339. * cofflink.c (_bfd_coff_generic_relocate_section): Compare
  2340. the full text of .reloc or .edata section names.
  2341. Fri Jun 30 15:47:37 1995 Fred Fish <fnf@cygnus.com>
  2342. * cofflink.c (_bfd_coff_generic_relocate_section):
  2343. Remove extra '+'.
  2344. Thu Jun 29 17:24:52 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2345. * coff-h8300.c (COFF_LONG_FILENAMES): Define.
  2346. Wed Jun 28 18:04:42 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2347. * Makefile.in: versados.o is now conditionally built.
  2348. * coffcode.h (add_data_entry): New function.
  2349. (coff_write_object_contents): Clean up. Calculate
  2350. data entries.
  2351. * cofflink.c (_bfd_coff_generic_relocate_section):
  2352. .reloc and .edata sections are IMAGE_BASED too.
  2353. If there's a base_file then write out base information.
  2354. * configure.host (i386-*-pe): New.
  2355. * syms.c (coff_section_type): Only scan prefixes.
  2356. * targets.c (bfd_target_vector): Versados is now conditionally
  2357. built.
  2358. * config/m68k-coff.mt: Build versados.o
  2359. * hosts/i386pe.h: New file.
  2360. Mon Jun 26 13:53:49 1995 Jeff Law (law@snake.cs.utah.edu)
  2361. * elf32-hpa.c (elf32_hppa_relocate_section): Close comment before
  2362. R_PARISC_DPREL21L handling.
  2363. Thu Jun 22 19:28:36 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  2364. Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
  2365. * config/i386-moss.mt: created.
  2366. Thu Jun 22 08:56:10 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2367. * reloc.c (bfd_perform_relocation): Add case for -ve words.
  2368. Wed Jun 21 13:13:49 1995 Jeff Law (law@snake.cs.utah.edu)
  2369. * elf32-hppa.c (elf32_hppa_relocate_section): Don't try to apply a
  2370. relocation against an undefined symbols.
  2371. Wed Jun 21 10:16:10 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2372. * versados.c: Second pass/rewrite.
  2373. Mon Jun 19 08:40:45 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2374. * syms.c (coff_section_type): Compare only the front part
  2375. of a section name.
  2376. Sat Jun 17 09:40:44 1995 Jeff Law (law@snake.cs.utah.edu)
  2377. * elf32-hppa.c (elf32_hppa_size_stubs): Set the size of the stub
  2378. section if we get an error.
  2379. * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Don't mess
  2380. with the operands of an R_PARISC_DPREL21L relocation if the insn
  2381. is not "addil <symbol>,%r27".
  2382. Fri Jun 16 15:04:47 1995 Stan Shebs <shebs@andros.cygnus.com>
  2383. * bfd-in.h (NT_subsystem, NT_stack_heap): Declare but don't
  2384. define.
  2385. * bfd-in2.h: Rebuilt.
  2386. * bfd.c (NT_subsystem, NT_stack_heap): Define.
  2387. Fri Jun 16 00:07:25 1995 Jeff Law (law@snake.cs.utah.edu)
  2388. * elf32-hppa.c (elf32_hppa_bfd_link_link_relocate): Use the right
  2389. type field (there are two!) when checking to see if $global$ is
  2390. defined.
  2391. Thu Jun 15 14:03:47 1995 Stan Shebs <shebs@andros.cygnus.com>
  2392. * bfd-in.h, bfd-in2.h (bfd_boolean): Rename bfd_true, bfd_false
  2393. to bfd_tttrue, bfd_fffalse so as not to conflict with functions.
  2394. * coffswap.h (coff_swap_scnhdr_out): Remove version that was
  2395. hacked for MPW C.
  2396. * mpw-config.in: Set shell vars instead of pasting to makefile
  2397. for each configuration, edit coffswap.h to make MPW C not choke.
  2398. (i386-unknown-coff, sh-hitachi-hms): Recognize.
  2399. * mpw-make.in (BFD_LIBS): Add versados.c.o.
  2400. * versados.c (versados_scan): Properly cast results from bfd_alloc.
  2401. Wed Jun 14 15:27:32 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2402. * cofflink.c (process_embedded_commands): New function
  2403. reads and handles .drectve sections for PE.
  2404. (coff_link_input_bfd): Call new function if PE.
  2405. Mon Jun 12 12:09:39 1995 Jeff Law (law@snake.cs.utah.edu)
  2406. * bfd-in.h (bfd_set_section_vma): Case true to a boolean.
  2407. (bfd_set_cacheable): Likewise.
  2408. * bfd-in2.h: Rebuilt.
  2409. Fri Jun 9 12:20:28 1995 Steve Chamberlain <sac@rtl.cygnus.com>
  2410. * elfcode.h (elf_sort_hdrs): Rewrite to be symmetrical.
  2411. Fri Jun 9 12:49:00 1995 Jeff Law (law@snake.cs.utah.edu)
  2412. * targets.c: Add copy_private_symbol_data and link_split_section
  2413. to the target vector.
  2414. * libbfd-in.h (_bfd_generic_bfd_copy_private_symbol_data): Define.
  2415. (_bfd_nolink_bfd_link_split_section): Likewise.
  2416. (bfd_generic_link_split_section): Declare.
  2417. * syms.c (bfd_copy_private_symbol_data): Define.
  2418. * linker.c (bf_link_split_section): Likewise.
  2419. * som.c (som_bfd_copy_private_symbol_data): New function
  2420. (som_bfd_link_split_section): Likewise.
  2421. * All other targets updated with default versions of new routines.
  2422. * Take out my braindamaged bfd_true/bfd_false changes from earlier
  2423. today. Replace with just:
  2424. * bfd-in.h: (TRUE_FALSE_ALREADY_DEFINED): Define this if
  2425. compiling with g++-2.6 or later.
  2426. * bfd-in2.h: Rebuilt.
  2427. Fri Jun 9 07:54:29 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2428. * versados.c (struct esd, get_4): Lint; use unsigned chars.
  2429. * coff-i960.c (coff_i960_relocate): Compare output section names
  2430. when converting for vxworks.
  2431. Wed Jun 7 19:01:30 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  2432. * elfcode.h (elf_fake_sections): Permit .scommon or COMMON
  2433. sections as random SHT_NOBITS sections, in case a linker script is
  2434. strange.
  2435. Tue Jun 6 17:29:32 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2436. * bfd-in.h (NT_subsystem, NT_stack_heap): Moved from pe.h
  2437. * coff-i386.c (coff_i386_rtype_to_howto): Get PE relocs right.
  2438. * coffcode.h (coff_mkobject): Set pe tdata bit when using PE.
  2439. * cofflink.c (COFF_WITH_PE code): Test on obj_pe bit rather
  2440. than conditional compile.
  2441. * configure.in: Fix PE dependencies.
  2442. * libcoff-in.h (obj_pe): New.
  2443. (coff_tdata): Added pe entry.
  2444. * libcoff.h: Regenerated.
  2445. Mon Jun 5 09:07:13 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2446. * coff-a29k.c (coff_a29k_adjust_symndx): Completely parenthesize
  2447. macro.
  2448. Mon Jun 5 02:15:20 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
  2449. Linker support for m68k-elf from Andreas Schwab
  2450. <schwab@issan.informatik.uni-dortmund.de>:
  2451. * elfcode.h (elf_link_add_object_symbols): Check for NULL when
  2452. looping through the symbol hashes.
  2453. (elf_bfd_final_link): When looking for _init and _fini don't use
  2454. the symbol if it is imported from another object.
  2455. * elf32-m68k.c: Relocation type changed from REL to RELA. Regular
  2456. and dynamic linking support functions added, similar to other elf
  2457. targets.
  2458. * config.bfd (i[345]86-*-gnu*): Use ELF configuration.
  2459. Fri Jun 2 18:54:59 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2460. * versados.c: New file.
  2461. * bfd-in2.h (struct _bfd): New field.
  2462. * bfd.c (struct _bfd): New field.
  2463. * configure.in (versados_vec): New field.
  2464. * targets.c (bfd_flavor): Added versados.
  2465. Thu Jun 1 13:51:49 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2466. * coffcode.h (sec_to_styp_flags, styp_to_sec_flags,
  2467. coff_new_section_hook): Any section that starts ".stab"
  2468. is now marked as debugging.
  2469. Thu Jun 1 16:15:16 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  2470. * archive.c (_bfd_write_archive_contents): Disable extended name
  2471. table until it can be made optional, so that native AR has half a
  2472. chance on SunOS and HP/UX.
  2473. * linker.c (_bfd_generic_link_output_symbols, case
  2474. bfd_link_hash_indirect): Add cast to correct pointer types.
  2475. Sat May 27 21:37:31 1995 J.T. Conklin <jtc@rtl.cygnus.com>
  2476. * config.bfd (m68k-bull-sysv*): Added strip_underscore=yes.
  2477. (m68k-est-coff): Removed. target does not effect object format.
  2478. Wed May 24 10:52:01 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2479. * linker.c (_bfd_generic_link_output_symbols): Cope with
  2480. indirect symbols.
  2481. * elf32-i386.c (elf_i386_relocate_section): Give error
  2482. message when linking to a shared reloc which isn't there.
  2483. Wed May 24 10:40:00 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2484. Support for ARM-PE.
  2485. * Makefile.in, coffcode.h, config.bfd, configure.in, pe-arm.c,
  2486. pei-arm.c, coff-arm.c, reloc.c, targets.c, config/arm-pe.mt:
  2487. Support for ARM COFF/PE.
  2488. Tue May 23 19:24:58 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  2489. * bfd.c (bfd_get_relocated_section_contents): Now a function,
  2490. tries calling routine from input bfd target vector for
  2491. bfd_indirect_link_order. Put a declaration into the header file.
  2492. * bfd-in2.h: Regenerated.
  2493. * elf32-mips.c (gprel16_with_gp): New function, split out from
  2494. mips_elf_gprel16_reloc.
  2495. (mips_elf_gprel16_reloc): Call it. If output bfd target vector
  2496. isn't elf flavoured, abort, since it's assumed to be elf in some
  2497. of this code, including the code that looks up the gp value.
  2498. (elf32_mips_get_relocated_section_contents): New function,
  2499. modified from bfd_generic_get_relocated_section_contents to deal
  2500. with passing gp to gprel16_with_gp.
  2501. (bfd_elf32_bfd_get_relocated_section_contents): New macro.
  2502. * elf32-target.h (bfd_elf32_bfd_get_relocated_section_contents):
  2503. Don't define if already defined.
  2504. Tue May 23 15:58:15 1995 Jeff Law (law@snake.cs.utah.edu)
  2505. * Makefile.in: Install bfdlink.h too.
  2506. Sun May 21 22:25:09 1995 Jeff Law (law@snake.cs.utah.edu)
  2507. * elf32-hppa.c (elf32_hppa_relocate_section): Handle undefined and
  2508. notsupported return codes from final_link_relocate (used when
  2509. $global$ is undefined or nonexistant).
  2510. (elf32_hppa_bfd_link_link_relocate): If $global$ exists, but is
  2511. not defined,then return bfd_reloc_undefined.
  2512. Fri May 19 10:00:14 1995 Steve Chamberlain <sac@rtl.cygnus.com>
  2513. * coffswap.h: (IMAGE_BASE): Define to 0 if not.
  2514. Thu May 18 04:24:01 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
  2515. Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
  2516. * aoutx.h (aout_link_input_section_standard): If defined, call
  2517. MY_relocatable_reloc before doing a partial relocation.
  2518. * aout-arm.c: (WRITE_HEADERS): Delete.
  2519. (NAME): Define version to override default in aoutx.h
  2520. (MY(howto_table)): Reformat. Alter some entries slightly.
  2521. (RELOC_ARM_BITS_NEG_{BIG,LITTLE}): Define.
  2522. (MY(reloc_howto), MY(put_reloc), MY(relocatable_reloc)): New functions.
  2523. (MY_reloc_howto, MY_put_reloc, MY_relocatable_reloc): Define.
  2524. (MY(fix_pcrel_26)): Renamed from aoutarm_fix_pcrel_26, return
  2525. bfd_reloc_ok not bfd_reloc_continue.
  2526. (MY(fix_pcrel_26_done)): Likewise.
  2527. (MY(bfd_reloc_type_lookup)): Renamed from aoutarm_reloc_type_lookup.
  2528. (MY_bfd_link_hash_table_create, MY_bfd_link_add_symbols,
  2529. MY_bfd_final_link): Delete.
  2530. (MY_swap_std_reloc_in, MY_swap_std_reloc_out, MY_get_section_contents):
  2531. Define.
  2532. (aoutx.h): Include it.
  2533. (MY(swap_std_reloc_{in,out})): New functions.
  2534. Use RELOC_ARM_BITS_NEG_{BIG,LITTLE} to extract negative reloc bit.
  2535. (aoutarm_squirt_out_relocs): Delete.
  2536. From: David Taylor (dtaylor@armltd.co.uk)
  2537. * config/arm[lb]-aout.mt: New files.
  2538. * aout-arm.c: New file.
  2539. * config.bfd: Handle arm{,e[lb]}-*-aout
  2540. * configure.in: Add vetor for aout_arm_{big,little}_vec.
  2541. * reloc.c: New relocation types for the ARM.
  2542. * targets.c (aout_arm_{big,little}_vec): declare.
  2543. Tue May 16 10:29:51 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
  2544. * libbfd.c (bfd_stat): If bfd_cache_lookup returns an error,
  2545. return an error to the caller. Call bfd_set_error on errors.
  2546. Tue May 16 14:44:45 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  2547. * libcoff-in.h (coff_renumber_symbols): Modified prototypes in
  2548. accordance with 11 May libcoff.h change.
  2549. Thu May 11 16:43:14 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2550. tekhex.c (first_phase): Understand type 0 symbols.
  2551. (tekhex_write_object_contents): Fix typo in final record.
  2552. Thu May 11 16:43:14 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2553. * coff-i960.c (optcall_callback): don't try and optimize
  2554. undefined refs.
  2555. (coff_write_relocs): Search for broken relocs on the way
  2556. out and fix them up.
  2557. (coff_renumber_symbols): Calculate and return index of
  2558. first undefined symbol.
  2559. (coff_write_object_contents): Call coff_renumber_symbols
  2560. and coff_write_relocs with the new args.
  2561. * libcoff.h: (coff_renumber_symbols, coff_renumber_symbols):
  2562. Modified prototypes.
  2563. Thu May 11 16:43:14 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2564. Tom Griest <griest@cs.yale.edu>
  2565. Initial support for PE format.
  2566. * Makefile.in, targets.c, configure.in, config.bfd:
  2567. Add support for i386-*-winnt and i386-*-pe.
  2568. * archive.c (do_slurp_coff_armap): Understand NTPE format
  2569. archives.
  2570. (_bfd_slurp_extended_name_table): Turn \ in a filename
  2571. into /.
  2572. * bfd-in.h (bfd_link_subsystem, _bfd_link_stack_heap): New.
  2573. * coff-i386.c (howto_table): Conditionalize PCRELOFFSET.
  2574. * coffcode.h (IMAGE_BASE): New.
  2575. (coff_compute_section_file_positions): Throw away .junk
  2576. sections for PE, align symbols.
  2577. (coff_write_object_contents): Throw away .junk sections
  2578. for PE. Remember info on .idata and .rsrc sections.
  2579. Fill in the PE header.
  2580. (coff_slurp_symbol_table): PE uses C_SECTION class.
  2581. * cofflink.c (_bfd_coff_final_link): Keep PE info up to date.
  2582. (_bfd_coff_generic_relocate_section): Cope with PE relocs.
  2583. * coffswap.h (coff_swap_{aout/file/scn/sym}hdr_{in/out}):
  2584. New code for PE headers.
  2585. Tue May 9 17:01:38 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  2586. * config.bfd: Add little endian PowerPC support.
  2587. * configure.in: Ditto.
  2588. * targets.c: Ditto.
  2589. * config/ppcle-elf.mt: New file, for little endian PowerPC
  2590. support.
  2591. * config/ppc-elf.mt: Add little endian powerpc to the BFD
  2592. selection vectors.
  2593. * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Complain if
  2594. linking a different endian object than we expect.
  2595. (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define, to provide little
  2596. endian support.
  2597. Tue May 2 16:32:24 1995 Jeff Law (law@snake.cs.utah.edu)
  2598. * config.bfd (hppa*-*-lites*): Treat just like hppa*-*-*elf*.
  2599. Tue Apr 25 19:38:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  2600. * coffgen.c (make_a_section_from_file): Initialize lma same as
  2601. vma.
  2602. Tue Apr 25 11:03:21 1995 Jason Molenda (crash@phydeaux.cygnus.com)
  2603. * hosts/std-host.h: #include ansidecl.h 'cause PTR is used in
  2604. std-host.h.
  2605. Mon Apr 24 23:56:44 1995 Ken Raeburn (raeburn@kr-pc.cygnus.com)
  2606. * hosts/i386linux.h (HAVE_PROCFS): Don't define it. Added lengthy
  2607. comment explaining why.
  2608. Mon Apr 24 10:34:02 1995 Michael Meissner <meissner@cygnus.com>
  2609. * hosts/i386linux.h (HAVE_PROCFS): If NO_PROCFS is defined, don't
  2610. define HAVE_PROCFS.
  2611. Mon Apr 24 08:33:12 1995 Michael Meissner <meissner@cygnus.com>
  2612. * elf32-ppc.c (ppc_elf_relocate_section): Do not continue
  2613. processing unknown symbols to prevent a cascade of errors.
  2614. Fri Apr 21 12:48:48 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  2615. Patches from H.J. Lu for Linux ELF core file support.
  2616. * elfcode.h (elf_core_file_matches_executable_p) [HAVE_PROCFS]:
  2617. Use prpsinfo_t instead of struct prpsinfo, for consistency.
  2618. * hosts/i386linux.h (HAVE_PROCFS): Define.
  2619. Thu Apr 20 09:07:39 1995 Steve Chamberlain <sac@slash.cygnus.com>
  2620. * linker.c (link_action): Do the right thing when a undefined
  2621. strong symbol appears after an undefined weak symbol.
  2622. Fri Apr 14 16:51:17 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  2623. * elf32-ppc.c (ppc_elf_relocate_section): New function to relocate
  2624. a whole section for the linker, bypassing bfd_perform_relocation.
  2625. (ppc_elf_reloc_type_lookup): New function to map the BFD
  2626. enumeration code into a howto structure.
  2627. (ppc_elf_howto_raw): Rename from ppc_elf_howto_table.
  2628. (ppc_elf_howto_table): New array that maps PowerPC relocation
  2629. numbers to howto structures without a linear search. Change from
  2630. using bfd_elf_generic_reloc to use ppc_elf_std_reloc.
  2631. (ppc_elf_howto_init): Initialize ppc_elf_howto_table from
  2632. ppc_elf_howto_raw.
  2633. (ppc_elf_reloc_type_lookup): Use a case statement instead of a
  2634. loop.
  2635. (ppc_elf_std_reloc): Replacement for bfd_elf_generic_reloc.
  2636. (ppc_elf_unsupported_reloc): Print a real error message, instead
  2637. of calling abort.
  2638. (ppc_elf_addr16_ha_inner): Abstract getting adjustment from
  2639. ppc_elf_addr16_ha_reloc, so ppc_elf_relocate_section can use it
  2640. too.
  2641. (ppc_elf_addr16_ha_reloc): Call it.
  2642. (ppc_elf_got16_inner): Abstract getting adjustment from
  2643. ppc_elf_got16_reloc, so ppc_elf_relocate_section can use it too.
  2644. (ppc_elf_got16_reloc): Call it.
  2645. (ppc_elf_info_to_howto): Rename from powerpc_info_to_howto.
  2646. * elfcode.h (elf_symbol_from_bfd_symbol): Omit space in debugging
  2647. output.
  2648. (elf_symbol_flags): Add debug function to decode flags so that
  2649. defining DEBUG to be 4 will compile again.
  2650. (elf_debug_section): Fix typo in debug output.
  2651. Fri Apr 14 16:03:04 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  2652. * config.bfd: Add m68*-*-elf*.
  2653. * elf32-m68k.c: Filled out implementation, except for dynamic
  2654. linking support.
  2655. * reloc.c (enum bfd_reloc_code_real): Added *_GOT_PCREL, *_GOTOFF,
  2656. *_PLT_PCREL, *_PLTOFF, *_68K_* relocations for ELF.
  2657. * libbfd.h, bfd-in2.h: Regenerated.
  2658. Thu Apr 13 14:28:04 1995 Torbjorn Granlund <tege@adder.cygnus.com>
  2659. * coff-m68k.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
  2660. 1 to 2.
  2661. (bfd_target): Change minimum section alignment from 1 to 2.
  2662. Wed Apr 12 12:40:04 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  2663. * aoutx.h (machine_type, case bfd_arch_mips): Treat R8000 like
  2664. R6000 and R4000 for now.
  2665. Tue Apr 4 12:28:25 1995 Stan Shebs <shebs@andros.cygnus.com>
  2666. * mpw-config.in: New file, MPW version of configure.in.
  2667. * mpw-make.in: New file, MPW version of Makefile.in.
  2668. * hosts/mpw.h: New file, MPW host definitions.
  2669. * ecoffswap.h (ecoff_swap_pdr_in, ecoff_swap_pdr_in) [MPW_C]:
  2670. Alternate versions without ECOFF_64 that chokes MPW C.
  2671. * coffswap.h (coff_swap_scnhdr_out): Add alternative version with
  2672. partly-expanded macros.
  2673. Thu Mar 30 14:56:21 1995 Ian Lance Taylor <ian@cygnus.com>
  2674. * reloc.c (bfd_perform_relocation): Don't bother to check for
  2675. overflow if the symbol is undefined.
  2676. Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
  2677. * config.bfd: Change linux to default to elf. Using
  2678. i[345]86-*-linuxaout will build a library which defaults to a.out.
  2679. * config/i386-laout.mt: Rename from old config/i386-linux.mt.
  2680. * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
  2681. Comment out EXTRALIBS.
  2682. * config/i386-lelf.mt: Remove.
  2683. Wed Mar 29 12:01:30 1995 Ian Lance Taylor <ian@cygnus.com>
  2684. * coff-i960.c (coff_i960_relocate): Cache the section symbol in
  2685. the used_by_bfd field of the section, to avoid looping for each
  2686. reloc.
  2687. * cpu-h8500.c (arch_info_struct): Change name from "H8/300" to
  2688. "h8300" for consistency with other cpu-* files.
  2689. Tue Mar 28 15:14:11 1995 Ian Lance Taylor <ian@cygnus.com>
  2690. * bout.c (b_out_canonicalize_reloc): Handle SEC_CONSTRUCTOR
  2691. sections.
  2692. (b_out_get_reloc_upper_bound): Likewise.
  2693. * linker.c (generic_link_add_symbol_list): Skip constructor
  2694. symbols which the main linker code did not do anything with.
  2695. (_bfd_generic_link_output_symbols): Use udata.p if it is set,
  2696. rather than looking the symbol up in the hash table. Just pass
  2697. through constructor symbols for which udata.p is not set. If the
  2698. linker defined the symbol, clear the constructor flag.
  2699. Tue Mar 21 10:50:32 1995 Jeff Law (law@snake.cs.utah.edu)
  2700. * som.c (som_set_reloc_info): Sign extend constants from
  2701. R_DATA_OVERRIDE fixups.
  2702. * libhppa.h (sign_extend): Renamed from sign_ext. Fix.
  2703. (low_sign_extend): Likewise.
  2704. Mon Mar 20 22:39:10 1995 Jeff Law (law@snake.cs.utah.edu)
  2705. * som.c (som_slurp_symbol_table): Tighten test to determine
  2706. what symbols are section symbols.
  2707. Sat Mar 18 01:54:45 1995 Ian Lance Taylor <ian@cygnus.com>
  2708. * elfcode.h (elf_bfd_link_add_symbols): An empty archive is OK.
  2709. Fri Mar 17 16:29:02 1995 Jeff Law (law@snake.cs.utah.edu)
  2710. * som.c (som_bfd_copy_private_section_data): Just return true when
  2711. either the input or output section isn't attached to a SOM BFD.
  2712. (som_bfd_copy_private_bfd_data): Similarly for BFD private data.
  2713. Fri Mar 17 11:50:34 1995 Ian Lance Taylor <ian@cygnus.com>
  2714. * elfcode.h (elf_link_add_object_symbols): Check whether a dynamic
  2715. object has already been included, and ignore it the second time.
  2716. Wed Mar 15 11:56:40 1995 Ian Lance Taylor <ian@cygnus.com>
  2717. * elf32-sparc.c (elf_sparc_howto_table): Change R_SPARC_GOT13 from
  2718. complain_overflow_bitfield to complain_overflow_signed.
  2719. * libelf.h (bfd_elf32__write_relocs): Don't declare.
  2720. (bfd_elf64__write_relocs): Don't declare.
  2721. Tue Mar 14 05:54:33 1995 Ken Raeburn (raeburn@kr-pc.cygnus.com)
  2722. * stab-syms.c (aout_stab_name): Moved aout_stab_names to be local
  2723. to this function. Recoded function to stop using table, to
  2724. improve performance (on i486-netbsd host). Left old version
  2725. intact under "#if 0" for further performance testing.
  2726. Mon Mar 13 13:48:49 1995 Ian Lance Taylor <ian@cygnus.com>
  2727. * elfcode.h (write_relocs): Make static. Use PTR argument as a
  2728. pointer to a boolean variable set to true if something fails.
  2729. Cast to PTR rather than void *.
  2730. (sym_is_global): Rewrite for clarity.
  2731. (map_program_segments): If the program header size is too small,
  2732. call _bfd_error_handler and return failure rather than aborting.
  2733. (NAME(bfd_elf,write_object_contents)): Pass boolean variable when
  2734. calling write_relocs.
  2735. (elf_symbol_from_bfd_symbol): Use BFD_ASSERT rather than abort.
  2736. (struct elf_info_failed): Define.
  2737. (NAME(bfd_elf,size_dynamic_sections)): Declare variables in inner
  2738. blocks. Pass elf_info_failed structure when calling
  2739. elf_export_symbol and elf_adjust_dynamic_symbol.
  2740. (elf_export_symbol): Treat data argument as elf_info_failed rather
  2741. than bfd_link_info. Set failed field on error.
  2742. (elf_adjust_dynamic_symbol): Likewise.
  2743. (struct elf_finfo_failed): Define.
  2744. (elf_bfd_final_link): Pass elf_finfo_failed structure when calling
  2745. elf_link_output_extsym. Use BFD_ASSERT rather than abort.
  2746. (elf_link_output_extsym): Treat data argument as elf_finfo_failed
  2747. rather than elf_final_link_info. Set failed field on error.
  2748. (elf_link_input_bfd): Use BFD_ASSERT rather than abort.
  2749. (elf_reloc_link_order): Likewise.
  2750. * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Only write
  2751. out PLTRELSZ, PLTREL and JMPREL relocs if there is a .rela.plt
  2752. section. Solaris 2.4 apparently does not handle empty reloc
  2753. information correctly.
  2754. * archive.c (bsd_write_armap): Cast getuid and getgid results to
  2755. long, and print with %ld.
  2756. Fri Mar 10 16:41:05 1995 Ian Lance Taylor <ian@cygnus.com>
  2757. * aoutx.h (translate_to_native_sym_flags): Always use the output
  2758. section if it is not NULL.
  2759. Thu Mar 9 15:06:25 1995 Ian Lance Taylor <ian@cygnus.com>
  2760. * coffswap.h (coff_swap_scnhdr_out): If the line number count or
  2761. the reloc count does not fit, print an error and return 0.
  2762. * coffcode.h (coff_write_object_contents): Check return value of
  2763. coff_swap_scnhdr_out.
  2764. * ecoff.c (_bfd_ecoff_write_object_contents): Check return value
  2765. of bfd_coff_swap_scnhdr_out.
  2766. * bfd.c: Include <stdarg.h> or <varargs.h>, depending upon
  2767. ANSI_PROTOTYPES.
  2768. (bfd_error_handler_type): New global type.
  2769. (_bfd_error_program_name): New static variable.
  2770. (_bfd_default_error_handler): New static function.
  2771. (_bfd_error_handler): New BFD private global variable.
  2772. (bfd_set_error_handler): New globally visible function.
  2773. (bfd_set_error_program_name): New globally visible function.
  2774. * libbfd-in.h (_bfd_error_handler): Declare.
  2775. * bfd-in2.h, libbfd.h: Rebuild.
  2776. * aoutx.h (NAME(aout,swap_ext_reloc_in)): Add symcount parameter,
  2777. and use it instead of bfd_get_symcount. Check r_index after
  2778. setting r_extern based on whether this is a base relative reloc.
  2779. (NAME(aout,swap_std_reloc_IN)): Add symcount parameter, and use it
  2780. instead of bfd_get_symcount.
  2781. (NAME(aout,slurp_reloc_table)): Pass bfd_get_symcount to reloc
  2782. swap routines.
  2783. * libaout.h (NAME(aout,swap_ext_reloc_in)): Add symcount parameter
  2784. to declaration.
  2785. (NAME(aout,swap_std_reloc_in)): Likewise.
  2786. * sunos.c (sunos_canonicalize_dynamic_reloc): Pass
  2787. info->dynsym_count to reloc swap routines.
  2788. * aout-ns32k.c (MY_swap_std_reloc_in): Add symcount parameter.
  2789. * hp300hpux.c (MY(swap_std_reloc_in)): Likewise.
  2790. (MY(slurp_reloc_table)): Pass bfd_get_symcount to reloc swap
  2791. routine.
  2792. * i386lynx.c (NAME(lynx,swap_ext_reloc_in)): Add symcount
  2793. parameter.
  2794. (NAME(lynx,swap_std_reloc_in)): Likewise.
  2795. (NAME(lynx,slurp_reloc_table)): Pass bfd_get_symcount to reloc
  2796. swap routines.
  2797. Thu Mar 9 12:04:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  2798. * bfd.c (bfd_merge_private_bfd_data): New function vector to be
  2799. called by the linker to merge any private bfd data of the input
  2800. files and the output file. Used by the PowerPC ELF support to
  2801. check whether -mrelocatable is used for all modules.
  2802. (bfd_set_private_flags): New function vector to be called by the
  2803. assembler to set private flags. Used by the PowerPC ELF support
  2804. to set that a particular object file was assembled with the
  2805. -mrelocatable option.
  2806. * targets.c (BFD_JUMP_TABLE_COPY): Add intiialization of the
  2807. bfd_merge_private_bfd_data and bfd_set_private_flags function
  2808. vectors.
  2809. * bfd-in2.h, libbfd-in.h: Rebuild with bfd.c and targets.c
  2810. changes.
  2811. * elf32-ppc.c (ppc_elf_set_private_flags): New function to set the
  2812. ELF e_flags field.
  2813. (ppc_elf_copy_private_bfd_data): Copy the e_flags field from the
  2814. input file to the output file.
  2815. (ppc_elf_merge_private_bfd_data): Check for a mismatch between the
  2816. e_flags field of all of the linker input files.
  2817. * libelf.h (elf_obj_tdata): Add ppc_flags_init field so that the
  2818. PowerPC support can check if compataible e_flags are present.
  2819. * aout-target.h: Add NOP for the bfd_merge_private_bfd_data
  2820. and bfd_set_private_flags function vectors.
  2821. * coffcode.h: Ditto.
  2822. * elf32-target.h: Ditto.
  2823. * elf64-target.h: Ditto.
  2824. * libbfd.h: Ditto.
  2825. * libecoff.h: Ditto.
  2826. * som.c: Ditto.
  2827. Wed Mar 8 00:53:54 1995 Ian Lance Taylor <ian@cygnus.com>
  2828. * cpu-mips.c (arch_info_struct): Add mips:8000 entry.
  2829. * elfcode.h (swap_out_syms): Mark an undefined BSF_WEAK symbol as
  2830. STB_WEAK rather than STB_GLOBAL.
  2831. Tue Mar 7 12:23:47 1995 Ian Lance Taylor <ian@cygnus.com>
  2832. * coffcode.h (bfd_coff_backend_data): Add new field
  2833. _bfd_coff_adjust_symndx.
  2834. (bfd_coff_adjust_symndx): Define.
  2835. (coff_adjust_symndx): Define as NULL if not already defined.
  2836. (bfd_coff_std_swap_table): Initialize new field to
  2837. coff_adjust_symndx.
  2838. * cofflink.c (coff_link_input_bfd): Call coff_adjust_symndx if it
  2839. is defined.
  2840. * coff-a29k.c (coff_a29k_adjust_symndx): New static function.
  2841. (coff_adjust_symndx): Define before including coffcode.h.
  2842. * libcoff.h: Rebuild.
  2843. * format.c (bfd_check_format_matches): Skip binary_vec when
  2844. searching through bfd_target_vector.
  2845. * elfcode.h (elf_sort_hdrs): Check SHT_NOBITS before checking
  2846. sh_size.
  2847. Mon Mar 6 23:31:36 1995 Doug Evans <dje@chestnut.cygnus.com>
  2848. * elfcode.h (elf_sort_hdrs): Keep SHT_NOBITS sections after
  2849. !SHT_NOBITS ones.
  2850. Mon Mar 6 09:53:08 1995 Jeff Law (law@snake.cs.utah.edu)
  2851. * cpu-hppa.c (arch_info_struct): Support both PA1.0 and PA1.1
  2852. machine types.
  2853. (bfd_hppa_arch): Link in both PA1.0 and PA1.1 architecture info
  2854. structures.
  2855. * libhppa.h (enum pa_arch): New enumeration to describe the
  2856. different variants of the PA architecture.
  2857. * som.c (som_object_setup): Use new enumeration to set machine
  2858. type.
  2859. (som_finish_writing): If the machine type is PA1.1, then use the
  2860. PA1.1 machine identifier in the output file.
  2861. Thu Mar 2 15:58:24 1995 Ian Lance Taylor <ian@cygnus.com>
  2862. * aoutx.h (NAME(aout,swap_ext_reloc_in)): Treat the index of a
  2863. base relative reloc as an index into the symbol table, regardless
  2864. of the setting of r_extern.
  2865. (NAME(aout,swap_std_reloc_in)): Likewise.
  2866. * aoutx.h (NAME(aout,set_section_contents)): Double check that the
  2867. caller is writing to a valid section.
  2868. Thu Mar 2 14:37:57 1995 Bryan Ford <baford@cs.utah.edu>
  2869. * binary.c: Add support for reading binary files. Loads the raw
  2870. contents of the file into a data section and wraps some symbols
  2871. around it. The symbols `_binary_<filename>_start' and
  2872. `_binary_<filename>_end' indicate the start and end of the data,
  2873. while `_binary_<filename>_size' is an absolute symbol whose value
  2874. is the size of the data. <filename> is the name of the binary
  2875. input file, with all non-alphanumeric characters converted to
  2876. underscores.
  2877. * archures.c (bfd_arch_get_compatible): Assume users knows what
  2878. they're doing if one of the architectures is bfd_arch_unknown.
  2879. Wed Mar 1 17:30:46 1995 Michael Meissner <meissner@cygnus.com>
  2880. * elf32-ppc.c (elf_powerpc_howto_table): For relocation
  2881. R_PPC_GOT16, change complain_on_overflow to be
  2882. complain_overflow_signed.
  2883. Wed Mar 1 11:52:55 1995 Jason Molenda <crash@phydeaux.cygnus.com>
  2884. * configure.host: Recognize powerpc-*-aix*.
  2885. Wed Mar 1 11:57:39 1995 Ian Lance Taylor <ian@cygnus.com>
  2886. * coff-i960.c (COFF_PAGE_SIZE): Define.
  2887. * configure.in: Rewrite output of TDEFAULTS to avoid relying on
  2888. semantics of single quotes in parameter substitution.
  2889. Tue Feb 28 12:53:09 1995 Ian Lance Taylor <ian@cygnus.com>
  2890. * elfcode.h (elf_sort_hdrs): Sort empty sections before non-empty
  2891. sections, if they have the same VMA.
  2892. * config.bfd (i[345]86-*-linuxelf*): New target. Use i386-lelf.
  2893. (i[345]86-*-gnuelf*): New target. Use i386-gelf.
  2894. * config/i386-lelf.mt: New file.
  2895. * config/i386-gelf.mt: New file.
  2896. Mon Feb 27 12:58:25 1995 Kung Hsu <kung@mexican.cygnus.com>
  2897. * config.bfd: add a29k-*-vxworks configuration.
  2898. Wed Feb 22 14:40:26 1995 Ian Lance Taylor <ian@cygnus.com>
  2899. * libaout.h (NAME(aout,slurp_reloc_table)): Change declaration to
  2900. use reloc_howto_type rather than const struct reloc_howto_struct.
  2901. Tue Feb 21 18:19:22 1995 Ian Lance Taylor <ian@cygnus.com>
  2902. * bout.c (b_out_slurp_reloc_table): Don't return an error if asked
  2903. for relocations for the .bss section.
  2904. Tue Feb 21 15:13:05 1995 Jeff Law (law@snake.cs.utah.edu)
  2905. * som.c (som_bfd_ar_write_symbol_stuff): Handle objects with odd
  2906. lengths.
  2907. Fri Feb 17 12:34:36 1995 Michael Meissner <meissner@cygnus.com>
  2908. * elf32-ppc.c (ppc_elf_got16_reloc): Make GOT style relocs add
  2909. 32768, so the GOT pointer can point to 16384 pointers, instead of
  2910. 8192.
  2911. Fri Feb 17 11:45:38 1995 Ian Lance Taylor <ian@cygnus.com>
  2912. * hosts/sysv4.h: Include <unistd.h>, <stdlib.h>, and <time.h>.
  2913. Only define SEEK_SET and SEEK_CUR if they are not already defined.
  2914. Remove all external function declarations.
  2915. * syms.c (bfd_decode_symclass): Return 'W' for a weak symbol.
  2916. * coffgen.c (coff_real_object_p): Set start address and flags
  2917. before calling coff_mkobject_hook. Restore them on failure.
  2918. * ecoff.c (_bfd_ecoff_mkobject_hook): If not ECOFF_AOUT_ZMAGIC,
  2919. clear D_PAGED.
  2920. * coffgen.c: Reindented.
  2921. Thu Feb 16 14:37:23 1995 Doug Evans <dje@cygnus.com>
  2922. * reloc.c (bfd_perform_relocation): Don't use bitpos in overflow
  2923. calculations.
  2924. (bfd_install_relocation): Likewise.
  2925. Thu Feb 16 13:22:29 1995 Ian Lance Taylor <ian@cygnus.com>
  2926. * hosts/std-host.h: Remove all function declarations which return
  2927. int or void, except the one for free.
  2928. Wed Feb 15 14:54:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  2929. * elf32-ppc.c (elf_powerpc_howto_table): Use a destination mask of
  2930. 0xffffffff for R_PPC_REL32, not 0.
  2931. (powerpc_reloc_map): Add low 16 bit, high 16 bit, and high 16 bit
  2932. adjusted relocations.
  2933. Tue Feb 14 17:47:17 1995 Ian Lance Taylor <ian@cygnus.com>
  2934. * elf32-mips.c (struct mips_elf_find_line): Define.
  2935. (mips_elf_find_nearest_line): New static function.
  2936. (bfd_elf32_find_nearest_line): Define.
  2937. * libelf.h (struct elf_obj_tdata): Add find_line_info field.
  2938. * ecoff.c (_bfd_ecoff_swap_tir_in): Move to ecofflink.c.
  2939. (_bfd_ecoff_swap_tir_out): Likewise.
  2940. (_bfd_ecoff_swap_rndx_in): Likewise.
  2941. (_bfd_ecoff_swap_rndx_out): Likewise.
  2942. (cmp_fdrtab_entry): Likewise.
  2943. (mk_fdrtab): Likewise.
  2944. (lookup): Likewise.
  2945. (_bfd_ecoff_find_nearest_line): Just call _bfd_ecoff_locate_line
  2946. to do most of the work. Allocate find_line_info if necessary.
  2947. * ecofflink.c: Include "aout/stab_gnu.h".
  2948. (_bfd_ecoff_swap_tir_in): Move in from ecoff.c.
  2949. (_bfd_ecoff_swap_tir_out): Likewise.
  2950. (_bfd_ecoff_swap_rndx_in): Likewise.
  2951. (_bfd_ecoff_swap_rndx_out): Likewise.
  2952. (cmp_fdrtab_entry): Likewise. Use PTR instead of void *.
  2953. (mk_fdrtab): Move in from ecoff.c. Add debug_info, debug_swap,
  2954. and line_info arguments, and use them instead of ecoff_data.
  2955. (fdrtab_lookup): Move in from lookup in ecoff.c. Remove abfd
  2956. argument, add line_info argument. Use it instead of ecoff_data.
  2957. (_bfd_ecoff_locate_line): New function, mostly from the old
  2958. _bfd_ecoff_find_nearest_line in ecoff.c.
  2959. * libecoff.h (ecoff_data_type): Remove find_buffer, fdrtab_len and
  2960. fdrtab fields, replacing them find_line_info field.
  2961. (_bfd_ecoff_swap_tir_in): Declare.
  2962. (_bfd_ecoff_swap_tir_out): Declare.
  2963. (_bfd_ecoff_swap_rndx_in): Declare.
  2964. (_bfd_ecoff_swap_rndx_out): Declare.
  2965. * libbfd-in.h (_bfd_ecoff_locate_line): Declare.
  2966. * libbfd.h: Rebuild.
  2967. * configure.in: Don't use ecoff.o for bfd_elf32_bigmips_vec or
  2968. bfd_elf32_littlemips_vec.
  2969. * Makefile.in: Rebuild dependencies.
  2970. Tue Feb 14 14:04:22 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  2971. * libelf.h (elf_backend_data): Add fields elf_machine_alt1 and
  2972. elf_machine_alt2 which provide alternate versions of the machine
  2973. code.
  2974. * elf32-ppc.c (ELF_MACHINE_ALT1, ELF_MACHINE_ALT2): Define to
  2975. recognize old versions of the PowerPC machine code.
  2976. * elf32-target.h (elf32_bed): Initialize alternate machine code
  2977. fields defined by ELF_MACHINE_ALT1 and ELF_MACHINE_ALT2.
  2978. * elf64-target.h (elf64_bed): Initialize alternate machine code
  2979. fields defined by ELF_MACHINE_ALT1 and ELF_MACHINE_ALT2.
  2980. * elfcode.h (elf_object_p, elf_core_file_p): In addition to the
  2981. main machine code field, check the two alternate machine code
  2982. fields.
  2983. Tue Feb 14 12:46:48 1995 Ian Lance Taylor <ian@cygnus.com>
  2984. * aoutf1.h (MACHTYPE_OK): Don't define if already defined. Don't
  2985. accept M_SPARC if bfd_arch_sparc is not in the list of supported
  2986. architectures, and don't accept a 680x0 machine type if
  2987. bfd_arch_m68k is not in the list of supported architectures.
  2988. * aout0.c (MACHTYPE_OK): Define.
  2989. Mon Feb 13 23:25:38 1995 Ian Lance Taylor <ian@cygnus.com>
  2990. * aoutx.h (NAME(aout,swap_ext_reloc_in)): Don't return a pointer
  2991. to garbage if the symbol index is out of range.
  2992. (NAME(aout,swap_std_reloc_in)): Likewise.
  2993. Thu Feb 9 18:36:52 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  2994. * Makefile.in (BFD32_BACKENDS): Add i386msdos.o.
  2995. Thu Feb 9 12:02:35 1995 Ian Lance Taylor <ian@cygnus.com>
  2996. * i386linux.c (NEEDS_SHRLIB): Define.
  2997. (linux_tally_symbols): Crash if a NEEDS_SHRLIB symbol is
  2998. undefined. From hjl@nynexst.com (H.J. Lu).
  2999. Wed Feb 8 17:26:00 1995 Ian Lance Taylor <ian@cygnus.com>
  3000. * linker.c (generic_link_check_archive_element): Allocate common
  3001. symbol information structure. Don't bother to check for common
  3002. symbol size overflow.
  3003. (_bfd_generic_link_add_one_symbol): Likewise.
  3004. * aoutx.h (aout_link_check_ar_symbols): Likewise.
  3005. * linker.c (generic_link_check_archive_element): Adjust references
  3006. to common symbol information for new structure.
  3007. (_bfd_generic_link_add_one_symbol): Likewise.
  3008. * aoutx.h (aout_link_check_ar_symbols): Likewise.
  3009. (aout_link_add_symbols): Likewise.
  3010. * ecoff.c (ecoff_link_add_externals): Likewise.
  3011. * elfcode.h (elf_link_add_object_symbols): Likewise.
  3012. (elf_link_output_extsym): Likewise.
  3013. * sunos.c (sunos_add_one_symbol): Likewise.
  3014. Wed Feb 8 09:53:42 1995 Doug Evans <dje@canuck.cygnus.com>
  3015. * elfcode.h (elf_sort_hdrs): Put SHT_NOBITS sections after !SHT_NOBITS.
  3016. Tue Feb 7 16:27:33 1995 Jeff Law (law@snake.cs.utah.edu)
  3017. * som.c (som_bfd_find_nearest_line): Just return false, don't
  3018. abort.
  3019. Tue Feb 7 14:43:33 1995 Ken Raeburn (raeburn@kr-pc.cygnus.com)
  3020. * ecoff.c: Reformatted some comments and brace constructs in
  3021. recent changes to GNU style.
  3022. (cmp_fdrtab_entry, mk_fdrtab, lookup): Use old-style function
  3023. definitions.
  3024. Tue Feb 7 14:21:28 1995 Ian Lance Taylor <ian@cygnus.com>
  3025. * ecoffswap.h (ecoff_swap_pdr_in): Zero out intern before setting
  3026. any of the fields.
  3027. Mon Feb 6 20:01:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  3028. Sat Feb 4 14:20:24 1995 David Mosberger-Tang <davidm@piston.cs.arizona.edu>
  3029. * ecoffswap.h (ecoff_swap_pdr_in, ecoff_swap_pdr_out): added
  3030. internalizing/externalizing new "prof" field.
  3031. * libecoff.h (ecoff_tdata): added fdrtab.
  3032. * ecoff.c (_bfd_ecoff_find_nearest_line): Fixed.
  3033. Mon Feb 6 14:25:24 1995 Ian Lance Taylor <ian@cygnus.com>
  3034. * libelf.h (struct elf_link_hash_table): Add saw_needed field.
  3035. * elfcode.h (elf_link_add_object_symbols): Set saw_needed if
  3036. DT_NEEDED seen in .dynamic section.
  3037. (elf_link_output_extsym): Warn if an undefined symbol is
  3038. only referenced from a dynamic object, and not making a shared
  3039. object, and saw_needed is false.
  3040. * elf.c (_bfd_elf_link_hash_table_init): Initialize saw_needed.
  3041. * libelf.h (ELF_LINK_HASH_DEFINED_WEAK): Don't define.
  3042. * elfcode.h (elf_link_add_object_symbols): Don't clear or set
  3043. ELF_LINK_HASH_DEFINED_WEAK.
  3044. (elf_link_output_extsym): Don't check ELF_LINK_HASH_DEFINED_WEAK.
  3045. Distinguish a weak defined symbol from a regular defined symbol.
  3046. * linker.c (enum link_action): Add DEFW.
  3047. (link_action): Add bfd_link_hash_defweak column.
  3048. (_bfd_generic_link_add_one_symbol): Add DEFW case. Handle
  3049. bfd_link_hash_defweak in a few other cases.
  3050. * Many files (bfd_link_hash_undefweak): Renamed from
  3051. bfd_link_hash_weak.
  3052. * aoutx.h (aout_link_write_symbols): Handle bfd_link_hash_defweak.
  3053. (aout_link_write_other_symbol): Likewise.
  3054. (aout_link_input_section_std): Likewise.
  3055. (aout_link_input_section_ext): Likewise.
  3056. * bout.c (get_value): Likewise.
  3057. * coff-a29k.c (coff_a29k_relocate_section): Likewise.
  3058. * coff-alpha.c (alpha_convert_external_reloc): Likewise.
  3059. (alpha_relocate_section): Likewise.
  3060. * coff-mips.c (mips_relocate_section): Likewise.
  3061. (mips_relax_section): Likewise.
  3062. (bfd_mips_ecoff_create_embedded_relocs): Likewise.
  3063. * cofflink.c (coff_write_global_sym): Likewise.
  3064. (_bfd_coff_generic_relocate_section): Likewise.
  3065. * ecoff.c (ecoff_link_add_externals): Likewise.
  3066. (ecoff_link_write_external): LIkewise.
  3067. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
  3068. (elf32_hppa_size_stubs): Likewise.
  3069. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
  3070. (elf_i386_relocate_section): Likewise.
  3071. (elf_i386_finish_dynamic_symbol): Likewise.
  3072. * elf32-mips.c (mips_elf_output_extsym): Likewise.
  3073. (mips_elf_relocate_section): Likewise.
  3074. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
  3075. (elf32_sparc_relocate_section): Likewise.
  3076. * elfcode.h (elf_link_add_object_symbols): Likewise.
  3077. (elf_adjust_dynamic_symbol): Likewise.
  3078. (elf_bfd_final_link): Likewise.
  3079. (elf_link_output_extsym): Likewise.
  3080. * i386linux.c (linux_add_one_symbol): Likewise.
  3081. (linux_tally_symbols): Likewise.
  3082. (linux_finish_dynamic_link): Likewise.
  3083. * linker.c (_bfd_generic_link_output_symbols): Likewise.
  3084. (set_symbol_from_hash): Likewise.
  3085. * reloc16.c (bfd_coff_reloc16_get_value): Likewise.
  3086. (bfd_perform_slip): Likewise.
  3087. * sunos.c (sunos_add_one_symbol): Likewise.
  3088. (sunos_scan_std_relocs): Likewise.
  3089. (sunos_scan_ext_relocs): Likewise.
  3090. (sunos_scan_dynamic_symbol): Likewise.
  3091. (sunos_write_dynamic_symbol): Likewise.
  3092. Mon Feb 6 03:20:17 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  3093. Changes from Bryan Ford, baford@schirf.cs.utah.edu:
  3094. * config.bfd (i[345]86-*-msdos*): New target.
  3095. * configure.in (i386msdos_vec): Handle it.
  3096. * i386msdos.c: New file.
  3097. * config/i386-msdos.mt: New file.
  3098. * bfd.c (enum bfd_error): Added new value bfd_error_file_too_big.
  3099. (bfd_errmsgs): Added string to table.
  3100. * libaout.h (reloc_type-lookup): Declare it.
  3101. * targets.c (enum bfd_flavour): Added bfd_target_msdos_flavour.
  3102. (i386msdos_vec): Declare.
  3103. (bfd_target_vector): Add it to the list.
  3104. * bfd-in2.h: Regenerated.
  3105. Wed Feb 1 01:32:14 1995 Jeff Law (law@snake.cs.utah.edu)
  3106. * som.c (som_set_reloc_info, case R_DATA_ONE_SYMBOL): If there's
  3107. nothing in R_DATA_OVERRIDE, then try to find the addend in the
  3108. section's contents.
  3109. (som_write_fixups): Ignore the addend in a R_DATA_ONE_SYMBOL fixup.
  3110. * som.c (som_object_setup): More heruistics to detect the
  3111. braindamaged HP OSF1 linker.
  3112. (setup_sections): Don't forget to free subspace_sections if we get
  3113. an error.
  3114. (som_slurp_string_table): Allocate strings on this bfd's obstack
  3115. rather than directly out of the heap.
  3116. (som_slurp_symbol_table): Likewise for the saved copy of the
  3117. canonical symbols.
  3118. (som_slurp_reloc_table): Likewise for the saved copy of the
  3119. canonical relocations. Free the native relocations when we're
  3120. done with them.
  3121. Tue Jan 31 21:53:28 1995 Doug Evans <dje@canuck.cygnus.com>
  3122. * libelf.h (struct elf_obj_tdata): New member program_header_size.
  3123. * elfcode.h (get_program_header_size): New parameters sorted_hdrs,
  3124. count, and maxpagesize. All callers updated.
  3125. If sorted_hdrs is non-NULL, use it to compute the number of segments.
  3126. Save result in case called again.
  3127. (assign_file_positions_except_relocs): Sort headers before calling
  3128. get_program_header_size.
  3129. Tue Jan 31 15:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
  3130. * elfcode.h (map_program_segments): Add sorted_hdrs parameter.
  3131. Search through it rather than through unsorted section headers.
  3132. (assign_file_positions_except_relocs): Pass sorted_hdrs to
  3133. map_program_segments.
  3134. Mon Jan 30 22:04:53 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  3135. * ecoff.c (_bfd_ecoff_find_nearest_line): Fix problems in range
  3136. checking. Expect argument OFFSET to be section-relative. From
  3137. David Mosberger-Tang, davidm@piston.cs.arizona.edu.
  3138. Mon Jan 30 11:22:11 1995 Ian Lance Taylor <ian@cygnus.com>
  3139. * elfcode.h (NAME(bfd_elf,record_link_assignment)): Don't do
  3140. anything if we are not linking an ELF file.
  3141. (NAME(bfd_elf,size_dynamic_sections)): Likewise.
  3142. Sat Jan 28 12:48:57 1995 Jeff Law (law@snake.cs.utah.edu)
  3143. * som.c (compare_subspaces): New function to sort subspaces by
  3144. their location in the object file.
  3145. (setup_sections): When computing the index for each subspace,
  3146. handle case where setup_sections reads the subspaces in a
  3147. different order that they appear in the object file.
  3148. (som_is_space): Also examine the output section for the containing
  3149. section.
  3150. (som_is_subspace, som_is_container): Likewise.
  3151. (som_begin_writing): Don't prepare or write fixups here. When
  3152. writing the symbol strings, use the unsorted symbol table.
  3153. (som_write_object_contents): Don't write the symbol table here.
  3154. (som_finish_writing): Prepare and write the fixups here. Likewise
  3155. for the symbol table.
  3156. (som_bfd_derive_misc_symbol_info): Undefined symbols always have
  3157. type SS_UNSAT regardless of BSF_EXPORT.
  3158. (som_set_reloc_info): Unpack and attach argument location
  3159. information for R_PCREL_CALL and R_ABS_CALL relocations.
  3160. * som.c (som_object_setup): New heuristic to determine if the
  3161. entry and flags fields are switched in the exec header.
  3162. Sat Jan 28 00:16:01 1995 Ian Lance Taylor <ian@cygnus.com>
  3163. * elfcode.h (elf_link_add_object_symbols): Use *sym_hash instead
  3164. of h if we might not be doing an ELF link.
  3165. Fri Jan 27 16:13:42 1995 Ian Lance Taylor <ian@cygnus.com>
  3166. * elf32-mips.c (mips_elf_final_link): If the size of an input
  3167. .reginfo section is zero, force it to the correct size, since the
  3168. linker emulation code may have clobbered it.
  3169. * elfcode.h (elf_sort_hdrs): Correct SHF_ALLOC test.
  3170. (assign_file_positions_except_relocs): Free sorted_hdrs.
  3171. Thu Jan 26 09:00:12 1995 Steve Chamberlain <sac@splat>
  3172. * srec.c (srec_set_section_contents): Fix off by
  3173. one end address calculation.
  3174. * config.bfd: (m68*-est-coff): New configuration.
  3175. Thu Jan 26 11:39:21 1995 Ian Lance Taylor <ian@cygnus.com>
  3176. * elfcode.h (elf_link_add_object_symbols): Only examine weakdef if
  3177. we are using an ELF hash table.
  3178. * aoutx.h (NAME(aout,some_aout_object_p)): Always set EXEC_P if
  3179. the start address is in the .text section, even if STAT_FOR_EXEC
  3180. is set. Just use STAT_FOR_EXEC as an additional test.
  3181. Thu Jan 26 11:12:54 1995 Michael Meissner <meissner@cygnus.com>
  3182. * elfcode.h (prep_headers): Use EM_PPC instead of
  3183. EM_CYGNUS_POWERPC.
  3184. * elf32-ppc.c (reloc_type): Add all System V.4 and eABI
  3185. relocations currently defined.
  3186. (powerpc_reloc_map): Adjust to new relocation names.
  3187. (elf_powerpc_howto_table): Add most of the new relocations.
  3188. (ELF_MACHINE_CODE): Use EM_PPC instead of EM_CYGNUS_POWERPC.
  3189. * config.bfd: Add support for powerpc-*-eabi.
  3190. * config/ppc-elf.mt: Add rs6000 architecture support to the
  3191. PowerPC. Also add XCOFF support.
  3192. Wed Jan 25 23:26:13 1995 Ian Lance Taylor <ian@cygnus.com>
  3193. * coff-sh.c (CALC_ADDEND): Don't define.
  3194. (coff_sh_relocate_section): Remove.
  3195. (coff_relocate_section): Use _bfd_coff_generic_relocate_section.
  3196. Tue Jan 24 14:22:47 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3197. * elf32-mips.c (mips_elf_output_extsym): Set the value of the
  3198. ECOFF symbol from the hash table entry.
  3199. Mon Jan 23 14:53:35 1995 Steve Chamberlain <sac@splat>
  3200. * coff-sh.c (coff_sh_relocate_section): Don't subtract
  3201. vma twice.
  3202. Mon Jan 23 13:33:18 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3203. * coff-sh.c (sh_reloc): Don't ignore the previous contents of an
  3204. R_SH_IMM32 reloc.
  3205. * config.bfd (i[345]86-*-gnu*): Set bfd_name to i386-gnu.
  3206. * config/i386-gnu.mt: New file. Include ELF support.
  3207. * opncls.c (bfd_openstreamr): Call bfd_cache_init.
  3208. Fri Jan 20 11:44:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3209. * sunos.c (sunos_add_one_symbol): Only set the sunos specific
  3210. fields if we are doing a sunos link.
  3211. Wed Jan 18 12:28:17 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3212. * cpu-h8300.c (h8300_info_struct): Change name from "H8/300" to
  3213. "h8300" for consistency with other cpu-* files.
  3214. (h8300h_info_struct): Change name from "H8/300H" to "h8300h".
  3215. * coff-h8300.c (special): Remove unused variable diff.
  3216. Tue Jan 17 10:52:32 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3217. * bfd-in.h (bfd_byte, reloc_howto_type): Define here, not...
  3218. * reloc.c (bfd_byte, reloc_howto_type): here.
  3219. * Changed all occurrences of ``const struct reloc_howto_struct''
  3220. to be ``reloc_howto_type'' instead.
  3221. * bfd-in2.h, libbfd.h, libcoff.h: Rebuilt.
  3222. * opncls.c (bfd_openstreamr): New function.
  3223. * bfd-in2.h: Rebuilt.
  3224. * elf32-mips.c (enum reloc_type): Define new relocs used on Irix.
  3225. (elf_mips_howto_table): Add entries for new relocs.
  3226. (mips_elf_section_from_shdr): Handle SHT_MIPS_MSYM,
  3227. SHT_MIPS_DWARF, and SHT_MIPS_EVENTS.
  3228. (mips_elf_fake_sections): Handle sections named .msym, .debug_*
  3229. and .MIPS.events.*.
  3230. * srec.c (srec_init): Remove unused local variable i.
  3231. Sat Jan 14 19:09:48 1995 Steve Chamberlain <sac@jonny>
  3232. * archures.c, Makefile.in, targets.c, bfd-in2.h, coffcode.h,
  3233. config.bfd, configure.in, config/w65.mt: Initial support for the W65.
  3234. Sun Jan 15 13:57:45 1995 Steve Chamberlain <sac@splat>
  3235. * opncls.c (bfd_fdopenr): Configure for WIN32.
  3236. Thu Jan 12 16:30:47 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  3237. * Makefile.in (diststuff): Include `headers'.
  3238. * sunos.c (m68k_plt_first_entry, sparc_plt_first_entry): Now
  3239. const.
  3240. * tekhex.c (digs): Ditto.
  3241. * elf32-i386.c (elf_i386_plt0_entry, elf_i386_plt_entry): Ditto.
  3242. * srec.c, tekhex.c: Include libiberty.h. Delete static array
  3243. hex_value and replace references to it with references to
  3244. hex_init, hex_p, and hex_value.
  3245. * Makefile.in: Updated dependencies.
  3246. * archures.c (archures_init_table): Now const.
  3247. (bfd_arch_init): Adjusted type of local var `ptable'.
  3248. Thu Jan 12 09:33:24 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  3249. * hosts/symmetry.h: Redefine `shared' to enable compilation
  3250. with the native Dynix cc compiler.
  3251. * i386dynix.c: Include aoutx.h instead of using routines
  3252. from aout32.c.
  3253. Wed Jan 11 21:31:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
  3254. * reloc.c (reloc_howto_type): Make typedef include `const'.
  3255. * aout-ns32k.c, aoutx.h, bout.c, cf-m68klynx.c, coff-i386.c,
  3256. coff-i960.c, coff-m68k.c, cofflink.c, cpu-ns32k.c, ecoff.c,
  3257. elf32-hppa.c, elf32-i386.c, elf32-mips.c, elf32-sparc.c,
  3258. elfcode.h, libbfd-in.h, linker.c, mipsbsd.c, nlm32-ppc.c, oasys.c,
  3259. reloc.c, som.c: Don't use `const' in combination with
  3260. `reloc_howto_type'.
  3261. * bfd-in2.h, libbfd.h: Regenerated.
  3262. * ecoff.c (ecoff_type_to_string): Local variable `buffer1' doesn't
  3263. need to be static.
  3264. Wed Jan 11 14:36:41 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3265. * sunos.c (sunos_add_one_symbol): Don't core dump if a multiple
  3266. definition of an absolute symbol is encountered.
  3267. * linker.c (_bfd_generic_link_add_one_symbol): Ignore
  3268. redefinitions of an absolute symbol to the same value.
  3269. Mon Jan 9 15:51:32 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3270. * elfcode.h (elf_link_add_object_symbols): It's reasonable for no
  3271. flags to be set, so don't insist otherwise.
  3272. Fri Jan 6 16:39:40 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3273. * elfcode.h (elf_slurp_symbol_table): Don't set BSF_GLOBAL for an
  3274. undefined or common symbol.
  3275. (elf_link_add_object_symbols): Likewise.
  3276. Wed Jan 4 14:14:05 1995 Jeff Law (law@snake.cs.utah.edu)
  3277. * som.c (bfd_section_from_som_symbol): Only return sections which
  3278. correspond to subspaces.
  3279. * som.c (som_begin_writing): Don't forget to bump the
  3280. total_subspaces when writing the unloadable subspaces.
  3281. Wed Dec 28 20:54:47 1994 Jeff Law (law@snake.cs.utah.edu)
  3282. * som.c (som_write_fixups): Use SEC_HAS_CONTENTS to identify
  3283. bss-like sections.
  3284. (som_get_section_contents): Likewise.
  3285. (som_set_section_contents): Likewise.
  3286. Tue Dec 27 14:03:47 1994 Jeff Law (law@snake.cs.utah.edu)
  3287. * som.c (setup_sections): Turn off SEC_HAS_CONTENTS for bss-like
  3288. sections.
  3289. Tue Dec 20 15:30:12 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
  3290. * coffgen.c (bfd_debug_section): Deleted.
  3291. (coff_section_from_bfd_index): Return absolute section for debug
  3292. symbol.
  3293. (coff_write_symbol): Set BSF_DEBUGGING for C_FILE symbols. If
  3294. BSF_DEBUGGING is set, set section to N_DEBUG.
  3295. (coff_bfd_make_debug_symbol): Use absolute section.
  3296. * elfcode.h (assign_file_positions_except_relocs): In assertion,
  3297. force all values to the same type.
  3298. Tue Dec 20 11:11:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
  3299. * coff-h8300.c (howto_table): All relocs get a special function.
  3300. (special): Never do anything when linking -r.
  3301. Tue Dec 20 13:58:01 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3302. * i386linux.c (linux_add_one_symbol): Don't do anything Linux
  3303. specific if this is not a Linux hash table. From Eric Youngdale
  3304. <eric@aib.com>.
  3305. Patches from kkojima@mix.or.jp (Kazumoto Kojima):
  3306. * mipsbsd.c (mips_howto_table_ext): Change sizes of memory relocs
  3307. apply to from two bytes to four bytes.
  3308. * MY(reloc_howto_type_lookup): Handle BFD_RELOC_CTOR.
  3309. * elf32-i386.c (elf_i386_relocate_section): Correct and expand the
  3310. list of cases for which relocation need not be computed.
  3311. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  3312. Mon Dec 19 23:09:16 1994 Jeff Law (law@snake.cs.utah.edu)
  3313. * elf32-hppa.c (elf32_hppa_read_symext_info): Delete do_locals and
  3314. do_globals arguments, always read symbol extension information for
  3315. globals and locals. All callers changed.
  3316. (elf32_hppa_size_stubs): Rework to only read symbol extension
  3317. information once for each input bfd. 10% improvement in linker
  3318. performance.
  3319. Fri Dec 16 12:28:46 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3320. * elfcode.h (elf_section_from_bfd_section): Check
  3321. bfd_is_abs_section, etc., only after checking for the section in
  3322. the BFD and after calling the backend routine.
  3323. Wed Dec 14 20:21:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3324. * elfcode.h (elf_map_symbols): Only use section symbols whose
  3325. value is the start of the section, checking output_offset when
  3326. using output_section. When creating a new symbol, set the value
  3327. to 0, since BFD symbol values are section relative.
  3328. Tue Dec 13 13:31:06 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3329. * cpu-z8k.c (arch_info_struct): Make z8002 the default
  3330. architecture.
  3331. Fri Dec 9 12:43:05 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3332. * elfcode.h (elf_bfd_link_add_symbols): If the first object in the
  3333. archive is not an ELF object, pass the archive to the add_symbols
  3334. entry point appropriate for the first object. From Eric Youngdale
  3335. <eric@aib.com>.
  3336. * aoutx.h (NAME(aout,link_add_symbols)): Similar change if the
  3337. first object is not an a.out object.
  3338. * elf32-i386.c (elf_i386_relocate_section): Don't compute
  3339. relocation in cases where we won't use it.
  3340. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  3341. Thu Dec 8 14:19:41 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
  3342. * pc532-mach.c (NAME): Define to use ns32kaout prefix.
  3343. * ns32knetbsd.c (NAME): Ditto.
  3344. (ns32kaout_32_get_section_contents): Define to standard aout-32
  3345. version.
  3346. Fri Dec 2 13:56:49 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
  3347. * coff-mips.c (mips_read_relocs): New static function, broken out
  3348. of mips_relax_section.
  3349. (mips_relax_section): Call mips_read_relocs.
  3350. (bfd_mips_ecoff_create_embedded_relocs): New function.
  3351. * bfd-in.h (bfd_mnips_ecoff_create_embedded_relocs): Declare.
  3352. * bfd-in2.h: Rebuild.
  3353. Wed Nov 30 14:12:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  3354. * coff-sh.c: Use _bfd_dummy_target instead of no_archive.
  3355. Tue Nov 29 14:00:19 1994 J.T. Conklin <jtc@.rtl.cygnus.com>
  3356. * config.bfd (i[345]86-*-freebsd*): Use i386-bsd as bfd_name.
  3357. * configure.host (i[345]86-*-freebsd*): Use i386bsd as my_host.
  3358. Mon Nov 28 15:36:04 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
  3359. * config/m68k-nbsd.mt (DEFAULT_VECTOR): set to m68knetbsd_vec.
  3360. * Makefile.in: Rebuilt dependancies.
  3361. (CFILES): Added m68knetbsd.c.
  3362. (HFILES): Added netbsd.h.
  3363. Wed Nov 23 19:21:41 1994 Steve Chamberlain (sac@jonny.cygnus.com)
  3364. * coff-sh.c (shlcoff_vec): New target vector.
  3365. (no_archive): New function.
  3366. * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Handle
  3367. little endian SH.
  3368. * configure.in: Handle shl.
  3369. * targets.c (bfd_target_vector): Add shlcoff_vec.
  3370. * config/sh-coff.mt (SELECT_VECS): Handle shl_coff_vec.
  3371. Wed Nov 23 10:50:13 1994 Jeff Law (law@snake.cs.utah.edu)
  3372. * elfcode.h (write_relocs): Do not subtract the section's vma from
  3373. the reloc's offset when writing .o's. Instead add the section's
  3374. vma to the reloc's offset when writing an executable or shared
  3375. library.
  3376. Tue Nov 22 23:34:37 1994 Jeff Law (law@snake.cs.utah.edu)
  3377. * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Do not add
  3378. input_section->vma to the relocation's offset.
  3379. Mon Nov 21 12:37:25 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3380. * srec.c (srec_get_reloc_upper_bound): Define.
  3381. (srec_canonicalize_reloc): Define.
  3382. (srec_bfd_reloc_type_lookup): Define.
  3383. (srec_vec, symbolsrec_vec): Use BFD_JUMP_TABLE_RELOCS (srec).
  3384. Sat Nov 19 03:10:51 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  3385. * configure.host (i[345]86-*-solaris*): Use solaris2 to
  3386. enable extraction of procfs info from core file for GDB.
  3387. Thu Nov 17 17:37:39 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
  3388. * reloc.c (bfd_reloc_code_type): Add new value BFD_RELOC_12_PCREL.
  3389. * bfd-in2.h, libbfd.h: Rebuilt.
  3390. Thu Nov 17 13:12:08 1994 Jeff Law (law@snake.cs.utah.edu)
  3391. * elf32-hppa.c (elf32_hppa_bfd_final_link_relocated): Use the
  3392. vma from the output_section containing $global$ when computing
  3393. global_vlaue.
  3394. Thu Nov 17 14:29:13 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3395. * archive.c (_bfd_write_archive_contents): Round up the archive
  3396. header size of the extended name table to an even number.
  3397. Wed Nov 16 16:08:06 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
  3398. * coff-sh.c: Deleted some code that was commented out or inside
  3399. "#if 0".
  3400. (COFF_LONG_FILENAMES): Define.
  3401. * cpu-sh.c (arch_info_struct): Convert name to lowercase, for
  3402. consistency with other architectures.
  3403. Sat Nov 12 23:50:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  3404. * elfcode.h (elf_export_symbol): Also export symbols which are
  3405. referenced by a regular file.
  3406. Fri Nov 11 14:29:31 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3407. * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add
  3408. export_dynamic argument, and handle it.
  3409. (elf_export_symbol): New function.
  3410. * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
  3411. (bfd_elf64_size_dynamic_sections): Update declaration.
  3412. * bfd-in2.h: Rebuild.
  3413. Fri Nov 11 10:35:33 1994 Jeff Law (law@snake.cs.utah.edu)
  3414. * hpux-core.c (hpux_core_struct): Delete handles for the
  3415. data, reg and stack sections. They're never used. Delete
  3416. accessor macros.
  3417. (make_bfd_asection): Use bfd_make_section_anyway since debugging
  3418. cores from dynamic executables may have several sections with the
  3419. same logical name.
  3420. (hpux_core_core_file_p): Don't save handles to data, reg and
  3421. stack sections. Handle CORE_TEXT, CORE_MMF and CORE_SHM.
  3422. Tue Nov 8 13:03:30 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3423. * bout.c (callj_callback): Add new argument shrinking. Change all
  3424. callers. Handle relocs against section symbols correctly. If not
  3425. shrinking, don't subtract out dstidx; the subtraction is already
  3426. in the object file.
  3427. Sun Nov 6 12:52:00 1994 Jeff Law (law@snake.cs.utah.edu)
  3428. * som.h: Conditionally include <shl.h> and <dl.h>.
  3429. Thu Nov 3 18:19:13 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
  3430. * Makefile.in (ALL_MACHINES): Include m68knetbsd.o.
  3431. * config/i386linux.mh (EXTRALIBS): Include -lm.
  3432. Patches from DJ Delorie:
  3433. * coff-go32.c: Replacement file, uses coff-i386.c with minor
  3434. changes.
  3435. * coff-i386.c (TARGET_UNDERSCORE): allow other files to override
  3436. underscore also
  3437. * makefile.dos: del ctor.o, add cofflink.o and elf32.o
  3438. * aoutx.h (adjust_o_magic): If user set data section vma, use it
  3439. to determine the default bss vma. Patch from Takada Hiroaki,
  3440. hiro@is.s.u-tokyo.ac.jp.
  3441. (machine_type, case bfd_arch_vax): Set *unknown to false. Patch
  3442. from John David Anglin <dave@hiauly1.hia.nrc.ca>.
  3443. * configure.in (tb): Rename ns32knetbsd_vec to pc532netbsd_vec,
  3444. since that's what it's called.
  3445. Wed Nov 2 15:24:51 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3446. * archive.c (normalize): Change to take a BFD as an argument.
  3447. Change VMS version to use bfd_alloc rather than malloc, so that we
  3448. don't lose the memory forever.
  3449. (_bfd_construct_extended_name_table): Check the name of an archive
  3450. entry which is not being extended, and correct it if it is wrong.
  3451. This is necessary in case the archive was constructed by another
  3452. program which put an entry in the extended name table which we
  3453. don't plan to put in ourselves. From jjc@jclark.com (James
  3454. Clark).
  3455. (bfd_dont_truncate_arname): Check return value of normalize.
  3456. Mon Oct 31 14:19:08 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3457. * elf32-hppa.c (ELF32_PARISC_SX_SIZE): Define.
  3458. (ELF32_PARISC_SX_GET, ELF32_PARISC_SX_PUT): Define.
  3459. (symextn_entry): Don't define.
  3460. (symext_chain_size): Change type to bfd_size_type.
  3461. (symextn_contents): Change type to bfd_byte *.
  3462. (elf32_hppa_backend_begin_write_processing): Use
  3463. ELF32_PARISC_SX_SIZE instead of sizeof (symext_entryS).
  3464. (elf32_hppa_size_symext): Likewise. Also, change type of sizep to
  3465. bfd_size_type *.
  3466. (elf_hppa_tc_make_sections): Cast symextn_contents assignment to
  3467. bfd_byte *. Use ELF32_PARISC_SX_PUT instead of direct assignment.
  3468. (elf32_hppa_backend_symbol_table_processing): Use
  3469. ELF32_PARISC_SX_SIZE instead of sizeof (symext_entryS). Use
  3470. ELF32_PARISC_SX_GET insetad of direct assignment.
  3471. (elf32_hppa_read_symext_info): Change type of contents, and its
  3472. assignment cast, to bfd_byte *. Use ELF32_PARISC_SX_SIZE instead
  3473. of sizeof (symextn_entry). Use symext_entryS instead of
  3474. symextn_entry. Use ELF32_PARISC_SX_GET instead of direct
  3475. assignment.
  3476. * archive.c (bfd_dont_truncate_arname): Add the ar padding
  3477. character, if there is room for it, even if the name is the
  3478. maximum length.
  3479. * elfcode.h (assign_file_positions_except_relocs): Sort the ELF
  3480. headers by section address when assigning file positions.
  3481. (elf_sort_hdrs): New static function.
  3482. Sun Oct 30 18:56:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3483. * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Create DT_INIT
  3484. and DT_FINI dynamic entries based on the existence of _init and
  3485. _fini symbols, not on the .init and .fini sections. This is
  3486. compatible with some SVR4 linkers.
  3487. (elf_bfd_final_link): Corresponding change.
  3488. Sat Oct 29 12:18:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  3489. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't move a
  3490. symbol with a PLT entry into the .plt section if it is defined in
  3491. a regular file.
  3492. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
  3493. * linker.c (_bfd_generic_link_add_archive_symbols): It's not an
  3494. error if an empty archive has no symbol table.
  3495. * ecoff.c (ecoff_link_add_archive_symbols): Likewise.
  3496. * elfcode.h (elf_link_add_archive_symbols): Likewise.
  3497. Fri Oct 28 10:08:41 1994 J.T. Conklin (jtc@rtl.cygnus.com)
  3498. NetBSD/m68k support, based on work by mikeb@snow.datametrics.com:
  3499. * config.bfd (m68*-*-netbsd*): Use m68k-nbsd as bfd_name.
  3500. * configure.in (m68knetbsd_vec): Added.
  3501. * targets.c (bfd_m68knetbsd_vec): Added.
  3502. * hosts/m68knbsd.h, config/m68k-nbsd.mt, m68knetbsd.c: New files.
  3503. * Makefile.in (BFD32_BACKENDS, CFILES): Add m68knetbsd.c.
  3504. miscellaneous cleanup required by all netbsd targets, based on work
  3505. by Andrew Cagney <cagney@highland.com.au>:
  3506. * netbsd.h (N_MAGIC, N_SET_MAGIC, N_GETMAGIC, N_GETMAGIC2, N_TXTADDR,
  3507. N_TXTOFF, N_ALIGN, N_DATADDR, N_DATOFF): Removed. Generic a.out
  3508. definitions work.
  3509. * i386nbsd.c, ns32knbsd.c, sparcnbsd.c (__LDPGSZ): Removed.
  3510. (MY(write_object_contents)): Use NetBSD's magic numbers
  3511. Thu Oct 27 16:59:52 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3512. * libelf.h (struct bfd_elf_section_data): Add field dynindx.
  3513. * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Don't finalize
  3514. the .dynsym, .dynstr or .hash sections until after the backend
  3515. size_dynamic_sections routine, so that it can add dynamic symbols
  3516. if it wants to.
  3517. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't define the
  3518. symbol to be in the .plt section when generating a shared library
  3519. if it is a defined symbol.
  3520. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
  3521. (elf32_sparc_size_dynamic_sections): When generating a shared
  3522. library, allocate space for a dynamic symbol for each output
  3523. section, storing the index in the dynindx field of the ELF section
  3524. data. Adjust the other dynindx fields to account for this.
  3525. (elf32_sparc_adjust_dynindx): New static function.
  3526. (elf32_sparc_relocate_section): When copying a reloc into a shared
  3527. library, use the original addend as appropriate. Convert an
  3528. R_SPARC_32 reloc into an R_SPARC_RELATIVE reloc. Use the dynamic
  3529. symbol index of the output section, not the normal symbol index.
  3530. (elf32_sparc_finish_dynamic_sections): Don't die if a section does
  3531. not exist when setting the value of the dynamic tags. Write out
  3532. a dynamic symbol for each output section.
  3533. Wed Oct 26 01:15:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  3534. * aoutx.h (aout_link_input_section): Don't bother to read or write
  3535. the relocs if there aren't any.
  3536. Tue Oct 25 11:44:38 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3537. * Makefile.in (ALL_MACHINES): Add tekhex.o.
  3538. * targets.c (bfd_target_vector): If SELECT_VECS is not defined,
  3539. include tekhex_vec.
  3540. * tekhex.c (NIBBLE, ISHEX): Cast array arguments to unsigned char.
  3541. (getvalue, getsym, out): Likewise.
  3542. (find_chunk): Remove unused variable s.
  3543. (first_phase): Remove unused variable s.
  3544. (pass_over): Remove unused variable address.
  3545. (tekhex_object_p): Remove unused variable section.
  3546. (move_section_contents): Change return type from boolean to void.
  3547. (tekhex_write_object_contents): Remove unused variables tdata and
  3548. list.
  3549. * linker.c (enum link_action): Add CIND.
  3550. (link_action): Change COMMON_ROW\indr from MDEF to CREF. Change
  3551. INDR_ROW\common from MDEF to CIND.
  3552. (_bfd_generic_link_add_one_symbol): In CREF case, handle an
  3553. existing symbol which is indirect rather than defined. Add new
  3554. CIND case.
  3555. Mon Oct 24 15:33:16 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3556. Change S-record backend to use multiple sections to handle gaps in
  3557. file.
  3558. * srec.c (srec_data_list_struct): Move field next from last place
  3559. to first. Change type of data to bfd_byte *.
  3560. (struct srec_symbol): Define.
  3561. (tdata_type): Remove done_symbol_read, count, strings, symbol_idx,
  3562. string_size, string_idx. Change type of symbols to struct
  3563. srec_symbol *. Add symtail and csymbols.
  3564. (low, high): Remove.
  3565. (size_symbols, fillup_symbols, size_srec, fillup): Remove.
  3566. (white, skipwhite, pass_over, object_p): Remove.
  3567. (srec_mkobject): Call srec_init. Adjust tdata initialization for
  3568. field changes.
  3569. (srec_get_byte, srec_bad_byte): New static functions.
  3570. (srec_new_symbol, srec_scan): New static functions.
  3571. (srec_object_p): Change type of b to bfd_byte. Explicitly set
  3572. wrong_format error. Call srec_mkobject and srec_scan instead of
  3573. object_p.
  3574. (symbolsrec_object_p): Likewise. Also, change b to be only two
  3575. bytes.
  3576. (srec_read_section): New static function.
  3577. (srec_get_section_contents): Call srec_read_section rather than
  3578. pass_over. Handle zero length section correctly.
  3579. (set_set_arch_mach): Change from function to macro.
  3580. (srec_set_section_contents): Change data to bfd_byte *.
  3581. (srec_write_record): Change data, end and src to bfd_byte *.
  3582. (srec_write_header): Change buffer and dst to bfd_byte *.
  3583. (srec_write_section): Change location to bfd_byte *.
  3584. (srec_write_terminator): Change buffer to bfd_byte *.
  3585. (srec_get_symtab_upper_bound): Don't call
  3586. srec_get_section_contents.
  3587. (srec_get_symtab): Rewrite.
  3588. * ecoff.c (ecoff_set_symbol_info): Set udata.i to 0, not NULL.
  3589. Fri Oct 21 16:43:13 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
  3590. * libaout.h (machine_type): added M_68K_NETBSD and M_SPARC_NETBSD.
  3591. * i386netbsd.c, ns32knetbsd.c, sparcnetbsd.c: removed RCS Id's.
  3592. changed how PAGE_SIZE and SEGMENT_SIZE are defined so they are
  3593. consistant with each other.
  3594. * netbsd.h (N_HEADER_IN_TEXT, TEXT_START_ADDR): NetBSD fits its
  3595. header into the start of its text segment.
  3596. Fri Oct 21 17:13:07 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3597. * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add case for
  3598. _construct_extended_name_table.
  3599. (bfd_target): Add _bfd_construct_extended_name_table.
  3600. * archive.c (_bfd_archive_bsd_construct_extended_name_table): New
  3601. function.
  3602. (_bfd_archive_coff_construct_extended_name_table): New function.
  3603. (_bfd_construct_extended_name_table): Renamed by adding a leading
  3604. underscore, and made externally visible. Added trailing_slash
  3605. argument, and used it instead of elf_style. Changed type of
  3606. tablen to bfd_size_type *.
  3607. (_bfd_write_archive_contents): Use BFD_SEND to call
  3608. construct_extended_name_table. Use the returned name.
  3609. * libbfd-in.h (_bfd_construct_extended_name_table): Declare.
  3610. (_bfd_noarchive_construct_extended_name_table): Define.
  3611. (_bfd_archive_bsd_construct_extended_name_table): Declare.
  3612. (_bfd_archive_coff_construct_extended_name_table): Declare.
  3613. * bfd-in2.h: Rebuild.
  3614. * libbfd.h: Rebuild.
  3615. * som.c (som_construct_extended_name_table): New static function.
  3616. * aout-target.h (MY_construct_extended_name_table): Define.
  3617. * coff-rs6000.c (rs6000coff_construct_extended_name_table):
  3618. Define.
  3619. * ieee.c (ieee_construct_extended_name_table): Define.
  3620. * libecoff.h (_bfd_ecoff_construct_extended_name_table): Define.
  3621. * oasys.c (oasys_construct_extended_name_table): Define.
  3622. Fix the ELF linker to not require an interpreter if no dynamic
  3623. objects were seen, even when linking PIC code.
  3624. * libelf.h (ELF_LINK_HASH_NEEDS_PLT): Define.
  3625. (struct elf_link_hash_table): Add field dynamic_sections_created.
  3626. * elfcode.h (elf_link_record_dynamic_symbol): Create dynstr if it
  3627. doesn't already exist.
  3628. (elf_link_add_object_symbols): Create dynamic sections based on
  3629. dynamic_sections_created field, not dynobj field. Don't bother to
  3630. set dynobj.
  3631. (elf_link_create_dynamic_sections): If dynamic sections were
  3632. already created, don't do anything. If dynobj is already set, use
  3633. it; otherwise, set it to the bfd argument. Don't initialize
  3634. dynsymcount. Only create dynstr if it does not exist. Set
  3635. dynamic_sections_created to true.
  3636. (NAME(bfd_elf,size_dynamic_sections)): Skip most of this function
  3637. if no dynamic objects were seen.
  3638. (elf_adjust_dynamic_symbol): If a symbol has the
  3639. ELF_LINK_HASH_NEEDS_PLT flag set, let the backend adjust it.
  3640. (elf_bfd_final_link): Change most decisions based on dynobj to
  3641. check dynamic_sections_created instead.
  3642. (elf_link_output_extsym): Only handle dynamic symbols if a dynamic
  3643. object was seen.
  3644. * elf.c (_bfd_elf_link_hash_table_init): Initialize new field
  3645. dynamic_sections_created. Set dynsymcount to 1, not 0.
  3646. * elf32-i386.c (elf_i386_create_dynamic_sections): Call
  3647. elf_i386_create_got_section rather than creating the .got and
  3648. .got.plt sections.
  3649. (elf_i386_create_got_section): New static function.
  3650. (elf_i386_check_relocs): Just call elf_i386_create_got_section if
  3651. a GOT table is needed, not bfd_elf32_link_create_dynamic_sections.
  3652. Only create the .rel.got section, and only make space for a reloc,
  3653. for a global symbol or when generating a shared object. For a
  3654. R_386_PLT32 reloc, just set the ELF_LINK_HASH_NEEDS_PLT flag.
  3655. (elf_i386_adjust_dynamic_symbol): Rework initial assertion to
  3656. permit ELF_LINK_HASH_NEEDS_PLT non dynamic symbols. Create a
  3657. procedure linkage table entry for such symbols. But, if no
  3658. dynamic objects were seen, never create a PLT entry.
  3659. (elf_i386_size_dynamic_sections): If no dynamic objects were seen,
  3660. skip most of this function, and force the size of the .rel.got
  3661. section to zero.
  3662. (elf_i386_relocate_section): For a R_386_GOT32 reloc against a global
  3663. symbol when no dynamic object was seen, initialize the contents of
  3664. the .got section. For a R_386_GOT32 against a local symbol, only
  3665. create a R_386_RELATIVE reloc when generating a shared object.
  3666. Treat a R_386_PLT32 reloc against a symbol for which we did not
  3667. create a PLT entry as a R_386_PC32 reloc.
  3668. (elf_i386_finish_dynamic_sections): Only fiddle with the dynamic
  3669. entries and the PLT if we saw a dynamic object.
  3670. * elf32-sparc.c (elf_sparc_howto_table): Fix R_SPARC_PC22 by
  3671. setting rightshift to 10. Fix R_SPARC_WPLT20 by setting
  3672. rightshift to 2, size to 2, bitsize to 30, and dst_mask to
  3673. 0x3fffffff.
  3674. (elf32_sparc_create_dynamic_sections): Don't set the size of the
  3675. .plt section. Call elf32_sparc_create_got_section rather than
  3676. creating the .got section.
  3677. (elf32_sparc_check_relocs): Call elf32_sparc_create_got_section if
  3678. a GOT table is needed, not bfd_elf32_link_create_dynamic_sections.
  3679. Only create the .rela.got section, and only make space for a
  3680. reloc, for a global symbol or when generating a shared object.
  3681. Set the alignment of the .rela.got section to 2. For a
  3682. R_SPARC_WPLT30 reloc, just set the ELF_LINK_HASH_NEEDS_PLT flag.
  3683. (elf32_sparc_adjust_dynamic_symbol): Rework initial assertion to
  3684. permit ELF_LINK_HASH_NEDS_PLT non dynamic symbols. Create a
  3685. procedure linkage table for such symbols. But, if no dynamic
  3686. objects were seen, never create a PLT entry. Initialize the size
  3687. of the .plt section.
  3688. (elf32_sparc_size_dynamic_sections): If no dynamic objects were
  3689. seen, skip most of this function, and force the size of the
  3690. .rela.got section to zero. Strip empty reloc sections, and strip
  3691. an empty .plt section.
  3692. (elf32_sparc_relocate_section): For a GOT reloc against a global
  3693. symbol when no dynamic object was seen, initialize the contents of
  3694. the .got section. For a GOT reloc against a local symbol, only
  3695. create a R_SPARC_RELATIVE reloc when generating a shared object.
  3696. Treat a R_SPARC_WPLT30 reloc against a symbol for which we did not
  3697. create a PLT entry as a R_SPARC_WDISP30 reloc.
  3698. (elf32_sparc_finish_dynamic_sections): Only fiddle with the
  3699. dynamic entries and the PLT if we saw a dynamic object.
  3700. Thu Oct 20 13:28:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  3701. * elfcode.h (elf_map_symbols): Don't worry about section symbols
  3702. in a section not owned by any BFD.
  3703. (elf_section_from_bfd_section): Separate out loop which calls
  3704. backend routine. Check bfd_section and call the backend routine
  3705. even for a section not owned by any BFD.
  3706. * elf32-mips.c (mips_elf_section_from_bfd_section): Handle
  3707. .acommon section.
  3708. Wed Oct 19 13:28:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  3709. * coffgen.c (coff_print_symbol): Make names for section number and
  3710. storage class slightly more verbose. It's not clear how many
  3711. characters I can justify using up, but before this change they
  3712. both were abbreviated "sc" which is (IMHO) clearly unacceptable.
  3713. Wed Oct 19 01:26:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  3714. * binary.c (binary_set_section_contents): Set the base file
  3715. position from the lowest section VMA, not the start address.
  3716. * aoutx.h (NAME(aout,slurp_symbol_table)): Don't return an error
  3717. if there are no symbols.
  3718. * coffgen.c (coff_get_normalized_symtab): Likewise.
  3719. * hp300hpux.c (MY(slurp_symbol_table)): Likewise.
  3720. Tue Oct 18 12:56:43 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3721. * aout-target.h (MY_bfd_copy_private_section_data): Only copy
  3722. subformat to another bfd_target_aout_flavour file.
  3723. * binary.c: New file for raw binary output format.
  3724. * Makefile.in (BFD_LIBS): Add binary.o.
  3725. (CFILES): Add binary.c.
  3726. * targets.c (binary_vec): Declare.
  3727. (bfd_target_vector): Include binary_vec.
  3728. * srec.c (tdata_type): Add field tail.
  3729. (srec_mkobject): Initialize tail.
  3730. (srec_set_section_contents): Sort S record list by address.
  3731. Mon Oct 17 11:38:16 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3732. * elfcode.h (elf_map_symbols): Sort the symbols into a new array,
  3733. rather than messing with Elf_Sym_Extra. Store the symbol index in
  3734. the udata.i field.
  3735. (swap_out_syms): Use outbound_syms as a pointer rather than as an
  3736. array. Don't worry about elf_sym_num.
  3737. * libelf.h (struct elf_sym_extra): Don't define.
  3738. (Elf_Sym_Extra): Don't define.
  3739. (struct elf_obj_tdata): Remove sym_extra field.
  3740. (elf_sym_extra): Don't define.
  3741. * elf32-hppa.c (elf32_hppa_backend_final_write_processing): Use
  3742. udata.i rather than elf_sym_extra array.
  3743. * syms.c (asymbol): Change udata field into a union.
  3744. * bfd-in2.h: Rebuild.
  3745. * aoutx.h (NAME(aout,translate_symbol_table)): Use udata.p rather
  3746. than just udata.
  3747. * bout.c (perform_slip): Likewise.
  3748. * hp300hpux.c (MY(slurp_symbol_table)): Likewise.
  3749. * ieee.c (ieee_slurp_external_symbols): Likewise.
  3750. * linker.c (generic_link_add_symbol_list): Likewise.
  3751. (default_indirect_link_order): Likewise.
  3752. * oasys.c (oasys_slurp_symbol_table): Likewise.
  3753. * reloc16.c (bfd_perform_slip): Likewise.
  3754. * srec.c (fillup_symbols): Likewise.
  3755. * coffcode.h (get_index): Use udata.i rather than just udata.
  3756. (coff_slurp_symbol_table): Likewise.
  3757. * coffgen.c (set_index): Likewise.
  3758. * ecoff.c (ecoff_set_symbol_info): Likewise.
  3759. * elfcode.h (elf_symbol_from_bfd_symbol): Likewise.
  3760. * libecoff.h (ecoff_get_sym_index, ecoff_set_sym_index): Likewise.
  3761. * som.c (compare_syms): Likewise.
  3762. (som_prep_for_fixups): Likewise.
  3763. (som_write_fixups): Likewise.
  3764. Use a hash table when writing out ELF symbol names.
  3765. * elfcode.h (elf_stringtab_init): New static function.
  3766. (bfd_new_strtab, bfd_add_to_strtab, bfd_add_2_to_strtab): Remove.
  3767. Change all callers to use elf_stringtab_init or
  3768. _bfd_stringtab_add, and get stringtab lengths using
  3769. _bfd_stringtab_size.
  3770. (elf_fake_sections): Change ignored argument to pointer to
  3771. boolean, and set the boolean to true if an error occurs. If an
  3772. error has already occurred, don't do anything.
  3773. (assign_section_numbers): Just set sh_size, not contents.
  3774. (elf_compute_section_file_positions): Pass the address of a
  3775. boolean to elf_fake_sections. Pass the address of a
  3776. bfd_strtab_hash to swap_out_syms. Write out the .strtab section.
  3777. (prep_headers): Change shstrtab to bfd_strtab_hash.
  3778. (swap_out_syms): Take a pointer to a bfd_strtab_hash as an
  3779. argument. Set it to the symbol names.
  3780. (NAME(bfd_elf,write_object_contents)): Write out the section
  3781. header names using _bfd_stringtab_emit.
  3782. (elf_debug_section): Remove first argument; get the section name
  3783. via the bfd_section pointer. Change caller.
  3784. (elf_bfd_final_link): Write out the symbol names using
  3785. _bfd_stringtab_emit. Likewise for the .dynstr section contents.
  3786. Free the symbol names at the end of the function.
  3787. (elf_link_input_bfd): Remove the last argument, output_names,
  3788. from relocate_section. Save the old symbol contents before
  3789. calling elf_link_output_sym, and restore them afterward.
  3790. * libelf.h (struct elf_link_hash_table): Change dynstr field to
  3791. struct bfd_strtab_hash.
  3792. (struct elf_backend_data): Remove last argument, output_names,
  3793. from elf_backend_relocate_section field.
  3794. (struct strtab): Don't define.
  3795. (struct elf_obj_tdata): Change strtab_ptr field to struct
  3796. bfd_strtab_hash.
  3797. * elf32-hppa.c (elf32_hppa_relocate_section): Remove last
  3798. argument, output_names.
  3799. * elf32-i386.c (elf_i386_relocate_section): Likewise.
  3800. * elf32-mips.c (mips_elf_relocate_section): Likewise.
  3801. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  3802. * libbfd-in.h (DEFAULT_STRING_SPACE_SIZE): Don't define.
  3803. (bfd_add_to_string_table): Don't declare.
  3804. * libbfd.h: Rebuild.
  3805. * libbfd.c (bfd_add_to_string_table): Remove.
  3806. * elfcode.h (elf_swap_shdr_in): Use bfd_section, not rawdata.
  3807. Clear contents field.
  3808. (bfd_section_from_shdr): In SHT_STRTAB case, check bfd_section,
  3809. not rawdata. Don't set rawdata if e_shstrndx. Use bfd_section
  3810. rather than rawdata in commented out code. In SHT_REL[A] case,
  3811. don't bother to check elf_section_data of section returned by
  3812. section_from_elf_index.
  3813. (elf_fake_sections): Set bfd_section, not rawdata. Don't set
  3814. size.
  3815. (elf_map_symbols): Don't set elf_num_section_syms. Don't create
  3816. section symbols that already exist.
  3817. (assign_file_position_for_section): Use bfd_section, not rawdata.
  3818. (section_from_elf_index): Just check bfd_section field.
  3819. (elf_section_from_bfd_section): Likewise.
  3820. (elf_debug_section): Don't print rawdata, contents, or size.
  3821. (elf_link_add_object_symbols): Don't error out if
  3822. section_from_elf_index returns NULL.
  3823. (elf_bfd_final_link): Check return value from
  3824. section_from_elf_index against NULL, not bfd_is_abs_section.
  3825. (elf_link_input_bfd): Don't check section_from_elf_index return
  3826. value.
  3827. * libelf.h (struct elf_obj_tdata): Remove num_section_syms field.
  3828. (elf_num_section_syms): Don't define.
  3829. * elf.c (elf_get_str_section): Store section contents in contents
  3830. field rather than rawdata field.
  3831. (elf_string_from_elf_section): Likewise.
  3832. (_bfd_elf_make_section_from_shdr): Store BFD section pointer in
  3833. bfd_section field rather than rawdata field.
  3834. * elf32-hppa.c (elf32_hppa_read_symext_info): Use bfd_section
  3835. rather than rawdata.
  3836. (elf32_hppa_size_stubs): Likewise.
  3837. (elf32_hppa_backend_symbol_table_processing): Don't set
  3838. symextn_hdr->size; just use sh_size.
  3839. * elf32-mips.c (mips_elf_final_write_processing): Use bfd_section
  3840. rathern than rawdata.
  3841. (mips_elf_section_from_shdr): Likewise.
  3842. (mips_elf_section_processing): Likewise.
  3843. (mips_elf_section_from_bfd_section): Remove rawdata check.
  3844. * srec.c (pass_over): Set the start address for S7, S8 or S9.
  3845. Fri Oct 14 19:15:46 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
  3846. * VERSION: Updated to 2.5.
  3847. Fri Oct 14 11:07:50 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3848. * bfd.c (bfd_scan_vma): Cast end to be non const before passing it
  3849. to strtoul.
  3850. Thu Oct 13 14:40:41 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3851. * bfd.c (bfd_scan_vma): Pass end argument on to strtoul.
  3852. Wed Oct 12 16:46:43 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
  3853. * opncls.c (bfd_realloc): Deleted, since it's broken and fixing it
  3854. would make it slow. Besides, it isn't used much.
  3855. * elfcode.h (elf_map_symbols): Always allocate new storage for the
  3856. symbol table.
  3857. Wed Oct 12 11:54:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3858. * ecoff.c (ecoff_set_symbol_info): Mark local stProc, stLabel or
  3859. stabs symbols as BSF_DEBUGGING.
  3860. * rs6000-core.c (rs6000coff_core_file_matches_executable_p): Make
  3861. str1 and str2 const pointers.
  3862. * Makefile.in (INSTALL): Use top level install.sh script.
  3863. * config/README (INSTALL): Remove.
  3864. * config/delta88.mh (INSTALL): Remove.
  3865. * config/i386v4.mh (INSTALL): Remove.
  3866. * config/irix4.mh (INSTALL): Remove.
  3867. * config/irix5.mh (INSTALL): Remove.
  3868. * config/ncrt3000.mh (INSTALL): Remove.
  3869. Tue Oct 11 13:57:56 1994 Eric Youngdale (eric@andante.aib.com)
  3870. * elf32-i386.c (elf_i386_check_relocs): Make sure that a symbol
  3871. with a global offset table entry or a procedure linkage table
  3872. entry is added to the dynamic symbol table.
  3873. * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
  3874. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): If a symbol has
  3875. already gotten a procedure linkage table entry, change the
  3876. definition to the PLT entry.
  3877. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
  3878. Tue Oct 11 17:12:00 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3879. * lynx-core.c (lynx_core_file_p): SPARC Lynx appears to start
  3880. dumping the .data section in a core file at a page boundary.
  3881. Mon Oct 10 16:24:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
  3882. * cofflink.c (_bfd_coff_final_link): Cast argument to bfd_h_put_32
  3883. to correct type.
  3884. (coff_read_string_table): Cast argument to bfd_h_get_32 to correct
  3885. type.
  3886. * elfcode.h (elf_link_output_extsym): Cast argument to
  3887. bfd_elf_hash to correct type.
  3888. * elf32-sparc.c (elf_sparc_howto_table): The PC10, PC22, and
  3889. WPLT30 relocations are PC-relative.
  3890. Thu Oct 6 12:57:26 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
  3891. * aoutx.h (adjust_o_magic): Correctly initialize vma if the vma of
  3892. the text section was user-defined.
  3893. Wed Oct 5 14:42:12 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3894. * archive.c (bfd_construct_extended_name_table): SVR4 uses slash
  3895. newline at the end of the file name, not just newline.
  3896. Tue Oct 4 11:23:12 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3897. * ecoff.c (_bfd_ecoff_new_section_hook): Default section alignment
  3898. power to 4, rather than using align_power_min.
  3899. * coffcode.h (coff_new_section_hook): Don't use align_power_min;
  3900. use COFF_DEFAULT_SECTION_ALIGNMENT_POWER instead. Force the .stab
  3901. and .stabstr sections to be aligned to no more than 2. Remove
  3902. COFF_SPARC special cases.
  3903. * coff-a29k.c: Define COFF_DEFAULT_SECTION_ALIGNMENT_POWER.
  3904. * coff-apollo.c, coff-go32.c, coff-h8300.c: Likewise.
  3905. * coff-h8500.c, coff-i386.c, coff-i960.c, coff-m68k.c: Likewise.
  3906. * coff-m88k.c, coff-rs6000.c, coff-sh.c, coff-sparc.c: Likewise.
  3907. * coff-we32k.c, coff-z8k.c: Likewise.
  3908. * configure.in: Use ${config_shell} when running config.bfd.
  3909. * cofflink.c (coff_link_input_bfd): Don't try to convert a long
  3910. filename if the offset field is zero.
  3911. * elfcode.h (swap_out_syms): If the alignment of a common symbol
  3912. was not set, use a sensible default rather than zero.
  3913. Mon Oct 3 16:04:29 1994 H.J. Lu (hjl@nynexst.com)
  3914. * opncls.c (bfd_close): Honor umask when setting execution bits.
  3915. (bfd_close_all_done): Likewise.
  3916. Mon Oct 3 04:41:49 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  3917. * rs6000-core.c (rs6000coff_core_p): Set SEC_HAS_CONTENTS flag
  3918. for .stack and .ldinfo sections. Cast coredata.c_tab to a
  3919. file_ptr to avoid warnings from gcc.
  3920. Fri Sep 30 13:11:38 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  3921. * elfcode.h (elf_bfd_final_link): Remove assertion when a non
  3922. SEC_IN_MEMORY section is found in dynobj. This can happen when
  3923. linking PIC compiled code.
  3924. Thu Sep 29 15:21:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
  3925. * reloc.c (bfd_install_relocation): Change type of "data" to
  3926. bfd_byte *, to go along with yesterday's change.
  3927. * elf.c (bfd_elf_print_symbol): Moved here from elf_print_symbol
  3928. in elfcode.h. (case bfd_print_symbol_all): Print symbol's size
  3929. field, except for common symbols; print their alignment.
  3930. * elfcode.h (elf_print_symbol): Deleted.
  3931. * libelf.h (bfd_elf_print_symbol): Declare.
  3932. (bfd_elf{32,64}_print_symbol): Replace declarations with macros.
  3933. * syms.c (bfd_print_symbol_vandf): Show BSF_LOCAL and BSF_GLOBAL
  3934. in one column. Use the column freed up to show BSF_FUNCTION and
  3935. BSF_FILE.
  3936. Thu Sep 29 12:29:01 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  3937. * syms.c (stt): Add .rdata and .rodata.
  3938. Wed Sep 28 13:35:05 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  3939. * reloc.c (bfd_install_relocation): Cast data_start to bfd_byte *
  3940. before trying to add values to it.
  3941. Tue Sep 27 16:47:58 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
  3942. * elf32-hppa.c (elf32_hppa_backend_final_write_processing): Cast
  3943. return value from elf_sym_extra.
  3944. (elf32_hppa_build_stubs): Cast return value from bfd_zalloc.
  3945. (elf32_hppa_size_stubs): Cast return value from malloc.
  3946. * gen-aout.c (main): Declare and initialize "arch".
  3947. * cofflink.c (coff_link_add_symbols): Cast return value of
  3948. bfd_hash_allocate.
  3949. * riscix.c (riscix_callback): Use PARAMS macro in prototype.
  3950. * reloc.c (bfd_install_relocation): New function, mostly copied
  3951. from bfd_perform_relocation, adjusted for the assembler's needs.
  3952. * bfd-in2.h: Regenerated.
  3953. Mon Sep 26 11:00:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  3954. * elfcode.h (assign_file_positions_except_relocs): Align the
  3955. section VMA and the file position even if D_PAGED is not set.
  3956. * bfd-in.h (bfd_seek): Change declaration to not mark fp const.
  3957. * bfd-in2.h: Rebuild.
  3958. * libbfd.c (bfd_seek): Don't mark parameters const, to avoid
  3959. conflicts with declaration.
  3960. Fri Sep 23 15:15:31 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  3961. * elfcode.h (map_program_segments): Don't abort if we allocated
  3962. too much space for the program header, only if we allocated too
  3963. little.
  3964. (assign_file_positions_except_relocs): Similar change.
  3965. Tue Sep 20 13:17:07 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
  3966. * libaout.h: Fix comment.
  3967. * ns32knbsd.h: Changed M_NS32K_NETBSD to M_532_NETBSD to match
  3968. libaout.h.
  3969. Tue Sep 20 15:23:21 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  3970. * Makefile.in: Rebuilt dependencies.
  3971. (BFD32_BACKENDS): Add sparcnetbsd.o.
  3972. (CFILES): Add ns32knetbsd.c and sparcnetbsd.c.
  3973. * targets.c: ns32knetbsd_vec was renamed to pc532netbsd_vec.
  3974. * coff-sh.c (rtype2howto): Remove; unused.
  3975. (coff_sh_relocate_section): Remove unused local variable rstat.
  3976. (reloc_processing): Comment out; unused.
  3977. Fri Sep 16 12:12:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  3978. * aoutx.h (aout_link_write_other_symbol): If h->indx is -2, then
  3979. always write it out even if it would normally be stripped.
  3980. (aout_link_input_section_std): If we find a reloc against a
  3981. stripped global symbol, force it to be written out rather than
  3982. merely calling unattached_reloc.
  3983. (aout_link_input_section_ext): Likewise.
  3984. (aout_link_reloc_link_order): Likewise.
  3985. Wed Sep 14 15:37:19 1994 Jeff Law (law@snake.cs.utah.edu)
  3986. * som.h (struct somdata): New field sorted_syms.
  3987. (obj_som_sorted_syms): Accessor macro.
  3988. * som.c (som_object_setup): Initialize sorted_syms to NULL.
  3989. (som_prep_for_fixups): Sort a copy of the BFD's symbol table;
  3990. store the sorted symbol table in sorted_syms.
  3991. (som_write_fixups): Initalize tmp_reloc to NULL to make GCC happy.
  3992. (som_begin_writing): Similarly for exec_header. Pass the sorted
  3993. symbol table to som_write_symbol_strings.
  3994. (som_build_and_write_symbol_table): Use the sorted symbols rather
  3995. than the canonical symbol table.
  3996. * som.h (som_symbol_type): Add "stringtab_offset" field.
  3997. * som.c (som_write_symbol_strings): Use "stringtab_offset"
  3998. rather than destroying the "name" field in the BFD symbol.
  3999. (som_build_and_write_symbol_table): Likewise.
  4000. Wed Sep 14 15:06:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4001. * aoutx.h (aout_link_write_symbols): Rename skip_indirect to
  4002. skip_next. If we find an N_WARNING symbol which has already been
  4003. written out, set skip_next.
  4004. * libecoff.h (struct ecoff_tdata): Add field find_buffer.
  4005. * ecoff.c: Include aout/stab_gnu.h.
  4006. (ecoff_find_nearest_line): Handle stabs debugging information.
  4007. * elfcode.h (elf_link_output_extsym): Keep a symbol marked as weak
  4008. even if it is referenced by another object.
  4009. Tue Sep 13 17:57:00 1994 Jeff Law (law@snake.cs.utah.edu)
  4010. * som.c (som_fixup_formats): Case R_ENTRY (0xb3), set both
  4011. 'T' and 'U' to grab all the unwind information.
  4012. (som_set_reloc_info): Make 'U' unwind bits persist across
  4013. multiple SOM relocations. Set the addend field of an R_ENTRY
  4014. relocation to the value in 'T'; set the addend field on an
  4015. R_EXIT relocation to the value in 'U'.
  4016. * som.h (som_symbol_type): Delete unwind field.
  4017. * som.c (som_write_fixups): For R_ENTRY fixups, get 32bits of
  4018. unwind information from the addend field of the R_ENTRY, get the
  4019. other 32bits from the addend field of the R_EXIT.
  4020. (bfd_som_attach_unwind_info): Delete function and all references.
  4021. * som.h (som_symbol_type): Delete unused a.out-related fields.
  4022. * som.c (bfd_section_from_som_symbol): Use bfd_abs_section_ptr
  4023. instead of &bfd_abs_section.
  4024. * som.c (som_object_setup): Handle exec_entry and exec_flags being
  4025. switched in executables created by the OSF1 linker.
  4026. (som_write_fixups): Handle R_EXIT just like the R_{F,L,R}SEL
  4027. fixups. Support R_ALT_ENTRY (handle just like R_EXIT).
  4028. Tue Sep 13 16:04:07 1994 Steve Chamberlain (sac@jonny.cygnus.com)
  4029. * cofflink.c (coff_link_input_bfd): syment_base is unsigned
  4030. so can't compare -ve numbers with it.
  4031. Mon Sep 12 20:31:17 1994 Steve Chamberlain (sac@jonny.cygnus.com)
  4032. * configure.in (shcoff_vec): Use cofflink.o now.
  4033. * coff-sh.c: Rewritten to use new fast coff backend.
  4034. Tue Sep 13 16:23:57 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4035. * aoutx.h (NAME(aout,final_link)): Don't assume that all the input
  4036. files are a.out.
  4037. Tue Sep 13 11:09:39 1994 J.T. Conklin (jtc@rtl.cygnus.com)
  4038. * configure.host (sparc-*-netbsd): use sparcnbsd.
  4039. (ns32k-*-netbsd): use ns32knbsd.
  4040. * hosts/{nbsd,i386nbsd,ns32knbsd,sparcnbsd}.h: New files, NetBSD
  4041. host support.
  4042. * sparcnetbsd.c: New file, adds support for NetBSD/sparc.
  4043. * config/sparc-nbsd.mt: Likewise.
  4044. * netbsd.h: New file, definitions common to all netbsd ports.
  4045. * i386netbsd.c: Use it.
  4046. * ns32knetbsd.c: Use it.
  4047. * Makefile.in, configure.in, targets.c, config/i386-nbsd.mt,
  4048. config/ns32k-nbsd.mt: canonicalize netbsd targets to conform to
  4049. file/variable naming conventions.
  4050. * i386netbsd.c: New file, renamed from netbsd386.c.
  4051. * ns32knetbsd.c: New file, renamed from netbsd532.c.
  4052. Mon Sep 12 21:56:20 1994 Jeff Law (law@snake.cs.utah.edu)
  4053. * som.c (som_reloc_skip): Correct off-by-one error for 4-byte
  4054. R_NO_RELOCATION fixups.
  4055. (bfd_section_from_som_symbol): Return the absolute section if the
  4056. symbol isn't contained in any section in the output file.
  4057. (som_slurp_symbol_table): ST_PRI_PROG and ST_SEC_PROG symbols are
  4058. not function symbols (they are magic code labels which *can* be the
  4059. targets of cross space branches). $START$ is not a section symbol.
  4060. Mon Sep 12 11:43:08 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4061. * coff-alpha.c (ecoffalpha_little_vec): Add SEC_CODE and SEC_DATA
  4062. to section_flags.
  4063. * coff-mips.c (ecoff_little_vec, ecoff_big_vec): Likewise.
  4064. * elfcode.h (swap_out_syms): Set the type of an undefined symbol
  4065. to STT_FUNC if the BSF_FUNCTION flag is set.
  4066. * cofflink.c (coff_link_input_bfd): If r_symndx is -1, don't
  4067. change it.
  4068. (_bfd_coff_generic_relocate_section): If r_symndx is -1, it is an
  4069. absolute reloc. Don't dump core using r_symndx as an array index.
  4070. * cf-m68klynx.c (coff_bfd_link_add_symbols): Define.
  4071. (lynx_link_add_symbols): New static function (copy of function in
  4072. coff-i386.c).
  4073. (coff_m68k_lynxrtype_to_howto): sym argument may be NULL.
  4074. * coff-i386.c (coff_i386_rtype_to_howto): Likewise.
  4075. * coff-a29k.c (coff_a29k_relocate_section): Handle an r_symndx
  4076. value of -1, meaning an absolute reloc.
  4077. * ctor.c: Remove; obsolete.
  4078. * Makefile.in: Rebuild dependencies.
  4079. (BFD_LIBS): Remove ctor.o.
  4080. (CFILES): Remove ctor.c.
  4081. * libbfd.h: Rebuild.
  4082. Mon Sep 12 01:58:47 1994 Jeff Law (law@snake.cs.utah.edu)
  4083. * elf32-hppa.c (elf32_hppa_relocate_section): If there was a link
  4084. error of some sort (for example, undefined symbols), then do not
  4085. apply any relocs, just notify the user of the errors.
  4086. (elf32_hppa_backend_begin_write_processing): Do not build a symbol
  4087. extension section for an executable (it's useless).
  4088. (elf32_hppa_link_output_symbol_hook): Do nothing if there was a
  4089. link error of some sort (for example, undefined symbols).
  4090. (elf32_hppa_read_symext_info): Kludge. Turn off SEC_HAS_CONTENTS
  4091. for all the input symbol extension sections to keep the generic
  4092. BFD code happy. Temporarily turn it on to read the contents of
  4093. the symbol extension section.
  4094. Sun Sep 11 21:58:59 1994 Jeff Law (law@snake.cs.utah.edu)
  4095. * config/hppaosf.mh (RANLIB): Do not set.
  4096. * config/hppabsd.mh (RANLIB): Likewise.
  4097. Sun Sep 11 22:50:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  4098. * cf-i386lynx.c: Remove #if 0 code.
  4099. (i386_lynxos_coff_object_p): Remove unused function.
  4100. (coff_bfd_link_add_symbols): Define.
  4101. (lynx_link_add_symbols): New static function.
  4102. * coffcode.h (coff_bfd_link_hash_table_create): If
  4103. coff_relocate_section is defined, only define this if not already
  4104. defined.
  4105. (coff_bfd_link_add_symbols, coff_bfd_final_link): Likewise.
  4106. * linker.c (_bfd_generic_final_link): Handle
  4107. bfd_indirect_link_order explicitly, rather than via
  4108. _bfd_default_link_order.
  4109. (set_symbol_from_hash): New static function, broken out of
  4110. _bfd_generic_link_write_global_symbol.
  4111. (_bfd_generic_link_write_global_symbol): Symbol setting code moved
  4112. to set_symbol_from_hash; call it.
  4113. (default_indirect_link_order): Add generic_linker argument.
  4114. Change all callers. If false, set the generic symbols based on
  4115. the hash table entries.
  4116. Fri Sep 9 11:51:49 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4117. * coffgen.c (coff_get_symtab): Reindented. Removed commented out
  4118. call to bfd_constructor_entry.
  4119. Convert m68k COFF to use new COFF backend linker.
  4120. * coff-m68k.c (coff_relocate_section): Define.
  4121. * cf-m68klynx.c (coff_rtype_to_howto): Define.
  4122. (coff_m68k_lynx_rtype_to_howto): New static function.
  4123. * configure.in (m68kcoff_vec): Build cofflink.o.
  4124. (m68kcoffun_vec, m68klynx_coff_vec): Likewise.
  4125. Thu Sep 8 16:20:38 1994 Steve Chamberlain (sac@jonny.cygnus.com)
  4126. * coff-h8300.c (h8300_reloc16_extra_cases, case RELBYTE): Flag
  4127. overflows correctly.
  4128. Wed Sep 7 19:01:42 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4129. * libelf.h (struct elf_backend_data): Change second argument of
  4130. elf_backend_final_write_processing hook to boolean.
  4131. (struct elf_obj_tdata): Add linker field.
  4132. * elfcode.h (NAME(bfd_elf,write_object_contents)): Pass value of
  4133. tdata linker field to final_write_processing, rather than NULL.
  4134. (elf_bfd_final_link): Don't call final_write_processing hook. Set
  4135. tdata linker field to true.
  4136. * elf32-mips.c (mips_elf_final_write_processing): Change type of
  4137. second argument to boolean.
  4138. * elf32-hppa.c (elf32_hppa_backend_final_write_processing):
  4139. Likewise.
  4140. * coff-go32.c (RTYPE2HOWTO): Fully parenthesize arguments.
  4141. * coff-i960.c (RTYPE2HOWTO): Likewise.
  4142. * coff-m88k.c (RTYPE2HOWTO): Likewise.
  4143. * coff-we32k.c (RTYPE2HOWTO): Likewise.
  4144. Make i386 COFF use new COFF backend linker.
  4145. * coff-i386.c (RTYPE2HOWTO): Fully parenthesize arguments.
  4146. (coff_relocate_section): Define.
  4147. (coff_i386_rtype_to_howto): New function.
  4148. * configure.in (i386coff_vec): Use cofflink.o.
  4149. (i386lynx_coff_vec): Likewise.
  4150. * coffcode.h (bfd_coff_backend_data): Add new field
  4151. _bfd_coff_rtype_to_howto.
  4152. (bfd_coff_rtype_to_howto): Define.
  4153. (coff_rtype_to_howto): Define to use RTYPE2HOWTO, if not already
  4154. defined.
  4155. (bfd_coff_std_swap_table): Initialize new field.
  4156. * cofflink.c (_bfd_coff_final_link): Allocate section_count + 1
  4157. section_info structures, since the target_index is 1 based.
  4158. (coff_link_input_bfd): Set *secpp to bfd_com_section_ptr for a
  4159. common symbol. Adjust rel_hash by the output reloc count.
  4160. (_bfd_coff_generic_relocate_section): New function.
  4161. * libcoff-in.h (_bfd_coff_generic_relocate_section): Declare.
  4162. * libcoff.h: Rebuild.
  4163. * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
  4164. * coff-mips.c (mips_ecoff_backend_data): Likewise.
  4165. Tue Sep 6 23:28:52 1994 Jeff Law (law@snake.cs.utah.edu)
  4166. * som.c (som_bfd_derive_misc_symbol_info): Treat undefined code
  4167. symbols and undefined symbols which no type in the same manner
  4168. if the associated BFD symbol has BSF_FUNCTION set. For a defined
  4169. symbol which no type, select a SOM type based on the flags of the
  4170. section containing the symbol.
  4171. (som_slurp_symbol_type): Set BSF_FUNCTION for undefined ST_STUB
  4172. or ST_CODE symbols (importing a non-function code symbol is
  4173. meaningless in SOM).
  4174. (som_set_reloc_info): Don't set "offset" to the section's vma; it
  4175. should always start at zero.
  4176. Tue Sep 6 14:51:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4177. Add new style linker support to COFF backend. a29k only for now.
  4178. * cofflink.c: New file.
  4179. * libcoff-in.h: Include bfdlink.h.
  4180. (obj_coff_external_syms, obj_coff_strings): Define accessor macro.
  4181. (obj_coff_sym_hashes): Define accessor macro.
  4182. (struct coff_tdata): Add fields external_syms, strings, and
  4183. sym_hashes.
  4184. (struct coff_link_hash_entry): Define.
  4185. (struct coff_link_hash_table): Define.
  4186. (coff_link_hash_lookup, coff_link_hash_traverse): Define.
  4187. (coff_hash_table): Define.
  4188. (_bfd_coff_link_hash_table_create): Declare.
  4189. (_bfd_coff_link_add_symbols, _bfd_coff_final_link): Declare.
  4190. * coffcode.h (bfd_coff_backend_data): Add fields _bfd_relsz,
  4191. _bfd_coff_swap_reloc_in, _bfd_coff_sym_is_global,
  4192. _bfd_coff_compute_section_file_positions,
  4193. _bfd_coff_relocate_section.
  4194. (bfd_coff_relsz, bfd_coff_swap_reloc_in): Define.
  4195. (bfd_coff_sym_is_global): Define.
  4196. (bfd_coff_compute_section_file_positions): Define.
  4197. (bfd_coff_relocate_section): Define.
  4198. (coff_mkobject_hook): Initialize obj_raw_syment_count and
  4199. obj_conv_table_size.
  4200. (coff_compute_section_file_positions): Set target_index of all
  4201. sections. Set output_has_begun field.
  4202. (coff_write_object_contents): Don't set target_index; now done by
  4203. coff_compute_section_file_positions. Remove obsolete handling of
  4204. scn_base and data_base. Don't bother to check that target_index
  4205. is positive, since it always is. Remove use of pad, which is
  4206. always zero. Check obj_raw_syment_count, not bfd_get_symcount,
  4207. for the number of symbols, but only write them out if
  4208. bfd_get_symcount is non-zero. Don't check obj_raw_syment_count
  4209. until after coff_write_symbols is called.
  4210. (coff_slurp_symbol_table): Use obj_raw_syment_count, not
  4211. bfd_get_symcount for the number of symbols. Don't set
  4212. obj_conv_table_size.
  4213. (coff_sym_is_global): New static function or macro.
  4214. (coff_slurp_reloc_table): Call coff_swap_reloc_in, not
  4215. bfd_swap_reloc_in.
  4216. (coff_bfd_link_hash_table_create): If coff_relocate_section is
  4217. defined, define as _bfd_coff_link_hash_table_create.
  4218. (coff_bfd_link_add_symbols): Similar change.
  4219. (coff_bfd_final_link): Similar change.
  4220. (coff_relocate_section): Define as NULL if not defined.
  4221. (bfd_coff_std_swap_table): Initialize new fields.
  4222. * coffgen.c (coff_real_object_p): Don't set obj_raw_syment_count
  4223. and obj_conv_table_size here.
  4224. (coff_count_linenumbers): Reindent. If bfd_get_symcount is zero,
  4225. add up the line numbers from the sections.
  4226. (coff_write_symbols): Set obj_raw_syment_count, not
  4227. bfd_get_symcount.
  4228. (coff_pointerize_aux): Don't pointerize a nonpositive x_endndx
  4229. field.
  4230. (coff_get_normalized_symtab): Use obj_raw_syment_count, not
  4231. bfd_get_symcount.
  4232. (coff_print_symbol): If auxp->fix_end, print x_endndx value.
  4233. * coffswap.h (coff_swap_reloc_in): Rename from bfd_swap_reloc_in.
  4234. Reindent. Change argument type to PTR.
  4235. * coff-a29k.c (coff_a29k_relocate_section): New static function.
  4236. (coff_relocate_section): Define.
  4237. * configure.in (a29kcoff_big_vec): Compile cofflink.o.
  4238. * coff-alpha.c (alpha_ecoff_backend_data): Initialize new fields.
  4239. * coff-mips.c (mips_ecoff_backend_data): Likewise.
  4240. * libcoff.h: Rebuilt.
  4241. * Makefile.in: Rebuilt dependencies.
  4242. (BFD32_BACKENDS): Add cofflink.o.
  4243. (CFILES): Add cofflink.c.
  4244. Tue Sep 6 14:00:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  4245. * coffgen.c (coff_print_symbol, case bfd_symbol_print_all): Check
  4246. for section symbol, and print its aux fields with appropriate
  4247. labels.
  4248. * Makefile.in (ALL_MACHINES): Added cpu-arm.o.
  4249. Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
  4250. * aoutx.h (NAME(aout,machine_type)): Recognize the ARM processor.
  4251. * archures.c, config.bfd, configure.host, libaout.h, reloc.c,
  4252. targets.c: Add support for the ARM.
  4253. * cpu-arm.c, riscix.c, config/riscix.mh, config/riscix.mt: New files.
  4254. * aoutx.h (add_to_stringtable): Check that str isn't a NULL pointer.
  4255. Fri Sep 2 14:10:30 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  4256. * reloc.c (enum bfd_reloc_code_real): Rewrote definition to use
  4257. new "chew" commands for simultaneous definition of enumerator and
  4258. enumerator name table.
  4259. (bfd_get_reloc_code_name): New function, for retrieving a symbolic
  4260. name associated with an enumerator.
  4261. * libbfd.h, bfd-in2.h: Regenerated.
  4262. Tue Aug 30 21:24:54 1994 Jeff Law (law@snake.cs.utah.edu)
  4263. * som.c (som_write_fixups, case R_ENTRY): Handle case where no
  4264. unwind descriptor information is available.
  4265. Tue Aug 30 11:43:30 1994 Eric Youngdale (ericy@cais.cais.com)
  4266. * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add soname
  4267. argument, and use it to set DT_SONAME dynamic entry.
  4268. * bfd-in.h (bfd_elf32_size_dynamic_sections): Update prototype.
  4269. (bfd_elf64_size_dynamic_sections): Update prototype.
  4270. * bfd-in2.h: Rebuilt.
  4271. Fri Aug 26 15:47:57 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4272. * coffgen.c (coff_real_object_p): Set obj_raw_syment_count.
  4273. (coff_get_normalized_symtab): Verify obj_raw_syment_count, rather
  4274. than setting it.
  4275. Thu Aug 25 10:44:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4276. * archive.c (bsd_write_armap): Remove host dependencies.
  4277. * aoutx.h (add_to_stringtab): Check for _bfd_stringtab_add error
  4278. before adding BYTES_IN_WORD.
  4279. * coffgen.c (coff_find_nearest_line): Look for the best C_FILE,
  4280. not merely the first.
  4281. * coffgen.c (coff_write_alien_symbol): If we are not using the
  4282. symbol, clear the name so that it is not put in the string table.
  4283. From Antti.Miettinen@ntc.nokia.com.
  4284. Wed Aug 24 11:49:19 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4285. * coffgen.c (coff_print_symbol): Cast pointer different to long
  4286. and use %ld to print it.
  4287. * osf-core.c (osf_core_core_file_p): Remove unused variable
  4288. dseccnt.
  4289. * ecoffswap.h (ecoff_swap_ext_out): If ECOFF_64, clear remaining
  4290. bytes in bits2.
  4291. * configure.host, config.bfd: Change i[34]86 to i[345]86.
  4292. * coffgen.c (coff_real_object_p): Set obj_conv_table_size here,
  4293. rather than waiting until coff_slurp_symbol_table.
  4294. (coff_write_alien_symbol): Just ignore BSF_DEBUGGING symbols.
  4295. From Antti.Miettinen@ntc.nokia.com.
  4296. * section.c (bfd_make_section_anyway): Fix failure check of
  4297. bfd_make_empty_symbol. From Antti.Miettinen@ntc.nokia.com.
  4298. * aoutx.h (translate_to_native_sym_flags): Use the output_section
  4299. (and output_offset) if there is one.
  4300. * aoutx.h (aout_link_check_archive_element): Discard the symbols
  4301. if the archive element was not needed.
  4302. * aoutx.h (aout_get_external_symbols): Ensure that a zero string
  4303. index yields an empty string.
  4304. (aout_link_write_symbols): If info->keep_memory is false, use name
  4305. from original hash table entry, not from entry in *sym_hash.
  4306. * aoutx.h (struct aout_final_link_info): Add fields contents,
  4307. relocs, symbol_map and output_syms.
  4308. (NAME(aout,final_link)): Work out the largest section size, reloc
  4309. size, and number of symbols. Use them to preallocate buffers that
  4310. are large enough for all cases.
  4311. (aout_link_input_bfd): Use preallocated symbol_map.
  4312. (aout_link_write_symbols): Remove symbol_map argument; use
  4313. preallocated symbol_map instead. Change all callers. Use
  4314. preallocated output_syms.
  4315. (aout_link_input_section): Remove symbol_map argument. Change all
  4316. callers. Use preallocated contents and relocs.
  4317. (aout_link_input_section_std): Remove symbol_map argument; use
  4318. preallocated symbol_map instead. Change all callers.
  4319. (aout_link_input_section_ext): Likewise.
  4320. Tue Aug 23 10:51:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4321. * archive.c (_bfd_write_archive_contents): Don't update the
  4322. symbol map timestamp if there is no symbol map. From
  4323. schwab@issan.informatik.uni-dortmund.de (Andreas Schwab).
  4324. Mon Aug 22 12:26:42 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4325. * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add _update_armap_timestamp.
  4326. (bfd_target): Add field _bfd_update_armap_timestamp.
  4327. * bfd.c (bfd_update_armap_timestamp): Define.
  4328. * bfd-in2.h: Rebuilt.
  4329. * libbfd-in.h (_bfd_noarchive_update_armap_timestamp): Define.
  4330. (_bfd_archive_bsd_update_armap_timestamp): Declare.
  4331. (_bfd_archive_coff_update_armap_timestamp): Define.
  4332. * libbfd.h: Rebuilt.
  4333. * archive.c (_bfd_write_archive_contents): Call
  4334. bfd_update_armap_timestamp instead of checking for a BSD archive
  4335. and calling bsd_update_armap_timestamp.
  4336. (_bfd_archive_bsd_update_armap_timestamp): Rename from
  4337. _bsd_update_armap_timestamp. Don't assume that armap_datepos is
  4338. already set.
  4339. * aout-target.h (MY_update_armap_timestamp): Define if not already
  4340. defined.
  4341. * coff-rs6000.c (rs6000coff_update_armap_timestamp): Define.
  4342. * ieee.c (ieee_update_armap_timestamp): Define.
  4343. * libecoff.h (_bfd_ecoff_update_armap_timestamp): Define.
  4344. * oasys.c (oasys_update_armap_timestamp): Define.
  4345. * som.c (som_update_armap_timestamp): Define.
  4346. * hash.c: Copy string hash functions from aoutx.h.
  4347. * aoutx.h: String hash functions moved to hash.c. Retain
  4348. simplified versions of add_to_stringtab and emit_stringtab.
  4349. Change all callers to use new function and structure names.
  4350. * libbfd-in.h (_bfd_stringtab_init, _bfd_stringtab_free): Declare.
  4351. (_bfd_stringtab_size, _bfd_stringtab_add): Declare.
  4352. (_bfd_stringtab_emit): Declare.
  4353. * libbfd.h: Rebuilt.
  4354. Mon Aug 22 10:49:37 1994 Eric Youngdale (ericy@cais.cais.com)
  4355. * i386linux.c (linux_add_one_symbol): Create a fixup for any
  4356. defined absolute symbol, not just GOT or PLT symbols.
  4357. (linux_tally_symbols): Correct handling of references to defined
  4358. symbols.
  4359. Thu Aug 18 16:29:57 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4360. Get ld -x -r to handle a.out set symbols correctly.
  4361. * aoutx.h (adjust_o_magic): If the .bss VMA was set outside of
  4362. BFD, pad the .data section up to the VMA of the .bss section.
  4363. (aout_link_add_symbols): If a set symbol does not get modified,
  4364. treat it as a local symbol.
  4365. (aout_link_write_symbols): Set the value of set symbols
  4366. correctly. Don't discard set symbols even if discarding local
  4367. symbols.
  4368. (aout_link_write_other_symbol): Don't abort on bfd_link_hash_new,
  4369. since it can now happen for set symbols.
  4370. * elfcode.h (elf_fake_sections): Just check for ".rela" and
  4371. ".rel", not ".rela." and ".rel."; make this work by checking
  4372. use_rela_p.
  4373. * elf32-i386.c (elf_i386_check_relocs): Just check for ".rel", not
  4374. ".rel."
  4375. (elf_i386_size_dynamic_sections): Likewise.
  4376. (elf_i386_relocate_section): Likewise.
  4377. * elf32-sparc.c (elf32_sparc_check_relocs): Just check for
  4378. ".rela", not ".rela."
  4379. (elf32_sparc_size_dynamic_sections): Likewise.
  4380. (elf32_sparc_relocate_section): Likewise.
  4381. Wed Aug 17 16:54:18 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4382. * linker.c (_bfd_generic_link_add_archive_symbols): Initialize
  4383. PASS to the old value + 1.
  4384. * coffgen.c (coff_get_normalized_symtab): If a C_FILE symbol has
  4385. no aux entries, use the symbol name as the file name.
  4386. (coff_find_nearest_line): Look for the right C_FILE symbol, rather
  4387. than always using the first one. If there is a debugging symbol
  4388. after a function symbol, skip it. Add the section VMA to the line
  4389. offset, since it was subtracted out in coff_slurp_line_table.
  4390. Tue Aug 16 16:53:00 1994 Jeff Law (law@snake.cs.utah.edu)
  4391. * som.c (som_prep_headers): If writing some form of an executable,
  4392. allocate and attach an exec header to the BFD private data.
  4393. (som_begin_writing): Don't fill fields of the exec header based
  4394. on BFD private data here (like the exec flags). Do not write
  4395. the exec header here.
  4396. (som_write_headers): Instead do it here.
  4397. * som.h (struct somdata): New field "exec_hdr" for the executable
  4398. file header.
  4399. (obj_som_exec_hdr): New accessor macro.
  4400. Tue Aug 16 00:12:31 1994 Eric Youngdale (ericy@cais.cais.com)
  4401. * i386linux.c (linux_link_create_dynamic_sections): Create section
  4402. named .linux-dynamic, not .dynamic.
  4403. (linux_add_one_symbol): Use .linux-dynamic, not .dynamic.
  4404. (bfd_linux_size_dynamic_sections): Likewise.
  4405. (linux_finish_dynamic_link): Likewise.
  4406. Mon Aug 15 12:16:56 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4407. * coffgen.c (STRING_SIZE_SIZE): Define.
  4408. (coff_fix_symbol_name): Use STRING_SIZE_SIZE, not 4.
  4409. (coff_write_symbols, build_string_table): Likewise.
  4410. (coff_get_normalized_symtab): Likewise.
  4411. * libcoff-in.h (obj_symbol_slew): Don't define.
  4412. (struct coff_tdata): Remove unused fields index_slew, raw_linenos,
  4413. and flags.
  4414. * libcoff.h: Rebuilt.
  4415. * coffcode.h (coff_mkobject): Don't initialize raw_linenos.
  4416. (coff_mkobject_hook): Don't initialize flags.
  4417. * aout-target.h (MY_zmagic_contiguous): Define as 0 if not already
  4418. defined.
  4419. (MY(backend_data)): Use MY_zmagic_contiguous, not hardcoded 0.
  4420. * i386linux.c (MY_zmagic_contiguous): Define.
  4421. * elfcode.h (bfd_section_from_shdr): If a SHT_SYMTAB section in a
  4422. shared object has SHF_ALLOC set, create a BFD section for it.
  4423. (elf_section_from_bfd_section): There may be a BFD section for a
  4424. SHT_SYMTAB section.
  4425. * coffcode.h (styp_to_sec_flags): Add name argument. If no flags
  4426. are recognized, chose section flags based on the name.
  4427. (bfd_coff_backend_data): _bfd_styp_to_sec_flags_hook field: Add
  4428. name argument.
  4429. (bfd_coff_styp_to_sec_flags_hook): Add name argument.
  4430. (coff_compute_section_file_positions): Don't adjust the section
  4431. position by COFF_PAGE_SIZE unless SEC_ALLOC is set.
  4432. * libcoff.h: Rebuilt.
  4433. * coffgen.c (make_a_section_from_file): Pass section name to
  4434. bfd_coff_styp_to_sec_flags_hook.
  4435. * ecoff.c (_bfd_ecoff_styp_to_sec_flags): Add unused name
  4436. argument.
  4437. * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Add name argument to
  4438. prototype.
  4439. Fri Aug 12 11:22:40 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4440. * elfcode.h (section_from_elf_index): Correct check for invalid
  4441. section index.
  4442. * elfcode.h (elf_link_add_object_symbols): If there is no symbol
  4443. table, try using the dynamic symbol table. From Eric Youngdale
  4444. <ericy@cais.cais.com>.
  4445. * configure.host (sparc-*-solaris2*): Use solaris2, not sysv4.
  4446. The linker depends upon configuring for solaris2.
  4447. * hosts/solaris2.h: New file; include hosts/sysv4.h.
  4448. * config/solaris2.mh: New file; copy of config/sysv4.mh.
  4449. Wed Aug 10 13:09:38 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4450. * aoutx.h (adjust_z_magic): Make sure data section is padded to
  4451. page boundary when the VMA is set by the calling program. From
  4452. Eric Youngdale <ericy@cais.cais.com>.
  4453. Mon Aug 8 17:18:49 1994 Stan Shebs (shebs@andros.cygnus.com)
  4454. Update to ns32k support, from Ian Dall (dall@hfrd.dsto.gov.au).
  4455. * aout-ns32k.c: Add declarations that were in aout-ns32k.h, change
  4456. declarations to traditional form.
  4457. (MY_reloc_howto, MY_put_reloc): Change from macro to function.
  4458. (ns32k_relocate_contents): New function.
  4459. * aout-ns32k.h: Remove.
  4460. * cpu-ns32k.c: Add declarations that were in aout-ns32k.h, change
  4461. declarations to traditional form.
  4462. (ns32k_final_link_relocate): Call ns32k_relocate_contents.
  4463. * netbsd532.c: Reformat to standards, add copyright notice.
  4464. (ARCH): Don't define.
  4465. (aout-ns32k.h): Don't include.
  4466. * pc532-mach.c: Ditto.
  4467. Mon Aug 8 17:55:52 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4468. * coff-i960.c (coff_i960_relocate): Don't try to convert relocs
  4469. against common symbols.
  4470. Sat Aug 6 22:27:30 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  4471. * irix-core.c (irix_core_core_file_p): Ignore sections that
  4472. are not contained in the core file.
  4473. Thu Aug 4 11:32:23 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4474. * coff-m68k.c (m68k_reloc_type_lookup): New function.
  4475. (coff_bfd_reloc_type_lookup): Define.
  4476. * cf-m68klynx.c (_bfd_m68kcoff_reloc_type_lookup): Define.
  4477. * elfcode.h (elf_bfd_final_link): Force the vma of sections which
  4478. do not have SEC_ALLOC set to be 0. This is needed to handle
  4479. relocs against debugging sections.
  4480. Wed Aug 3 16:45:41 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4481. * coff-i960.c (coff_i960_relocate): Rewrote to change relocs
  4482. against locally defined symbols into relocs against section
  4483. symbols, for VxWorks 5.1.
  4484. Wed Aug 3 10:34:37 1994 Eric Youngdale (ericy@cais.cais.com)
  4485. * i386linux.c (linux_add_one_symbol): Only handle
  4486. SHARABLE_CONFLICTS specially if BSF_CONSTRUCTOR is set. Set hashp
  4487. for a GOT or PLT symbol. Set jump field of fixup for a PLT symbol.
  4488. (linux_tally_symbols): Check section of real symbol. When looking
  4489. for a builtin fixup, check builtin and jump flags. Create no more
  4490. than one fixup, and always create one if the real symbol is in the
  4491. absolute section. Only strip absolute symbols.
  4492. Wed Aug 3 05:08:24 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
  4493. * coffcode.h (coff_write_object_contents): set internal_a.magic to
  4494. LYNXCOFFMAGIC whenever 68k, SPARC or i386 LynxOS
  4495. (yes, they have the same magic number!)
  4496. Tue Aug 2 10:43:21 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4497. * hp300hpux.c (BMAGIC): Define as HPUX_DOT_O_MAGIC, to make test
  4498. in aoutx.h work correctly.
  4499. * coff-i960.c (coff_i960_relocate): New function.
  4500. (howto_rellong, howto_iprmed): Use it as special_function.
  4501. * libbfd-in.h: Move declarations of bfd_read, bfd_write, bfd_seek,
  4502. bfd_tell, bfd_flush, and bfd_stat from here...
  4503. * bfd-in.h: ...to here, to make them visible to programs which
  4504. know more about the object file format than BFD does.
  4505. * libbfd.h, bfd-in2.h: Rebuilt.
  4506. Mon Aug 1 17:55:53 1994 Fred Fish (fnf@cygnus.com)
  4507. * ptrace-core.c (ptrace_unix_core_file_p): Convert zalloc usage
  4508. to bfd_zalloc.
  4509. Mon Aug 1 12:04:40 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4510. * elf64-sparc.c (ELF_MAXPAGESIZE): Define.
  4511. ELF linker patches from Eric Youngdale <ericy@cais.cais.com>.
  4512. * elfcode.h (elf_link_create_dynamic_sections): Set type of
  4513. _DYNAMIC to STT_OBJECT.
  4514. (NAME(bfd_elf,record_link_assignment)): Always create hash table
  4515. entry. Set type to STT_OBJECT.
  4516. (elf_link_output_extsym): Don't set type of weak defined symbol to
  4517. STB_WEAK if symbol was referenced.
  4518. (map_program_segments): Check DYNAMIC as well as EXEC_P.
  4519. (assign_file_positions_except_relocs): Likewise.
  4520. * elf32-i386.c (elf_i386_create_dynamic_sections): Set type of
  4521. _GLOBAL_OFFSET_TABLE to STT_OBJECT.
  4522. (elf_i386_check_relocs): Ignore local PLT32 relocs.
  4523. (elf_i386_relocate_section): Treat local PLT32 relocs as PC32.
  4524. * elfcode.h (elf_adjust_dynamic_symbol): Correct weak symbol
  4525. handling again.
  4526. * elfcode.h (elf_slurp_reloc_table): Don't try to read the relocs
  4527. if there aren't any.
  4528. * configure.host (sparc-*-solaris2*): Use sysv4, not solaris2.
  4529. * hosts/solaris2.h: Remove.
  4530. * config/solaris2.mh: Remove.
  4531. Sun Jul 31 14:27:04 1994 Jeff Law (law@snake.cs.utah.edu)
  4532. * elf32-hppa.c, elf32-hppa.h: Update comment reflecting which
  4533. HPPA ELF spec the code implements.
  4534. Tue Jul 26 17:38:01 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  4535. * cpu-i960.c (MAX_ARCH): New macro.
  4536. (compatible): Use it in computing array bounds. Put comma after
  4537. last entry in array, for regularity.
  4538. (arch_info_struct): Adjust spacing for easier reading.
  4539. * coff-i960.c (howto_rellong, howto_iprmed, howto_optcall): Use
  4540. HOWTO macro.
  4541. * cpu-i960.c (JX): Define as bfd_mach_i960_jx.
  4542. (scan_960_mach): Recognize jx machine.
  4543. (MAX_ARCH): Define to be JX.
  4544. (compatible): Add JX row to array.
  4545. (arch_info_struct): Add JX entry.
  4546. * archures.c (bfd_mach_i960_jx): New macro.
  4547. * bfd-in2.h: Regenerated.
  4548. * coffcode.h (coff_set_arch_mach_hook): For F_I960JX, set machine
  4549. to bfd_mach_i960_jx.
  4550. (coff_set_flags): For bfd_mach_i960_jx, set F_I960JX.
  4551. Tue Jul 26 11:04:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4552. * elfcode.h (elf_adjust_dynamic_symbol): When handling a weak
  4553. symbol, correct check to see whether the equivalent normal symbol
  4554. was referenced.
  4555. Add support for creating shared libraries under i386 ELF and SPARC
  4556. ELF. Based on patches by Eric Youngdale <ericy@cais.cais.com>.
  4557. * libelf.h (struct elf_link_hash_entry): Remove copy_offset field.
  4558. Add got_offset and plt_offset fields.
  4559. (ELF_LINK_HASH_REF_DYNAMIC_MULTIPLE): Don't define.
  4560. (ELF_LINK_HASH_DEF_DYNAMIC_MULTIPLE): Don't define.
  4561. (ELF_LINK_HASH_NEEDS_COPY): Define.
  4562. (struct elf_backend_data): Add check_relocs field.
  4563. (struct bfd_elf_section_data): Change relocs from PTR to
  4564. Elf_Internal_Rela *.
  4565. (struct elf_obj_tdata): Add local_got_offsets field.
  4566. (elf_local_got_offsets): Define accessor macro.
  4567. (bfd_elf32_link_create_dynamic_sections): Declare.
  4568. (bfd_elf32_link_record_dynamic_symbol): Declare.
  4569. (bfd_elf64_link_create_dynamic_sections): Declare.
  4570. (bfd_elf64_link_record_dynamic_symbol): Declare.
  4571. * elfcode.h (elf_slurp_reloc_table): Don't use the section data
  4572. relocs field.
  4573. (elf_link_record_dynamic_symbol): Make globally visible. Use
  4574. macro to rename to NAME(bfd_elf,link_record_dynamic_symbol).
  4575. (elf_link_add_object_symbols): If creating a shared library, put
  4576. make all local symbols dynamic. Don't bother with the
  4577. DYNAMIC_MULTIPLE flags. Call the check_relocs backend function if
  4578. it is defined.
  4579. (elf_link_create_dynamic_sections): Make globally visible. Use
  4580. macro to rename to NAME(bfd_elf,link_create_dynamic_sections). If
  4581. creating a shared library, make sure that _DYNAMIC is added as a
  4582. dynamic symbol.
  4583. (elf_link_read_relocs): New function.
  4584. (NAME(bfd_elf,record_link_assignment)): If creating a shared
  4585. library, always create symbols, and always make them dynamic.
  4586. (elf_bfd_final_link): Permit creation of shared libraries.
  4587. (elf_link_input_bfd): Use elf_link_read_relocs to get the relocs.
  4588. * elf.c (_bfd_elf_link_hash_newfunc): Don't initialize
  4589. copy_offset. Initialize got_offset and plt_offset.
  4590. * elf32-target.h (elf_backend_check_relocs): Define as 0 if not
  4591. defined.
  4592. (elf32_bed): Initialize check_relocs field.
  4593. * elf64-target.h (elf_backend_check_relocs): Define as 0 if not
  4594. defined.
  4595. (elf64_bed): Initialize check_relocs field.
  4596. * elf32-i386.c (elf_howto_table): Change R_386_PLT32 and
  4597. R_386_GOTPC to be pc_relative and pcrel_offset.
  4598. (elf_i386_pic_plt0_entry): Define.
  4599. (elf_i386_pic_plt_entry): Define.
  4600. (elf_i386_create_dynamic_sections): Create a .got.plt section, and
  4601. define _GLOBAL_OFFSET_TABLE_ at the start of it. If creating a
  4602. shared library, make sure that _GLOBAL_OFFSET_TABLE_ is added as a
  4603. dynamic symbol. Don't create .rel.bss if creating a shared
  4604. library.
  4605. (elf_i386_check_relocs): New function.
  4606. (elf_i386_adjust_dynamic_symbol): Don't make a PLT entry if the
  4607. symbol already has one. When making a PLT entry, set plt_offset.
  4608. Don't create a copy reloc when creating a shared library. Don't
  4609. set copy_offset, just set ELF_LINK_HASH_NEEDS_COPY.
  4610. (elf_i386_allocate_dynamic_section): Remove.
  4611. (elf_i386_size_dynamic_sections): Look through all the sections
  4612. rather than assuming we know their names. Remove any empty reloc
  4613. or plt sections. Only add a DT_DEBUG entry if not creating a
  4614. shared library. Only add a DT_PLTGOT entry if there is a PLT.
  4615. Add a DT_TEXTREL entry if required.
  4616. (elf_i386_relocate_section): Permit undefined symbols when
  4617. creating a shared library. Handle the special relocation types
  4618. specially.
  4619. (elf_i386_finish_dynamic_symbol): Create a PLT entry if plt_offset
  4620. is set. If creating a shared library, produce a PIC PLT entry.
  4621. Only mark a PLT symbol as undefined if it was not defined by a
  4622. regular object file. Create a GOT entry if got_offset is set.
  4623. Create a copy reloc if ELF_LINK_HASH_NEEDS_COPY is set.
  4624. (elf_i386_finish_dynamic_sections): Change the handling of
  4625. DT_RELSZ to simply subtract out the size of .rel.plt. If creating
  4626. a shared library, produce PIC PLT code.
  4627. (elf_backend_check_relocs): Define.
  4628. * elf32-sparc.c (elf_sparc_howto_table): Change R_SPARC_GOT10,
  4629. R_SPARC_GOT22, and R_SPARC_PC10 to not warn about reloc overflow.
  4630. (elf32_sparc_create_dynamic_sections): If creating a shared
  4631. library, make sure that _GLOBAL_OFFSET_TABLE_ is added as a
  4632. dynamic symbol, and set the type to STT_OBJECT. Likewise for
  4633. _PROCEDURE_LINKAGE_TABLE_. Don't create .rel.bss if creating a
  4634. shared library.
  4635. (elf32_sparc_check_relocs): New function.
  4636. (elf32_sparc_adjust_dynamic_symbol): Don't make a PLT entry if the
  4637. symbol already has one. When making a PLT entry, set plt_offset.
  4638. Don't create a copy reloc when creating a shared library. Don't
  4639. set copy_offset, just set ELF_LINK_HASH_NEEDS_COPY.
  4640. (elf32_sparc_allocate_dynamic_section): Remove.
  4641. (elf32_sparc_size_dynamic_sections): Look through all the sections
  4642. rather than assuming we know their names. Only add a DT_DEBUG
  4643. entry if not creating a shared library. Add a DT_TEXTREL entry if
  4644. required.
  4645. (elf32_sparc_relocate_section): Permit undefined symbols when
  4646. creating a shared library. Handle the special relocation types
  4647. specially.
  4648. (elf32_sparc_finish_dynamic_symbol): Create a PLT entry if plt_offset
  4649. is set. Only mark a PLT symbol as undefined if it was not defined
  4650. by a regular object file. Create a GOT entry if got_offset is
  4651. set. Create a copy reloc if ELF_LINK_HASH_NEEDS_COPY is set.
  4652. (elf32_sparc_finish_dynamic_sections): Store dynobj in a local
  4653. variable.
  4654. (elf_backend_check_relocs): Define.
  4655. Mon Jul 25 12:21:07 1994 Stan Shebs (shebs@andros.cygnus.com)
  4656. * configure.in (pc532mach_vec): Change to pc532machaout_vec.
  4657. * config.bfd (ns32k-*-netbsd*): Use ns32k-nbsd as bfd_name.
  4658. * Makefile.in (ALL_MACHINES): Add cpu-ns32k.o.
  4659. (BFD32_BACKENDS): Add aout-ns32k.o, netbsd532.o, m88kmach3.o,
  4660. pc532-mach.o.
  4661. * targets.c (pc532machaout_vec): Use instead of pc532mach_vec.
  4662. * config/pc532-mach.mt (DEFAULT_VECTOR): Ditto.
  4663. (SELECT_VECS): Remove.
  4664. * config/ns32k-nbsd.mt: New file, was ns32k-netbsd.mt.
  4665. * config/ns32k-netbsd.mt: Remove, name too long.
  4666. Fri Jul 22 11:07:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4667. * linker.c (generic_link_check_archive_element): When changing a
  4668. symbol to common, set the alignment.
  4669. (_bfd_generic_link_add_one_symbol): When creating a common symbol,
  4670. set the alignment.
  4671. * aoutx.h (aout_link_check_ar_symbols): When changing a symbol to
  4672. common, set the alignment.
  4673. (aout_link_add_symbols): Restrict the alignment of a common symbol
  4674. to the alignment power given by the architecture.
  4675. * libelf.h (struct elf_link_hash_entry): Remove align field. Add
  4676. copy_offset field.
  4677. * elfcode.h (elf_link_add_object_symbols): Store alignment in
  4678. new bfd_link_hash_entry field, not in elf_link_hash_entry field.
  4679. (elf_link_output_extsym): Similar change when getting alignment.
  4680. * elf.c (_bfd_elf_link_hash_newfunc): Don't initialize align. Do
  4681. initialize copy_offset.
  4682. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Use copy_offset
  4683. field rather than align field. Get alignment using bfd_log2
  4684. rather than switch.
  4685. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
  4686. * elf32-i386.c (elf_i386_finish_dynamic_symbol): Use copy_offset,
  4687. not align.
  4688. * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Likewise.
  4689. * aoutx.h (NAME(aout,some_aout_object_p)): Just check
  4690. STAT_FOR_EXEC, don't check MACH.
  4691. * m88kmach3.c (MACH): Don't define.
  4692. * config/i386-mach3.mt (TDEFINES): Define STAT_FOR_EXEC.
  4693. * config/m88k-mach3.mt (TDEFINES): Likewise.
  4694. * config/mips-mach3.mt (TDEFINES): Likewise.
  4695. Thu Jul 21 17:24:31 1994 Stan Shebs (shebs@andros.cygnus.com)
  4696. * i386mach3.c: Reverted to version from before Jul 5 1994 changes.
  4697. Thu Jul 21 12:26:01 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4698. * reloc.c (struct reloc_howto_struct): Remove special_function1.
  4699. It's the wrong way to do things.
  4700. (HOWTO): Change accordingly.
  4701. (HOWTO2): Remove.
  4702. (_bfd_final_link_relocate): Remove references to
  4703. special_function1.
  4704. * bfd-in2.h: Rebuilt.
  4705. * aoutx.h (aout_link_input_section_std): Remove references to
  4706. special_function1.
  4707. (aout_link_reloc_link_order): Likewise.
  4708. Wed Jul 20 15:46:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4709. * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add rpath
  4710. argument. If it is not NULL, use it to set DT_RPATH.
  4711. * bfd-in.h (bfd_elf32_size_dynamic_sections): Update prototype.
  4712. (bfd_elf64_size_dynamic_sections): Likewise.
  4713. * bfd-in2.h: Rebuilt.
  4714. Sat Jul 16 21:10:39 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4715. * elfcode.h (elf_get_dynamic_symtab_upper_bound): If there is no
  4716. dynamic symtab, return error.
  4717. * libelf.h (ELF_LINK_HASH_DEFINED_WEAK): Define.
  4718. * elfcode.h (elf_link_add_object_symbols): If symbol is defined as
  4719. weak, set ELF_LINK_HASH_DEFINED_WEAK.
  4720. (elf_link_output_extsym): If symbol is defined as weak, mark it
  4721. STB_WEAK.
  4722. * libelf.h (struct bfd_elf_section_data): Add relocs field.
  4723. (shdr_name): Remove; unused.
  4724. * elfcode.h (elf_slurp_reloc_table): Rewrote to handle both REL
  4725. and RELA relocs. Free up the unswapped relocs. Permit the relocs
  4726. to be cached in the section_data. Correct the reloc address.
  4727. (elf_slurp_reloca_table): Remove.
  4728. (elf_canonicalize_reloc): Rewrote.
  4729. (elf_link_input_bfd): Permit the relocs to be cached in the
  4730. section data.
  4731. Sat Jul 16 13:55:38 1994 Stan Shebs (shebs@andros.cygnus.com)
  4732. * config.bfd (m88*-harris-cxux*): Recognize.
  4733. * hosts/harris.h (POSIX_UTIME, HAVE_PROCFS): Define.
  4734. * configure.host (m68*-atari-sysv4*): New host.
  4735. (m68*-cbm-sysv4*): Use m68kv4 instead of amix.
  4736. * hosts/amix.h: Remove.
  4737. * hosts/m68kv4.h: New file, was amix.h.
  4738. Thu Jul 14 15:12:24 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  4739. * reloc.c (enum bfd_reloc_code_real, bfd_type, struct
  4740. reloc_howto_struct, reloc_howto_type, HOWTO, HOWTO2): Copied
  4741. changes over from bfd-in2.h so they get generated properly next
  4742. time someone runs "make headers".
  4743. * bfd-in2.h: Rebuilt.
  4744. * targets.c (netbsd532_vec, pc532mach_vec): Declare const.
  4745. (m88kmach3_vec): Restore deleted declaration.
  4746. * configure.in: Alphabetize target vector names.
  4747. * config/pc532mach.mh: New file.
  4748. (HDEPFILES, HDEFINES): Define here.
  4749. * config/pc532-mach.mt (HDEPFILES, HDEFINES): Deleted.
  4750. * config/ns32k-netbsd.mt (HDEPFILES, HDEFINES): Deleted.
  4751. Sun Jul 10 00:04:20 1994 Ian Dall (dall@hfrd.dsto.gov.au)
  4752. * pc532-mach.c: New File. pc532-mach a.out format.
  4753. * netbsd532.c: New file. pc532-netbsd532 a.out format.
  4754. * hosts/pc532mach.h: New file. pc532-mach host support.
  4755. * cpu-ns32k.c: New file. ns32k support cpu specific code rather
  4756. than format specific code.
  4757. * config/pc532-mach.mt: New file. Support for pc532-mach target.
  4758. * config/ns32k-netbsd.mt: New file. Support for netbsd532 target.
  4759. * aout-ns32k.c, aout-ns32k.h: New files supporting aout format for
  4760. ns32k series.
  4761. * targets.c: Add netbsd532_vec and pc532machaout_vec into
  4762. bfd_target_vector array. Move netbsd386_vec to alphabetic order
  4763. location.
  4764. * reloc.c (_bfd_final_link_relocate) Add support for
  4765. special_function1 in howto.
  4766. * libaout.h: add M_NS32032, M_NS32532, M_532_NETBSD entries in
  4767. machine_type enum.
  4768. * configure.in: add pc532mach_vec and netbsd532_vec entries.
  4769. * config.bfd: add pc532mach host entries. Use for both
  4770. ns32k-pc532-mach and ns32k-pc532-netbsd.
  4771. * config.bfd: it doesn't work to use i386-mach3 for ns32k*-*-mach.
  4772. add ns32k-pc532-mach* and ns32k-*-netbsd* entries.
  4773. * bfd-in2.h: Add ns32k specific relocations to bfd_reloc_code_real
  4774. enum.
  4775. * bfd-in2.h: Add special_function1 to struct howto. Change HOWTO
  4776. and NEWHOWTO macros to make special_function1 NULL. Neww HOWTO2
  4777. macro.
  4778. * bfd-in2.h: Split definition of struct reloc_howto_struct
  4779. and corresponding typedef into two statements.
  4780. * bfd-in2.h: Add entry bfd_arch_ns32k to bfd_architecture enum.
  4781. * archures.c: Add bfd_ns32k_arch prototype, and entry in
  4782. archures_init_table.
  4783. * aoutx.h (aout_link_reloc_link_order): Allow for target dependent
  4784. MY_put_reloc macro. Allow for target dependent special_function1
  4785. to apply the relocation.
  4786. * aoutx.h (aout_link_input_section_std): Allow for target
  4787. dependent determination of reloc howto. Allow for target dependent
  4788. special_function1 to apply the relocation.
  4789. * aoutx.h (get_reloc_upper_bound): Detect bss and return 0.
  4790. * aoutx.h (slurp_reloc_table): Detect bss and succesfully read
  4791. zero reloc entries.
  4792. * aoutx.h (machine_type): Add bfd_arch_ns32k case.
  4793. * aoutx.h: Stat to determine executable status if STAT_FOR_EXEC
  4794. is defined (not just MACH). Use fstat instead of stat and check
  4795. for fstat error.
  4796. * aoutx.h: Allow target dependent swap_std_reloc_{in,out}.
  4797. * aoutx.h: Allow CTORS reloc info to be in target dependent reloc
  4798. table.
  4799. * aout-target.h: Apply SWAP_MAGIC (if defined) after
  4800. swap_exec_header_in, otherwise we have magic in the wrong order.
  4801. Thu Jul 14 11:47:27 1994 Stan Shebs (shebs@andros.cygnus.com)
  4802. * coff-sparc.c (sparccoff_vec): Have leading underscores.
  4803. Tue Jul 12 12:08:10 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  4804. * aix386-core.c, aoutf1.h, cisco-core.c, elfcode.h, hppabsd-core.c,
  4805. hpux-core.c, irix-core.c, lynx-core.c, osf-core.c, ptrace-core.c,
  4806. rs6000-core.c, trad-core.c: Remove SEC_ALLOC flag from .reg
  4807. sections, .reg sections are not allocated and contain debug
  4808. information only.
  4809. * osf-core.c (make_bfd_asection, osf_core_core_file_p): Use
  4810. bfd_make_section_anyway instead of building unique section names.
  4811. Tue Jul 12 11:41:22 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4812. * libelf.h (bfd_elf32_swap_symbol_in): Declare.
  4813. (bfd_elf32_swap_symbol_out): Declare.
  4814. (bfd_elf64_swap_symbol_in, bfd_elf64_swap_symbol_out): Declare.
  4815. * elf32-hppa.c (elf32_hppa_args_hash_table_init): Correct cast.
  4816. * aout-encap.c (ARCH): Don't define. Obsolete.
  4817. * aout0.c, aoutx.h, gen-aout.c, hp300bsd.c, hp300hpux.c: Likewise.
  4818. * i386aout.c, i386bsd.c, i386dynix.c, i386linux.c: Likewise.
  4819. * i386lynx.c, m68klynx.c, mipsbsd.c, netbsd386.c: Likewise.
  4820. * newsos3.c, sparclynx.c, sunos.c: Likewise.
  4821. Mon Jul 11 20:08:23 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4822. * section.c (STD_SECTION): Make the sixth argument boolean, not
  4823. the seventh. From gary@tuva.pacsemi.oz.au (gary kopff).
  4824. Sun Jul 10 09:12:02 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
  4825. * aoutx.h (bfd_free_cached_info): Change name of FREE to BFCI_FREE
  4826. in order not to collide with LynxOS's definition of FREE in
  4827. /usr/include/sys/proc.h
  4828. Thu Jul 7 14:18:06 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4829. * reloc.c (bfd_perform_relocation): Don't clobber the relocation
  4830. value for coff-Intel-little or coff-Intel-big. Hack upon hack.
  4831. Thu Jul 7 10:10:34 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  4832. * aoutx.h (howto_table_std): Add entry for GOT relocations
  4833. which are present in sun3 shared libraries, to avoid assertions
  4834. when reading the dynamic relocations.
  4835. Thu Jul 7 10:19:20 1994 Jeff Law (law@snake.cs.utah.edu)
  4836. * som.h (R_HPPA_COMPLEX): Fix dumb typo.
  4837. Wed Jul 6 19:21:57 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4838. * hosts/sysv4.h (qsort, strtol): Don't declare.
  4839. * elfcode.h (elf_link_output_sym): Don't call output_symbol_hook
  4840. if it is NULL.
  4841. * elf32-mips.c (mips_elf_final_write_processing): Add ignored info
  4842. argument to correspond to recent libelf.h change.
  4843. Wed Jul 6 00:48:57 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  4844. * coff-alpha.c (alpha_ecoff_mkobject_hook): New hook to
  4845. additionally copy object type information from the alpha file
  4846. header to the BFD flags.
  4847. (alpha_ecoff_backend_data): Use it.
  4848. (ecoffalpha_little_vec): Add DYNAMIC to object_flags.
  4849. * aout64.c: Fix typo in conditional QMAGIC definition.
  4850. Wed Jul 6 00:13:17 1994 Jeff Law (law@snake.cs.utah.edu)
  4851. * hppabsd-core.c (hppabsd_core_core_file_p): Sanity check the
  4852. value of clicksz to help weed out non HPPA BSD core files.
  4853. Tue Jul 5 13:26:02 1994 Stan Shebs (shebs@andros.cygnus.com)
  4854. Mach 3 support.
  4855. * config.bfd (m88*-*-mach3*, mips*-dec-mach3*, mips*-*-mach3*):
  4856. New targets.
  4857. * configure.host (i[34]86-*-mach3*, ns32k-*-mach3*): Recognize
  4858. "mach3" instead of "mach".
  4859. (m88*-*-mach3*, mips*-dec-mach3*, mips*-*-mach3*): New hosts.
  4860. * targets.c (m88kmach3_vec): New target vector.
  4861. (bfd_target_vector): Add i386mach3_vec and m88kmach3_vec, but
  4862. inside #if 0.
  4863. * aoutx.h (some_aout_object_p) [MACH]: Recognize executables by
  4864. checking for execute permission, instead of looking at entry
  4865. point.
  4866. * i386mach3.c: Update, define MACH, N_TXTOFF, N_TXTADDR,
  4867. N_SHARED_LIB, don't include aout/*.h files, etc.
  4868. * m88kmach3.c: New file, m88k Mach 3 target.
  4869. * config/m88k-mach3.mt, config/mips-mach3.mt: New files, target
  4870. makefile fragments.
  4871. * config/i386mach3.mh, config/m88kmach3.mh, config/mipsmach3.mh:
  4872. New files, host makefile fragments.
  4873. * hosts/m88kmach3.h, hosts/mipsmach3.h: New files, host definitions.
  4874. Tue Jul 5 13:56:52 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4875. * elfcode.h (swap_out_syms): Get alignment of common symbol from
  4876. st_value field of saved ELF symbol information, if there is any.
  4877. Mon Jul 4 19:13:32 1994 Jeff Law (law@snake.cs.utah.edu)
  4878. * som.h (R_HPPA_COMPLEX): Define.
  4879. * elf32-hppa.h (R_HPPA_COMPLEX): Define.
  4880. (elf32_hppa_reloc_type): Delete R_PARISC_STUB_CALL_17.
  4881. Fri Jul 1 12:07:41 1994 Jeff Law (law@snake.cs.utah.edu)
  4882. * Support code for enabling the new style linker for PA ELF.
  4883. * elfcode.h (swap_symbol_in, swap_symbol_out): Externalize.
  4884. (elf_compute_section_file_positions): Pass link_info to
  4885. the begin_write_processing hook.
  4886. (bfd_elf_write_object_contents): Pass NULL for new link_info
  4887. argument to final_write_processing hook.
  4888. (elf_link_output_sym): Accept new "input_section" argument for
  4889. the symbols's input section. All callers changed. Call the
  4890. link_output_symbol_hook if it's defined.
  4891. (elf_bfd_final_link): Call the final_write_processing hook if
  4892. it's defined.
  4893. * libelf.h (elf_backend_link_output_symbol_hook): Declare.
  4894. (elf_backend_begin_write_processing): Add new "info" argument.
  4895. (elf_backend_final_write_processing): Likewise.
  4896. * elf32-target.h (elf_backend_link_output_symbol_hook): Provide
  4897. a default definition.
  4898. (elf32_bed): Add elf_backend_link_output_symbol_hook.
  4899. * elf64-target.h: Likewise.
  4900. * Major rework of the PA ELF code. Uses the new style BFD
  4901. linker, major cleanups.
  4902. * hppa_stubs.h: Rewrite from scratch. Much smaller and simpler.
  4903. * elf32-hppa.h: Delete all symbol extension related code.
  4904. (hppa_look_for_stubs_in_section): Delete decl.
  4905. (elf32_hppa_size_stubs, elf32_hppa_build_stubs): New decls.
  4906. * elf32-hppa.c: Symbol extension stuff moved form elf32-hppa.h
  4907. into elf32-hppa.c. Do not include aout64.h.
  4908. (typdef hppa_stub_type): Delete.
  4909. (elf32_hppa_stub_name_list_struct): Delete.
  4910. (elf32_hppa_stub_description_struct): Delete.
  4911. (arg_reloc_type): Use simpler enumerations. All references changed.
  4912. (arg_location, arg_reloc_relocation): Likewise.
  4913. (elf32_hppa_symextn_map_struct): Delete.
  4914. (get_symbol_value): Delete.
  4915. (elf32_hppa_get_sym_extn): Delete.
  4916. (find_stubs, new_stubs, type_of_mismatch): Delete.
  4917. (find_stub_by_name, add_stub_by_name): Delete.
  4918. (hppa_elf_stub_finish, hppa_elf_stub_reloc): Delete.
  4919. (hppa_elf_arg_reloc_needed): Renamed. Simplify.
  4920. (hppa_elf_build_linker_stub, hppa_elf_create_stub_sec): Delete.
  4921. (hppa_elf_long_branch_needed_p): Delete.
  4922. (hppa_look_for_stubs_in_section): Delete.
  4923. (hppa_elf_get_section_contents): Delete.
  4924. (elf32_hppa_backend_symbol_processing): Delete.
  4925. (elf32_hppa_backend_section_processing): Delete.
  4926. (elf32_hppa_backend_section_from_shdr): Delete.
  4927. (elf32_hppa_backend_fake_sections): Delete.
  4928. (elf32_hppa_backend_section_from_bfd_section): Delete.
  4929. (NEW_INSTRUCTION): Delete.
  4930. (CURRENT_STUB_OFFSET): Delete.
  4931. (elf32_hppa_relocate_section): New function.
  4932. (elf32_hppa_bfd_final_link_relocate): New function.
  4933. (elf32_hppa_size_symext): New function.
  4934. (elf32_hppa_link_output_symbol_hook): New function.
  4935. (elf32_hppa_read_symext_info): New function.
  4936. (elf32_hppa_add_symbol_hook): New function.
  4937. (elf32_hppa_name_of_stub): New function.
  4938. (elf32_hppa_size_of_stub): New function.
  4939. (elf32_hppa_build_one_sub): New function.
  4940. (elf32_hppa_build_stubs): New function.
  4941. (elf32_hppa_size_stubs): New function.
  4942. (linker, stub and argument hash tables): Add appropriate
  4943. structures, definitions and functions to implement all three
  4944. hash tables.
  4945. (hppa_elf_relocate_insn): Don't need argument location information
  4946. in this function.
  4947. (add_entry_to_symext_chain): Accept a symbol's argument location
  4948. information rather than the symbol itself. All callers changed.
  4949. (hppa_elf_gen_reloc_type): Simplify.
  4950. (hppa_elf_set_section_contents): Stub section is no longer special.
  4951. (hppa_elf_reloc): Greatly simplify.
  4952. (elf32_hppa_begin_write_processing): Accept link_info argument.
  4953. Handle being called from the BFD backend linker.
  4954. (elf32_hppa_final_write_processing): Likewise.
  4955. (elf_hppa_tc_make_sections): No longer call stub_finish.
  4956. Mon Jun 27 18:07:06 1994 Steve Chamberlain (sac@cirdan.cygnus.com)
  4957. * section.c (bfd_get_section_contents): Put in parens to get
  4958. precedence right.
  4959. Sun Jun 26 18:08:29 1994 Jeff Law (law@snake.cs.utah.edu)
  4960. * libelf.h (relocate_section): New argument "output_names" added
  4961. to prototype.
  4962. * elfcode.h (elf_link_input_bfd): New argument "output_names"
  4963. added to prototype of relocate_section. Pass the output symbol
  4964. names to relocate_section.
  4965. * elf32-i386.c (elf_i386_relocate_section): Use "output_names" to
  4966. determine the name of a local symbol.
  4967. * elf32-mips.c (mips_elf_relocate_section): Likewise.
  4968. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  4969. Fri Jun 24 08:15:42 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  4970. Add Solaris BCP (the part of Solaris which allows it to run
  4971. SunOS4 a.out files) core file handling.
  4972. * aoutf1.h (external_solaris_bcp_core, swapcore_solaris_bcp):
  4973. New structure and its swap in function.
  4974. (internal_sunos_core): New member c_data_addr, to receive the
  4975. start address of the data section in the core file.
  4976. (swapcore_sun3, swapcore_sparc, sunos4_core_file_p): Use it.
  4977. (sunos4_core_file_p): Recognize Solaris BCP core file.
  4978. (sunos4_core_file_matches_executable_p): Always indicate match
  4979. for Solaris BCP core files.
  4980. Thu Jun 23 15:31:28 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  4981. Preliminary support for generating shared libraries, from Eric
  4982. Youngdale <ericy@cais.cais.com>.
  4983. * elfcode.h (prep_headers): If DYNAMIC, set e_type to ET_DYN.
  4984. (elf_link_add_object_symbols): If generating a shared library,
  4985. create dynamic sections for first input BFD with the right format.
  4986. (elf_link_create_dynamic_sections): Don't create .interp section
  4987. if creating a shared library.
  4988. (elf_link_input_bfd): Skip dynamic sections in input file.
  4989. (elf_bfd_final_link): If creating a shared library, it's OK for
  4990. dynobj to have sections which are not SEC_IN_MEMORY.
  4991. * elf32-i386.c (elf_i386_size_dynamic_sections): Only set .interp
  4992. section if not creating a shared library.
  4993. * elf32-sparc.c (elf_sparc_size_dynamic_sections): Likewise.
  4994. * elfcode.h (elf_object_p): Don't set DYNAMIC just because there
  4995. is an SHT_DYNAMIC section.
  4996. * cf-i386lynx.c (i386coff_vec): Don't include DYNAMIC in
  4997. object_flags.
  4998. * coff-sparc.c (sparccoff_vec): Likewise.
  4999. * hppabsd-core.c (hppabsd_core_vec): Likewise.
  5000. * aoutx.h (NAME(aout,some_aout_object_p)): Don't set SEC_RELOC
  5001. just because DYNAMIC is set.
  5002. Thu Jun 23 12:53:41 1994 David J. Mackenzie (djm@rtl.cygnus.com)
  5003. * configure.in: Change --with-targets to --enable-targets and
  5004. --with-64-bit-bfd to --enable-64-bit-bfd.
  5005. * Makefile.in, mpw-make.in, targets.c: Change comments.
  5006. Wed Jun 22 17:59:59 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  5007. * config.bfd (powerpc-*-elf*): New target, just like
  5008. powerpc-*-sysv4*.
  5009. * linker.c (FAIL): Undefine macro before defining as enum.
  5010. Wed Jun 22 10:52:47 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  5011. * linker.c (_bfd_generic_link_add_archive_symbols): Initialize
  5012. pass from abfd->archive_pass, and save it there as well.
  5013. * hash.c (bfd_hash_allocate): Don't call bfd_set_error if
  5014. obstack_alloc returns NULL unless the size is non-zero.
  5015. * linker.c (archive_hash_allocate): Define.
  5016. (_bfd_generic_link_add_archive_symbols): Use archive_hash_allocate
  5017. rather than obstack_alloc, for clarity.
  5018. * elfcode.h (elf_get_reloc_upper_bound): Correct.
  5019. * aout64.c (BMAGIC, QMAGIC): Define if not already defined. From
  5020. Peter Schauer <pes@regent.e-technik.tu-muenchen.de>.
  5021. Linux ZMAGIC support from Eric Youngdale <ericy@cais.cais.com>.
  5022. * libaout.h (struct aoutdata): Add field zmagic_disk_block_size.
  5023. * aout-target.h (MY(callback)): Only set alignment according to
  5024. architecture if the section sizes are aligned to that alignment,
  5025. for backward compatibility.
  5026. (MY(set_sizes)): Initialize zmagic_disk_block_size field.
  5027. * aoutx.h (adjust_z_magic): Set ztih if using q_magic_format. Set
  5028. text section filepos to zmagic_disk_block_size if not ztih. Use a
  5029. different padding algorithm if not ztih.
  5030. * i386linux.c (MY_text_includes_header): Don't define.
  5031. * aoutx.h (aout_link_check_ar_symbols): Just skip N_STAB and N_FN
  5032. symbols; don't look them up in the hash table. From
  5033. ralphc@pyramid.com (Ralph Campbell).
  5034. Tue Jun 21 11:47:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  5035. * coff-go32.c (go32coff_archive_p): Remove unused function.
  5036. * section.c (bfd_abs_section): Make const.
  5037. (bfd_abs_section_ptr, bfd_is_abs_section): Define.
  5038. (bfd_und_section): Make const.
  5039. (bfd_und_section_ptr, bfd_is_und_section): Define.
  5040. (bfd_com_section): Make const.
  5041. (bfd_com_section_ptr): Define.
  5042. (bfd_ind_section): Make const.
  5043. (bfd_ind_section_ptr, bfd_is_ind_section): Define.
  5044. (bfd_abs_symbol, bfd_com_symbol): Make const.
  5045. (bfd_und_symbol, bfd_ind_symbol): Likewise.
  5046. (global_syms): Cast initialization of section field.
  5047. (STD_SECTION): Define as const, and cast initializations.
  5048. * bfd-in2.h: Rebuilt.
  5049. * Many files: Change uses of bfd_abs_section, etc., to use
  5050. bfd_abs_section_ptr or bfd_is_abs_section, etc.
  5051. Mon Jun 20 11:06:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
  5052. * Many files: change all bfd_target vectors to be const. Change
  5053. all uses of bfd_target * to be const bfd_target *. Change
  5054. bfd_target_vector and bfd_default_vector arrays to be const
  5055. bfd_target * const *.
  5056. * ecoff.c, libecoff.h, ecoffswap.h, coff-alpha.c, coff-mips.c,
  5057. elf32-mips.c: Renamed all externally visible ECOFF routines which
  5058. are local to BFD to start with _bfd_ecoff instead of just ecoff.
  5059. * ecoff.c (ecoff_swap_tir_in): Change input argument to const.
  5060. (ecoff_swap_tir_out): Likewise.
  5061. (ecoff_swap_rndx_in, ecoff_swap_rndx_out): Likewise.
  5062. (ecoff_slurp_symbolic_info): Add new arguments to correspond to
  5063. read_debug_info entry point in ecoff_debug_swap structure.
  5064. Change all calls.
  5065. * libecoff.h (ecoff_slurp_symbolic_info): Change declaration.
  5066. * ecoffswap.h (ecoff_swap_tir_in, ecoff_swap_tir_out): Declare.
  5067. (ecoff_swap_rndx_in, ecoff_swap_rndx_out): Declare.
  5068. * coff-alpha.c (alpha_ecoff_backend_data): Initialize new
  5069. ecoff_debug_swap fields.
  5070. * coff-mips.c (mips_ecoff_backend_data): Likewise.
  5071. * elf32-mips.c (mips_elf_read_ecoff_info): Undefine READ.
  5072. (mips_elf_ecoff_debug_swap): Initialize new ecoff_debug_swap
  5073. fields.
  5074. * configure.in (bfd_elf32_bigmips_vec): Use ecoff.o and
  5075. ecofflink.o.
  5076. (bfd_elf32_littlemips_vec): Likewise.
  5077. (ecoff_big_vec, ecoff_little_vec): Likewise.
  5078. (ecoffalpha_little_vec): Likewise.
  5079. * Makefile.in (BFD_LIBS): Remove ecoff.o and ecofflink.o.
  5080. (BFD32_BACKENDS): Add ecoff.o and ecofflink.o.
  5081. * aoutx.h (NAME(aout,final_link)): Check flavour of sub, not abfd,
  5082. when computing reloc sizes. From Eric Youngdale
  5083. <ericy@cais.cais.com>.
  5084. * elfcode.h (elf_bfd_final_link): Don't try to compute maximum
  5085. reloc count or size for a non-ELF file.
  5086. * mipsbsd.c (MY_final_link_callback): Define to avoid warning.
  5087. * hp300hpux.c (MY_final_link_callback): Define to avoid warning.
  5088. (BMAGIC, QMAGIC): Define; used by aoutx.h.
  5089. (MY(slurp_symbol_table)): Change translate_from_native_sym_flags
  5090. calls to use new parameters.
  5091. Fri Jun 17 14:45:32 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5092. * aout-target.h (MY(callback)): Set the alignments of the text,
  5093. data and bss sections after determining the architecture.
  5094. * sunos.c (sunos_add_one_symbol): Treat a common symbol from a
  5095. dynamic object as being in the .bss section of the object, rather
  5096. than as being undefined.
  5097. Fri Jun 17 11:16:50 1994 Jeff Law (law@snake.cs.utah.edu)
  5098. * libhppa.h (bfd_hppa_insn2fmt, hppa_rebuild_insn): Make INLINE.
  5099. * elf32-hppa.h (elf_hppa_final_processing): Delete decl.
  5100. Thu Jun 16 23:36:23 1994 Jeff Law (law@snake.cs.utah.edu)
  5101. * elfcode.h (elf_link_input_bfd): Don't try to read local symbols
  5102. if there aren't any in the input file.
  5103. Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
  5104. * i386linux.c: Many new functions and definitions for linker
  5105. support for Linux shared libraries.
  5106. * bfd-in.h (bfd_linux_size_dynamic_sections): Declare.
  5107. * bfd-in2.h: Rebuild.
  5108. Thu Jun 16 14:23:46 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5109. * config.bfd: If second argument is ``_'', then, instead of
  5110. echoing config file name, echo whether target uses leading
  5111. underscores on symbol names. Add appropriate settings to
  5112. different cases. Used by binutils/configure.in to set default for
  5113. c++filt.
  5114. * elfcode.h (elf_bfd_final_link): If trying to generate a shared
  5115. object, warn and return false.
  5116. * aoutx.h (NAME(aout,some_aout_object_p)): Accept BMAGIC objects
  5117. and treat them as OMAGIC.
  5118. Wed Jun 15 18:02:21 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  5119. Enable sparc v9 support for release. Note that this is still a
  5120. work in progress, pending release of an ABI specification.
  5121. * config.bfd, configure.in: Include sparc v9 elf config.
  5122. * elfcode.h (prep_headers): Handle sparc v9 (64 bit).
  5123. * reloc.c (bfd_reloc_code_real): New reloc types.
  5124. * elf64-sparc.c: Implement elf64-sparc target.
  5125. * Makefile.in, targets.c: Updated.
  5126. Wed Jun 15 01:34:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5127. * libelf.h (struct elf_obj_tdata): New field dt_needed_name.
  5128. (elf_dt_needed_name): New accessor macro.
  5129. * elfcode.h (elf_link_add_object_symbols): If elf_dt_needed_name
  5130. is set, use that instead of the filename for the DT_NEEDED dynamic
  5131. entry.
  5132. * elf.c (bfd_elf_set_dt_needed_name): New function.
  5133. * bfd-in.h (bfd_elf_set_dt_needed_name): Declare.
  5134. * bfd-in2.h: Rebuilt.
  5135. * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add sinterpptr
  5136. argument, and set it to the .interp section.
  5137. * bfd-in.h (bfd_elf32_size_dynamic_sections): Update prototype.
  5138. (bfd_elf64_size_dynamic_sections): Likewise.
  5139. * bfd-in2.h: Rebuilt.
  5140. * coff-sparc.c (SWAP_OUT_RELOC_EXTRA): Define to clear the r_spare
  5141. field of the reloc rather than letting it be garbage.
  5142. * archive.c (bfd_slurp_armap): Recognize __.SYMDEF/ as well as
  5143. __.SYMDEF; the former was used in old Linux archives. From
  5144. jrs@world.std.com (Rick Sladkey).
  5145. * i386linux.c (i386linux_write_object_contents): Define; like
  5146. MY(write_object_contents) in aout-target.h, but set MACHTYPE to
  5147. M_386. From jrs@world.std.com (Rick Sladkey).
  5148. (MY_write_object_contents): Define.
  5149. * aoutx.h (translate_from_native_sym_flags): Treat N_SETV symbols
  5150. as N_DATA symbols.
  5151. (aout_link_add_symbols): Likewise.
  5152. * aoutx.h: Rewrite symbol duplicate elimination to use BFD hash
  5153. tables.
  5154. (struct stringtab_entry, struct stringtab_data): Remove.
  5155. (HASHMAXLEN, HASH_CHAR, hash, compare, log2, emit_strtab): Remove.
  5156. (struct strtab_hash_entry, struct strtab_hash): Define.
  5157. (strtab_hash_newfunc, strtab_hash_lookup): Define.
  5158. (stringtab_free, emit_stringtab): Define.
  5159. (stringtab_init, add_to_stringtab): Rewrite.
  5160. (NAME(aout,write_syms)): Use new stringtab code.
  5161. (struct aout_final_link_info, NAME(aout,final_link)): Likewise.
  5162. (aout_link_write_symbols, aout_link_write_other_symbol): Likewise.
  5163. * bfd-in.h (BFD_TRADITIONAL_FORMAT): Define new BFD flag to
  5164. request BFD to write object in the traditional format, whatever
  5165. that means for the particular backend.
  5166. * bfd-in2.h: Rebuilt.
  5167. * hash.c (bfd_hash_allocate): If obstack_alloc fails, set
  5168. bfd_error_no_memory.
  5169. Tue Jun 14 13:00:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5170. * libaout.h (struct aoutdata): Add q_magic_format to subformat
  5171. enum.
  5172. * aout-target.h (MY_bfd_copy_private_bfd_data): Define as function
  5173. if not already defined. Copy subformat information.
  5174. (MY_text_includes_header): Define as 0 if not already defined.
  5175. (MY(backend_data)): Use MY_text_includes_header rather than 0.
  5176. (MY_final_link_callback): Rename from final_link_callback, and
  5177. define only if MY_final_link_callback is not already defined.
  5178. (MY_bfd_final_link): Rename use of final_link_callback to
  5179. MY_final_link_callback.
  5180. * aoutx.h (NAME(aout,some_aout_object_p)): Handle QMAGIC like
  5181. ZMAGIC, but set the subformat to q_magic_format. Abort if the
  5182. magic number if not recognized.
  5183. (adjust_z_magic): Use QMAGIC if q_magic_format.
  5184. * i386linux.c (MY_text_includes_header): Define as 1.
  5185. (i386linux_bfd_final_link): New static function.
  5186. (MY_bfd_final_link): Define as i386linux_bfd_final_link.
  5187. * aoutx.h (translate_to_native_sym_flags): Check both section and
  5188. output_section against sections of abfd.
  5189. * libecoff.h (struct ecoff_link_hash_entry): Change type of
  5190. written from boolean to char. Add new field small.
  5191. * ecoff.c (ecoff_link_hash_newfunc): Initialize written to 0
  5192. rather than false. Initialize small to 0.
  5193. (ecoff_link_add_externals): If ECOFF type is scSUndefined, set
  5194. small. If small is set, and hash table type is common, force the
  5195. symbol into a section named SCOMMON and change the ECOFF type from
  5196. scCommon to scSCommon.
  5197. (ecoff_link_write_external): Set written to 1 rather than true.
  5198. * coff-mips.c (mips_relocate_section): Correct JMPADDR reloc
  5199. overflow check to consider section VMA of input file.
  5200. Mon Jun 13 14:20:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5201. * aoutf1.h (aout_32_sunos4_write_object_contents): Handle a
  5202. machine type of 68000.
  5203. * aoutx.h (NAME(aout,machine_type)): Add new argument unknown.
  5204. Set *unknown to true if machine type is really unknown, as opposed
  5205. to M_UNKNOWN for the 68000.
  5206. (NAME(aout,set_arch_mach)): Change NAME(aout,machine_type) call
  5207. accordingly.
  5208. * libaout.h (NAME(aout,machine_type)): Add new argument to
  5209. prototype.
  5210. Sun Jun 12 20:21:03 1994 Jeff Law (law@snake.cs.utah.edu)
  5211. * som.c (EXEC_AUX_ID): Define based on availablity of HPUX_AUX_ID
  5212. or HIUX_AUX_ID.
  5213. (som_begin_writing): Use EXEC_AUX_ID instead of HPUX_AUX_ID.
  5214. (som_write_armap): Use CPU_PA_RISC1_0 as the magic number. Note
  5215. som.c is careful to always define CPU_PA_RISC1_0.
  5216. Sat Jun 11 16:32:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5217. Add weak symbols as an extension to a.out.
  5218. * aoutx.h (sym_in_text_section): Don't define.
  5219. (sym_in_data_section, sym_in_bss_section): Likewise.
  5220. (sym_is_undefined, sym_is_global_defn): Likewise.
  5221. (sym_is_debugger_info, sym_is_fortrancommon): Likewise.
  5222. (sym_is_absolute, sym_is_indirect): Likewise.
  5223. (translate_from_native_sym_flags): Rewrite for clarity. Rearrange
  5224. arguments and change caller. Handle weak symbols.
  5225. (translate_to_native_sym_flags): Likewise.
  5226. (aout_link_check_ar_symbols): Don't ignore weak symbols. Pull
  5227. object in from archive if a weak defintion is found for an
  5228. existing undefined symbol.
  5229. (aout_link_add_symbols): Put all cases in switch. Set flags of an
  5230. undefined symbol to 0. Handle weak symbols.
  5231. (aout_link_write_symbols): Handle weak symbols.
  5232. (aout_link_write_other_symbol): Likewise.
  5233. (aout_link_input_section_std): Likewise.
  5234. (aout_link_input_section_ext): Likewise.
  5235. * sunos.c (sunos_write_dynamic_symbol): Likewise.
  5236. Fri Jun 10 13:25:13 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5237. * aoutx.h (NAME(aout,canonicalize_reloc)): Handle .bss section.
  5238. (NAME(aout,get_reloc_upper_bound)): Likewise.
  5239. * coff-i960.c (coff_i960_reloc_type_lookup): Add BFD_RELOC_CTOR.
  5240. * linker.c (_bfd_generic_link_write_global_symbol): Don't assume
  5241. the section of a common symbol is not NULL.
  5242. Wed Jun 8 23:15:53 1994 Stu Grossman (grossman@cygnus.com)
  5243. * nlmcode.h (nlm_object_p): Set EXEC_P and start address for GDB.
  5244. Wed Jun 8 23:57:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5245. * aoutx.h (aout_get_external_symbols): Don't try to read the
  5246. strings if there are no symbols.
  5247. (aout_link_write_other_symbol): Use the output section when
  5248. working out the type.
  5249. Tue Jun 7 13:25:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5250. * elfcode.h (assign_section_numbers): Put shstrtab, symtab and
  5251. strtab sections at end of file. Avoids bug in some versions of
  5252. SVR4 strip. From Eric Youngdale <eric@tantalus.nrl.navy.mil>.
  5253. * coffcode.h (styp_to_sec_flags): If COFF_PAGE_SIZE is defined,
  5254. set SEC_DEBUGGING for STYP_INFO sections.
  5255. (coff_compute_section_file_positions): If COFF_PAGE_SIZE is
  5256. defined, and D_PAGED is set, set the file position equal to the
  5257. section VMA modulo COFF_PAGE_SIZE.
  5258. * coffgen.c (coff_real_object_p): If F_EXEC is set, set D_PAGED.
  5259. * coff-i386.c: Set D_PAGED in BFD target.
  5260. (COFF_PAGE_SIZE): Define.
  5261. * coff-m68k.c, coff-sparc.c: Likewise.
  5262. Mon Jun 6 10:57:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5263. * elfcode.h (bfd_section_from_shdr): Don't turn a reloc section
  5264. into a BFD section just because SHF_ALLOC is set; require that it
  5265. not use the normal symbol table.
  5266. (elf_section_from_bfd_section): Corresponding change.
  5267. Better indirect and warning symbol handling inspired by Stuart
  5268. Quick <stuck@cs.man.ac.uk>.
  5269. * linker.c (enum link_action): Add REF, MIND, CWARN, REFC.
  5270. (link_action): Change UNDEF_ROW/def and UNDEFW_ROW/def from NOACT
  5271. to REF. Change UNDEF_ROW/indr and UNDEFW_ROW/indr from CYCLE to
  5272. REFC. Change DEF_ROW/indr and COMMON_ROW/indr from CYCLE to MDEF.
  5273. Change DEFW_ROW/indr from CYCLE to NOACT. Change INDR_ROW/indr
  5274. from MDEF to MIND. Change INDR_ROW/warn from WARNC to CYCLE.
  5275. Change WARN_ROW/def and WARN_ROW/indr from MWARN to CWARN. Change
  5276. WARN_ROW/com from MWARN to WARN. Change WARN_ROW/warn from NOACT
  5277. to CYCLE. Change SET_ROW/warn from WARNC to CYCLE>
  5278. (_bfd_generic_link_add_one_symbol): Handle REF, MIND, CWARN and
  5279. REFC. If a new indirect symbol has been referenced, push the
  5280. reference down to the symbol it points to. FIx handling of WARN.
  5281. * aoutx.h (translate_from_native_sym_flags): If N_WARNING, don't
  5282. clobber e_type of next symbol.
  5283. (translate_to_native_sym_flags): Likewise.
  5284. (aout_link_write_symbols): Loop on bfd_link_hash_warning as well
  5285. as bfd_link_hash_indirect.
  5286. * libaout.h (struct aout_link_hash_entry): New field written.
  5287. * aoutx.h (NAME(aout,link_hash_newfunc)): Initialize written.
  5288. (aout_link_write_symbols): Use written, not root.written.
  5289. (aout_link_write_other_symbol): Likewise.
  5290. * sunos.c (sunos_scan_dynamic_symbol): Likewise.
  5291. * libecoff.h (struct ecoff_link_hash_entry): New field written.
  5292. * ecoff.c (ecoff_link_hash_newfunc): Initialize written.
  5293. (ecoff_link_write_external): use written, not root.written.
  5294. * genlink.h (struct generic_link_hash_entry): New field written.
  5295. * linker.c (_bfd_link_hash_newfunc): Don't initialize written.
  5296. (generic_link_hash_newfunc): Initialize written.
  5297. (_bfd_generic_link_output_symbols): Use written, not root.written.
  5298. (_bfd_generic_link_write_global_symbol): Likewise.
  5299. (_bfd_generic_reloc_link_order): Likewise.
  5300. * libecoff.h (ecoff_data_type): Add linker field.
  5301. * ecoff.c (ecoff_write_object_contents): Check new tdata linker
  5302. field, rather than outsymbols being non-NULL, to decide whether to
  5303. output the symbols and relocs.
  5304. (ecoff_bfd_final_link): Set new tdata linker field to true.
  5305. * ecoff.c (ecoff_bfd_copy_private_bfd_data): Don't try to copy
  5306. data to a non-ECOFF file.
  5307. * libbfd-in.h: Add warning that libbfd.h is a generated file.
  5308. * libbfd.h: Rebuilt.
  5309. Sun Jun 5 15:02:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5310. Changes to support ELF strip and objcopy on dynamically linked
  5311. files.
  5312. * elfcode.h (elf_fake_sections): Add prototype.
  5313. (bfd_section_from_shdr): Make a BFD section from an SHT_HASH
  5314. section, and from an SHT_DYNSYM section, and from the dynamic
  5315. string table section.
  5316. (elf_object_p): Set D_PAGED if there is a program header.
  5317. (elf_make_sections): Remove.
  5318. (fix_up_strtabs): Remove.
  5319. (elf_fake_sections): Rewrite. Now sets sh_entsize.
  5320. (assign_section_numbers): Rewrite. Now sets sh_link and sh_info
  5321. for all sections.
  5322. (elf_compute_section_file_positions): Don't call obsolete
  5323. functions elf_make_sections or fix_up_strtabs.
  5324. (swap_out_syms): Set sh_addralign to FILE_ALIGN rather than 4.
  5325. (NAME(bfd_elf,write_object_contents)): Permit writing DYNAMIC
  5326. objects.
  5327. (elf_section_from_bfd_section): Treat SHT_DYNSYM like other normal
  5328. sections. If an SHT_REL or SHT_RELA section is allocated or uses
  5329. an unusual symbol table, permit a BFD section to map to it.
  5330. Permit most SHT_STRTAB sections to have a BFD section mapped to
  5331. them.
  5332. (elf_bfd_final_link): Don't set sh_link, sh_info or sh_entsize
  5333. fields of dynamic sections here; do it in assign_section_numbers.
  5334. * elf32-target.h, elf64-target.h: Add D_PAGED to permitted object
  5335. flags.
  5336. * elf.c (_bfd_elf_make_section_from_shdr): Only set SEC_DATA if
  5337. SEC_LOAD is set, rather than checking SEC_ALLOC.
  5338. * libbfd-in.h (bfd_realloc): Change last arg to "size_t size".
  5339. Fri Jun 3 10:58:02 1994 Jeff Law (law@snake.cs.utah.edu)
  5340. * som.c (som_write_object_contents): Don't compute the file header's
  5341. checksum here.
  5342. (som_write_headers): Instead do it here.
  5343. * libbfd.h (bfd_realloc): Change last arg to "size_t size".
  5344. Thu Jun 2 17:39:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5345. * hosts/sun3.h: Include <stdlib.h>. Don't declare free, exit or
  5346. getenv.
  5347. Add linker support for SunOS shared libraries.
  5348. * sunos.c: Include bfdlink.h. Add many new functions and
  5349. definitions for SunOS shared library support.
  5350. * bfd-in.h (bfd_sunos_record_link_assignment): Declare.
  5351. (bfd_sunos_size_dynamic_sections): Declare.
  5352. * bfd-in2.h: Rebuilt.
  5353. * aoutx.h (struct aout_link_hash_entry): Move to libaout.h.
  5354. (struct aout_link_hash_table): Likewise.
  5355. (aout_link_hash_lookup, aout_link_hash_traverse): Likewise.
  5356. (aout_hash_table): Likewise.
  5357. (NAME(aout,link_hash_newfunc)): Rename from aout_link_hash_newfunc
  5358. and make externally visible.
  5359. (NAME(aout,link_hash_table_init)): New function.
  5360. (NAME(aout,link_hash_table_create)): Call
  5361. NAME(aout,link_hash_table_init), not _bfd_link_hash_table_init.
  5362. (aout_link_add_symbols): Don't fail if no symbols. If it exists,
  5363. call add_dynamic_symbols backend entry point for dynamic objects.
  5364. Use add_one_symbol backend entry point if it exists.
  5365. (NAME(aout,final_link)): Call finish_dynamic_link backend entry
  5366. point, if it exists.
  5367. (aout_link_input_bfd): For a dynamic object, call
  5368. link_dynamic_object backend entry point, if it exists.
  5369. (aout_link_write_other_symbol): Call write_dynamic_symbol backend
  5370. entry point, if it exists.
  5371. (aout_link_input_section): Don't read the relocs if they have
  5372. already been read.
  5373. (aout_link_input_section_std): When doing a final link, for a
  5374. reloc against an external symbol, call check_dynamic_reloc backend
  5375. entry point, if it exists.
  5376. (aout_link_input_section_ext): Likewise.
  5377. * libaout.h: Protect against multiple inclusion. Include
  5378. bfdlink.h.
  5379. (struct aout_link_hash_entry): Move in from aoutx.h.
  5380. (struct aout_link_hash_table): Likewise.
  5381. (aout_link_hash_lookup, aout_link_hash_traverse): Likewise.
  5382. (aout_hash_table): Likewise.
  5383. (struct aout_backend_data): Add fields add_dynamic_symbols,
  5384. add_one_symbol, link_dynamic_object, write_dynamic_symbol,
  5385. check_dynamic_reloc, and finish_dynamic_link.
  5386. (struct aout_section_data_struct): Define new structure.
  5387. (aout_section_data): Define new accessor macro.
  5388. (NAME(aout,link_hash_newfunc)): Declare.
  5389. (NAME(aout,link_hash_table_init)): Declare.
  5390. * aoutf1.h (sunos4_aout_backend): Initialize new aout_backend_data
  5391. fields.
  5392. * aout-target.h (MY(backend_data)): Likewise.
  5393. * i386aout.c (MY(backend_data)): Likewise.
  5394. * i386mach3.c (MY(backend_data)): Likewise.
  5395. * mipsbsd.c (MY(backend_data)): Likewise.
  5396. * sparclynx.c (sparclynx_aout_backend): Likewise.
  5397. * aoutx.h (NAME(aout,slurp_symbol_table)): Don't zero out cached
  5398. until we know it is non-NULL.
  5399. (aout_link_write_symbols): Don't skip a warning symbol even if it
  5400. has already been written out. If skipping an indirect symbol,
  5401. skip the next symbol as well.
  5402. Wed Jun 1 14:37:50 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5403. * hosts/sun3.h: Don't declare qsort, malloc or realloc.
  5404. Thu May 26 13:56:03 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  5405. * nlmcode.h (nlm_swap_auxiliary_headers_in): Cast bfd_byte pointer
  5406. to char pointer to avoid compiler warnings.
  5407. * dep-in.sed: Remove spaces before colons.
  5408. Merged changes back in from FSF gas release 2.3:
  5409. * Makefile.in (stmp-bfd.h): Wrap `if' block around grep
  5410. invocation, to avoid a bug in BSD 4.4 make.
  5411. From Ralph Campbell:
  5412. * mipsbsd.c (mips_fix_jmp_addr): If symbol is undefined, return an
  5413. error.
  5414. (mips_fix_hi16_s): Ditto.
  5415. Fri May 13 21:21:00 1994 DJ Delorie (dj@ctron.com)
  5416. * makefile.dos: define a default target, or archives won't work
  5417. due to multiple matches.
  5418. Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
  5419. * configure.bat: update for latest files
  5420. * makefile.dos: update for correct targets and sources
  5421. * coff-go32.c: [new] go32's COFF format (i386coff with underscores)
  5422. * targets.c: add go32coff target
  5423. * makefile.in: add coff-go32.c support
  5424. Thu May 26 10:10:21 1994 Jeff Law (law@snake.cs.utah.edu)
  5425. * som.c (som_prep_headers): Do not set the system_id here, private
  5426. bfd data has not been copied yet.
  5427. (som_write_headers): Instead do it here.
  5428. Tue May 24 16:17:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5429. Make MIPS ELF use new ELF backend linker. No shared library
  5430. support yet.
  5431. * elf32-mips.c (bfd_mips_elf32_swap_gptab_in): New function.
  5432. (bfd_mips_elf32_swap_gptab_out): New function.
  5433. (mips_elf_object_p): If last symbol is LOCAL, set elf_bad_symtab.
  5434. (mips_elf_final_write_processing): Set sh_info field for .gptab.*
  5435. sections.
  5436. (mips_elf_fake_sections): Set sh_entsize for .gptab.* sections.
  5437. (mips_elf_read_ecoff_info): Read and free external symbols last,
  5438. not first, for clarity.
  5439. (struct mips_elf_link_hash_entry): Define new structure.
  5440. (struct mips_elf_link_hash_table): Define new structure.
  5441. (mips_elf_link_hash_lookup): Define new macro.
  5442. (mips_elf_link_hash_traverse): Define new macro.
  5443. (mips_elf_hash_table): Define new macro.
  5444. (mips_elf_link_hash_newfunc): New static function.
  5445. (mips_elf_link_hash_table_create): New static function.
  5446. (mips_elf_add_symbol_hook): New static function.
  5447. (struct extsym_info): Define new structure.
  5448. (mips_elf_get_extr, mips_elf_set_index): Remove.
  5449. (mips_elf_output_extsym): New static function.
  5450. (gptab_compare): New static function.
  5451. (mips_elf_final_link): Rewrite to use ELF backend linker, and to
  5452. merge gptab information in input files.
  5453. (mips_elf_relocate_hi16): New static function.
  5454. (mips_elf_relocate_section): New static function.
  5455. (bfd_elf32_bfd_link_hash_table_create): Define as macro before
  5456. including elf32-target.h.
  5457. (elf_backend_relocate_section): Likewise.
  5458. (elf_backend_add_symbol_hook): Likewise.
  5459. * elf.c (_bfd_elf_link_hash_newfunc): Rename from
  5460. elf_link_hash_newfunc and make globally visible. Change caller.
  5461. (_bfd_elf_link_hash_table_init): New function, broken out of
  5462. _bfd_elf_link_hash_table_create.
  5463. (_bfd_elf_link_hash_table_create): Use
  5464. _bfd_elf_link_hash_table_init.
  5465. * libelf.h (struct elf_obj_tdata): Add new field bad_symtab.
  5466. (elf_bad_symtab): Define new accessor macro.
  5467. (_bfd_elf_link_hash_newfunc): Declare.
  5468. (_bfd_elf_link_hash_table_init): Declare.
  5469. * elfcode.h (elf_object_p): Call backend object_p hook after
  5470. swapping in all the section headers.
  5471. (map_program_segments): Correct typo: Internal for External.
  5472. (elf_link_add_object_symbols): If elf_bad_symtab is set, read all
  5473. the symbols. Skip STB_LOCAL symbols rather than giving an error.
  5474. (elf_bfd_final_link): If elf_bad_symtab is set, allocate space for
  5475. all symbols, not just locals.
  5476. (elf_link_output_extsym): Only skip a symbol not mentioned by a
  5477. regular file if it is mentioned by a dynamic object.
  5478. (elf_link_input_bfd): If elf_bad_symtab is set, read all the
  5479. symbols.
  5480. Fri May 20 13:38:23 1994 Jeff Law (law@snake.cs.utah.edu)
  5481. * som.c (som_set_reloc_info): Do not set any relocation info
  5482. for SOM fixups which are never passed to BFD.
  5483. Fri May 20 11:57:05 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5484. * coff-mips.c (mips_relocate_section): Add MIPS_R_JMPADDR overflow
  5485. checking.
  5486. * elf32-i386.c (elf_i386_size_dynamic_sections): Add DT_DEBUG to
  5487. the dynamic linking information for the benefit of the debugger.
  5488. From Peter Schauer.
  5489. * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
  5490. * elf.c (_bfd_elf_make_section_from_shdr): New function, based on
  5491. code repeated three times in bfd_section_from_shdr in elfcode.h.
  5492. * libelf.h (_bfd_elf_make_section_from_shdr): Declare.
  5493. * elfcode.h (bfd_section_from_shdr): Use new function
  5494. _bfd_elf_make_section_from_shdr to create BFD sections. If a
  5495. reloc section does not use the main symbol table, or it is part of
  5496. the process image, treat it as a normal section, not relocs.
  5497. * elf32-mips.c (mips_elf_section_from_shdr): Use new function
  5498. _bfd_elf_make_section_from_shdr.
  5499. Thu May 19 11:37:11 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5500. * elf32-target.h, elf64-target.h: Change ar_max_namelen value from
  5501. 15 to 14 to match SVR4 ar.
  5502. Add support for ELF shared libraries. Loosely based on work by
  5503. Eric Youngdale <ericy@cais.com>.
  5504. * libelf.h (struct elf_backend_data): Add new fields for dynamic
  5505. linking: elf_backend_create_dynamic_sections,
  5506. elf_backend_adjust_dynamic_symbol,
  5507. elf_backend_size_dynamic_sections,
  5508. elf_backend_finish_dynamic_symbol,
  5509. elf_backend_finish_dynamic_sections.
  5510. (struct elf_link_hash_entry): Change type of align field to
  5511. bfd_size_type. Add fields dynindx, dynstr_index, weakdef,
  5512. elf_link_hash_flags.
  5513. (struct elf_link_hash_table): Add fields dynobj, dynsymcount,
  5514. dynstr, bucketcount.
  5515. (bfd_elf32_swap_reloc_in, bfd_elf32_swap_reloc_out): Declare.
  5516. (bfd_elf32_swap_reloca_in, bfd_elf32_swap_reloca_out): Declare.
  5517. (bfd_elf32_swap_dyn_in, bfd_elf32_swap_dyn_out): Declare.
  5518. (bfd_elf32_add_dynamic_entry): Declare.
  5519. (bfd_elf64_swap_reloc_in, bfd_elf64_swap_reloc_out): Declare.
  5520. (bfd_elf64_swap_reloca_in, bfd_elf64_swap_reloca_out): Declare.
  5521. (bfd_elf64_swap_dyn_in, bfd_elf64_swap_dyn_out): Declare.
  5522. (bfd_elf64_add_dynamic_entry): Declare.
  5523. * elfcode.h (Elf_External_Dyn): Define.
  5524. (elf_swap_reloc_in): Define as macro using NAME. Make externally
  5525. visible.
  5526. (elf_swap_reloc_out): Likewise.
  5527. (elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
  5528. (elf_swap_dyn_in, elf_swap_dyn_out): Define as macro using NAME
  5529. and as new externally visible function.
  5530. (elf_fake_sections): Set section type of dynamic sections based on
  5531. section names.
  5532. (elf_write_phdrs): Remove.
  5533. (assign_file_position_for_section): Add new align argument.
  5534. Change all callers.
  5535. (get_program_header_size): New static function.
  5536. (struct seg_info): Remove.
  5537. (map_program_segments): Completely rewrite.
  5538. (assign_file_positions_except_relocs): Completely rewrite.
  5539. (assign_file_positions_for_relocs): Don't set a file position for
  5540. sections which already have one. Don't bother to align the file
  5541. position here.
  5542. (section_from_elf_index): Handle SHT_HASH and SHT_DYNAMIC
  5543. section types.
  5544. (elf_section_from_bfd_section): Likewise.
  5545. (elf_slurp_symbol_table): If section_from_elf_index fails, just
  5546. use bfd_abs_section rather than returning an error.
  5547. (elf_sizeof_headers): Make useful.
  5548. (elf_link_record_dynamic_symbol): New static function.
  5549. (elf_link_add_object_symbols): Handle dynamic objects.
  5550. (elf_link_create_dynamic_sections): New static function.
  5551. (elf_add_dynamic_entry): Define as macro using NAME and as new
  5552. externally visible function.
  5553. (NAME(bfd_elf,record_link_assignment)): New function.
  5554. (elf_buckets): New static variable.
  5555. (NAME(bfd_elf,size_dynamic_sections)): New function.
  5556. (struct elf_final_link_info): Add dynsym_sec and hash_sec fields.
  5557. (elf_bfd_final_link): Handle dynamic linking. Create a section
  5558. symbol for all ELF sections, not all BFD sections. Store section
  5559. symbol index in target_index field, not index field. Traverse
  5560. over global symbols even if stripping.
  5561. (elf_link_output_extsym): Output dynamic symbols. Mark symbols
  5562. defined by dynamic objects as undefined.
  5563. (elf_link_input_bfd): Ignore dynamic objects. Use target_index
  5564. field for section relocs, and make sure it is set.
  5565. (elf_reloc_link_order): Use target_index field for section relocs,
  5566. and make sure it is set.
  5567. * elf.c (elf_link_hash_newfunc): Initialize dynindx, dynstr_index,
  5568. weakdef and elf_link_hash_flags fields.
  5569. (_bfd_elf_link_hash_table_create): Initialize dynobj, dynsymcount,
  5570. dynstr and bucketcount fields.
  5571. * elf32-target.h: Initialize new dynamic linking fields.
  5572. * elf64-target.h: Likewise.
  5573. * elf32-i386.c: New functions for dynamic linking support.
  5574. * elf32-sparc.c: Likewise.
  5575. * bfd-in.h (bfd_elf32_record_link_assignment): Declare.
  5576. (bfd_elf64_record_link_assignment): Declare.
  5577. (bfd_elf32_size_dynamic_sections): Declare.
  5578. (bfd_elf64_size_dynamic_sections): Declare.
  5579. * bfd-in2.h: Rebuilt.
  5580. Wed May 18 08:29:04 1994 Ian Lance Taylor (ian@cygnus.com)
  5581. * som.c: Don't include <sys/dir.h> or <sys/user.h>.
  5582. (som_reloc_queue_find): Call memcmp instead of bcmp.
  5583. (som_bfd_reloc_type_lookup): Change first argument to bfd *.
  5584. (compare_syms): Change types of arguments to const void *.
  5585. (bfd_section_from_som_symbol): Removed unused local found.
  5586. (som_write_armap): Add elength, map, orl_count and int arguments.
  5587. (som_write_armap): Use %ld and cast to long for getuid result.
  5588. Wed May 18 09:09:32 1994 Jeff Law (law@snake.cs.utah.edu)
  5589. * elf32-hppa.h (R_HPPA_ABS_CALL): Define.
  5590. * elf32-hppa.c (hppa_elf_gen_reloc_type): Handle absolute calls.
  5591. * som.h (R_HPPA_ABS_CALL): Define.
  5592. * som.c (hppa_som_gen_reloc_type): Delete complex relocation types.
  5593. Tue May 17 19:33:12 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  5594. * coff-i960.c (icoff_little_vec, icoff_big_vec): Indicate leading
  5595. underscore, for compatibility with Intel tool chain (gnu960v2).
  5596. Mon May 16 10:09:22 1994 Jeff Law (law@snake.cs.utah.edu)
  5597. * bfd-in2.h: Rebuilt.
  5598. * elf32-hppa.c: Change .hppa_linker_stubs to .PARISC.stubs,
  5599. likewise for other PA specific sections.
  5600. (hppa_elf_relocate_unwind_table): Delete unused
  5601. function.
  5602. (elf_hppa_howto_table): Completely new table based on 94-02-02
  5603. draft PA ELF spec. Change relocation tags appropriately
  5604. throughout elf32-hppa.c
  5605. (hppa_elf_gen_reloc_type): Rewrite and simplify based on 94-02-02
  5606. spec.
  5607. (hppa_elf_reloc): Likewise.
  5608. (hppa_look_for_stubs_in_section): Likewise
  5609. (ELF_MACHINE_CODE): Change to EM_PARISC.
  5610. * elf32-hppa.h: Include "elf/hppa.h". Change relocation tags
  5611. appropriately throughout elf32-hppa.h.
  5612. (elf32_hppa_reloc_type): New table based on 94-02-02 draft PA ELF
  5613. spec.
  5614. (R_HPPA_ABS_CALL, R_HPPA_COMPLEX*, R_HPPA_UNWIND): Delete definitions.
  5615. * elfcode.h (prep_headers): Use EM_PARISC instead of EM_HPPA.
  5616. * reloc.c (bfd_reloc_code_real): Delete unused HPPA relocations.
  5617. * som.h (R_HPPA_ABS_CALL, R_HPPA_COMPLEX): Delete definitions.
  5618. * libhppa.h (hppa_field_adjust): Avoid adding constant_value into
  5619. the final value twice for LR and RR field selectors.
  5620. Sat May 14 09:09:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  5621. * aoutx.h (add_to_stringtab): Use BFD_ASSERT not assert. This
  5622. avoids __eprintf troubles.
  5623. Fri May 13 10:51:21 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5624. * bout.c (b_out_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR.
  5625. * config/mipsbelf.mt (SELECT_VECS): Add ecoff_big_vec and
  5626. ecoff_little_vec since Irix 5 supports ECOFF executables.
  5627. Wed May 11 00:31:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5628. * ecoff.c (ecoff_find_nearest_line): Handle fdr.adr != pdr.adr
  5629. correctly.
  5630. * Makefile.in (stmp-bfd.h): Use || instead of ; to force SunOS
  5631. make to invoke the shell.
  5632. Tue May 10 14:23:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5633. * section.c (SEC_COFF_SHARED_LIBRARY): Renamed from
  5634. SEC_SHARED_LIBRARY for clarity. Changed all uses.
  5635. * bfd-in2.h: Rebuilt.
  5636. * coffcode.h (sec_to_styp_flags): If SEC_COFF_SHARED_LIBRARY is
  5637. set, set STYP_NOLOAD.
  5638. * coffgen.c (coff_section_from_bfd_index): Don't get an assertion
  5639. failure because of a bad shared library.
  5640. Mon May 9 18:53:40 1994 Bill Cox (bill@rtl.cygnus.com)
  5641. * linker.c: Add missing comment terminator.
  5642. Mon May 9 11:53:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5643. * linker.c (_bfd_generic_link_add_one_symbol): If hashp and *hashp
  5644. are not NULL, assume the caller has already looked up the symbol
  5645. in the hash table and has stored the entry in *hashp.
  5646. (generic_link_add_symbol_list): Set h to NULL before calling
  5647. _bfd_generic_link_add_one_symbol.
  5648. * ecoff.c (ecoff_link_add_externals): Likewise.
  5649. * elfcode.h (assign_file_positions_except_relocs): Don't require
  5650. page shared between .data and .bss segments to contain zeroes.
  5651. * elfcode.h: Include bfdlink.h. Added several new functions to do
  5652. linking.
  5653. (ELF_R_TYPE): Define.
  5654. (bfd_add_to_strtab): Return unsigned long. Change check for
  5655. realloc failure.
  5656. (elf_fake_sections): Check return value of bfd_add_to_strtab.
  5657. (elf_compute_section_file_positions): Add link_info argument.
  5658. Call elf_backend_begin_write_processing hook and prep_headers
  5659. here. Only call swap_out_syms if link_info is NULL. Set up
  5660. .shstrtab section here. Pass dosyms argument to
  5661. assign_file_positions_except_relocs. Set output_has_begun flag.
  5662. (assign_file_positions_for_symtab_and_strtabs): Add dosyms
  5663. argument, and use it to control setting .symtab and .strtab file
  5664. positions.
  5665. (assign_file_positions_except_relocs): Add dosyms argument, and
  5666. pass it on.
  5667. (prep_headers): Check return value of bfd_add_to_strtab.
  5668. (swap_out_syms): Likewise. Also, don't set up .shstrtab here.
  5669. (NAME(bfd_elf,write_object_contents)): Some calls moved into
  5670. elf_compute_section_file_positions.
  5671. (elf_set_section_contents): Likewise.
  5672. (elf_slurp_symbol_table): SHN_LORESERV corrected to SHN_LORESERVE.
  5673. * libelf.h: Include bfdlink.h.
  5674. (struct elf_backend_data): Add fields collect,
  5675. elf_add_symbol_hook, elf_backend_relocate_section.
  5676. (struct bfd_elf_section_data): Add field rel_hashes.
  5677. (struct elf_obj_tdata): Remove fields internal_syms and symbols.
  5678. Add field sym_hashes.
  5679. (obj_symbols, obj_internal_syms): Remove definitions.
  5680. (elf_sym_hashes): Define.
  5681. (struct elf_link_hash_entry): Define.
  5682. (struct elf_link_hash_table): Define.
  5683. (elf_link_hash_lookup): Define.
  5684. (elf_link_hash_traverse): Define.
  5685. (elf_hash_table): Define.
  5686. (_bfd_elf_link_hash_table_create): Declare.
  5687. (bfd_elf32_bfd_link_add_symbols): Declare.
  5688. (bfd_elf32_bfd_final_link): Declare.
  5689. (bfd_elf64_bfd_link_add_symbols): Declare.
  5690. (bfd_elf64_bfd_final_link): Declare.
  5691. * elf.c: Include bfdlink.h.
  5692. (elf_link_hash_newfunc): New function.
  5693. (_bfd_elf_link_hash_table_create): New function.
  5694. * elf32-target.h (elf_backend_relocate_section): If not defined,
  5695. define as 0 and use generic linker. Otherwise, use ELF backend
  5696. linker.
  5697. (elf_backend_collect): If not defined, define as false.
  5698. (elf_backend_add_symbol_hook): If not defined, define as 0.
  5699. (elf32_bed): Initialize new fields.
  5700. * elf64-target.h: Same changes as elf32-target.h.
  5701. * elf32-i386.c: Include bfdlink.h.
  5702. (elf_i386_relocate_section): New function.
  5703. (elf_backend_relocate_section): Define.
  5704. * elf32-sparc.c: Include bfdlink.h.
  5705. (elf_info_to_howto): Change type of dst from Elf32_Internal_Rela
  5706. to Elf_Internal_Rela (they're the same type anyhow).
  5707. (elf_sparc_relocate_section): New function.
  5708. (elf_backend_relocate_section): Define.
  5709. * elf32-mips.c (elf_backend_collect): Define.
  5710. * Makefile.in (stmp-bfd.h): Avoid useless make error message in a
  5711. different way; touch takes a numeric argument on some systems.
  5712. Fri May 6 13:34:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5713. * nlmcode.h (nlm_swap_auxiliary_headers_in): Rework custom header
  5714. handling for latest suggested format.
  5715. (nlm_swap_auxiliary_headers_out): Likewise.
  5716. (nlm_compute_section_file_positions): Likewise.
  5717. Fri May 6 11:11:50 1994 D. V. Henkel-Wallace (gumby@rtl.cygnus.com)
  5718. * config.bfd: handle erricsson config (for OSE).
  5719. Thu May 5 15:40:47 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  5720. Patches from Ralph Campbell:
  5721. * mipsbsd.c (mips_fix_jmp_addr): New function.
  5722. (mips_fix_hi16_s): Use bfd_is_com_section.
  5723. (mips_howto_table_ext): Call mips_fix_jmp_addr for MIPS_RELOC_JMP.
  5724. Fri May 6 11:48:55 1994 Steve Chamberlain (sac@cygnus.com)
  5725. * config/go32.mh: XX support.
  5726. From bill
  5727. * Makefile.in: Build sysdep.h without causing worrying but
  5728. harmless error message.
  5729. Wed May 4 11:09:53 1994 Ian Lance Taylor (ian@cygnus.com)
  5730. Changed m68k-aout to set flags to 0; m68k-sunos still uses 1.
  5731. * aout0.c: New file.
  5732. * targets.c (aout0_big_vec): Declare.
  5733. (bfd_target_vector): Add aout0_big_vec.
  5734. * config.bfd (m68*-*-aout*): Use m68k-0aout, not m68k-aout.
  5735. * config/m68k-aout.mt (SELECT_VECS): Removed.
  5736. * config/m68k-0aout.mt: New file.
  5737. * configure.in (aout0_big_vec): New target vector: use aout0.o,
  5738. aout32.o and stab-syms.o.
  5739. * Makefile.in: Rebuilt dependencies.
  5740. (BFD32_BACKENDS): Add aout0.o.
  5741. (CFILES): Add aout0.c.
  5742. * libaout.h (struct aout_backend_data): Add field exec_hdr_flags.
  5743. * aout-target.h (MY_exec_hdr_flags): If not defined, define as 0.
  5744. MY(backend_data): Initialize exec_hdr_flags field.
  5745. * aoutf1.h (sunos_32_set_arch_mach): Make static.
  5746. (aout32_sunos4_write_object_contents): Set flags from backend
  5747. info.
  5748. (MY_exec_hdr_flags): If not defined, define as 1.
  5749. (sunos4_aout_backend): Initialize exec_hdr_flags field.
  5750. * aout-encap.c (encap_write_object_contents): Set flags from
  5751. backend info.
  5752. (MY_exec_hdr_flags): Define as N_FLAGS_COFF_ENCAPSULATE.
  5753. * hp300hpux.c (MY_exec_hdr_flags): Define as 0x2.
  5754. (MY(write_object_contents)): Set flags from backend info.
  5755. * i386aout.c (MY(backend_data)): Initialize exec_hdr_flags field.
  5756. * i386mach3.c (MY(backend_data)): Likewise.
  5757. * mipsbsd.c (MY(backend_data)): Likewise.
  5758. * sparclynx.c (NAME(aout,sparclynx_write_object_contents)): Set
  5759. flags from backend info.
  5760. (sparclynx_aout_backend): Initialize exec_hdr_flags field.
  5761. Wed May 4 02:56:00 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
  5762. * config.bfd (i386-*-gnu*): Treat like i386-*-mach*.
  5763. (m68*-apollo-*): Treat all Apollo configs the same, don't handle
  5764. BSD specially.
  5765. Tue May 3 19:43:21 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5766. * cache.c: Rewrote to work correctly.
  5767. * libbfd.h: Rebuilt.
  5768. * opncls.c (bfd_cache_init, bfd_open_file): Don't declare.
  5769. (bfd_fdopenr): Check return value of bfd_cache_init.
  5770. Fri Apr 29 15:08:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5771. * cf-m68klynx.c (CALC_ADDEND): Check for PC relative relocs by
  5772. enumerating them, since the reloc type can not serve as an index
  5773. into the m68k COFF howto_table.
  5774. Fri Apr 29 09:42:39 1994 Steve Chamberlain (sac@cygnus.com)
  5775. * config.bfd (*-go32): Changed to coff.
  5776. * coff-h8300.c (JMPL1): Get HOWTO right for 24bit branches.
  5777. * srec.c (srec_write_symbols): Write out the correct number of
  5778. symbols and don't stick in extra nulls.
  5779. Tue Apr 26 15:07:24 1994 Stan Shebs (shebs@andros.cygnus.com)
  5780. * cf-sparclynx.c (LYNXOS, COFF_LONG_FILENAMES): Define.
  5781. * coff-sparc.c (BADMAG): Recognize LYNXCOFFMAGIC.
  5782. (COFF_SPARC): Define.
  5783. * coffcode.h (coff_new_section_hook): If COFF_SPARC, set alignment
  5784. power of data and bss sections to 3.
  5785. * hosts/lynx.h (__LYNXOS): Define.
  5786. Tue Apr 26 15:04:26 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  5787. * elf32-hppa.c (hppa_elf_reloc): Adjust the addend of relocations
  5788. against section symbols to avoid losing during ld -r.
  5789. Tue Apr 26 12:16:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5790. * elfcode.h (shstrtab_length_fixed): Remove useless static
  5791. variable.
  5792. (struct elf_sect_data): Remove unused structure.
  5793. (elf_object_p): Free memory if error occurs. Check return value
  5794. of bfd_default_set_arch_mach. If elf_get_str_section fails,
  5795. preserve error code rather than setting wrong_format.
  5796. (null_shdr): Remove static variable.
  5797. (assign_section_numbers): Remove shstrtab_length_fixed assignment.
  5798. Allocate first section header on BFD obstack rather than using
  5799. null_shdr.
  5800. (bfd_prpsinfo): Remove unused local variable newsect.
  5801. Mon Apr 25 15:31:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5802. * elfcode.h (write_relocs): Undo patch of Apr 10; breaks Solaris.
  5803. * elfcode.h (bfd_section_from_shdr): Use bfd_make_section_anyway
  5804. to create sections. Check return value of recursive calls.
  5805. (bfd_section_from_phdr): Check return value of bfd_make_section.
  5806. (elf_symbol_from_bfd_symbol): Likewise.
  5807. (elf_object_p): Check return value of bfd_section_from_shdr.
  5808. (section_from_elf_index): Likewise.
  5809. (elf_slurp_symbol_table): Check return value of
  5810. section_from_elf_index.
  5811. (bfd_prstatus): Return boolean value. Check return value of
  5812. bfd_make_section.
  5813. (bfd_fpregset): Likewise.
  5814. (bfd_prpsinfo): Return boolean value.
  5815. (elf_corefile_note): Check return values of bfd_prstatus,
  5816. bfd_fpregset, and bfd_prpsinfo.
  5817. (elf_core_file_p): Check return value of elf_corefile_note.
  5818. Fri Apr 22 11:08:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5819. Get rid of the ECOFF .reginfo section hack.
  5820. * ecoff.c (ecoff_mkobject_hook): Don't create a .reginfo section.
  5821. (ecoff_new_section_hook): Don't handle the .reginfo section.
  5822. (ecoff_sizeof_headers): Likewise.
  5823. (ecoff_get_section_contents): Likewise.
  5824. (ecoff_compute_section_file_positions): Likewise.
  5825. (ecoff_compute_reloc_file_positions): Likewise.
  5826. (ecoff_set_section_contents): Likewise.
  5827. (ecoff_write_object_contents): Likewise.
  5828. (ecoff_bfd_final_link): Likewise.
  5829. (ecoff_bfd_copy_private_bfd_data): Copy the GP value and the
  5830. register masks.
  5831. (bfd_ecoff_get_gp_value): New function.
  5832. (bfd_ecoff_set_gp_value): New function.
  5833. (bfd_ecoff_set_regmasks): New function.
  5834. * bfd-in.h (bfd_ecoff_get_gp_value): Declare.
  5835. (bfd_ecoff_set_gp_value): Declare.
  5836. (bfd_ecoff_set_regmasks): Declare.
  5837. * bfd-in2.h: Rebuilt.
  5838. Fix ECOFF objcopy to actually copy debugging information.
  5839. * ecoff.c (ecoff_bfd_copy_private_bfd_data): New function.
  5840. (ecoff_get_extr): Assume that any ECOFF symbol with local clear is
  5841. an external symbol, rather than checking the symbol flags. Only
  5842. check the flags for non-ECOFF symbols.
  5843. * ecofflink.c (bfd_ecoff_debug_externals): Don't crash if the
  5844. output_section field of the symbol section is NULL.
  5845. * libecoff.h (ecoff_bfd_copy_private_bfd_data): Declare as
  5846. function rather than defining as macro.
  5847. * ieee.c (ieee_object_p): Set bfd_error_got_wrong_format if
  5848. appropriate.
  5849. * targets.c (bfd_target_vector): Add bfd_elf32_powerpc_vec.
  5850. * aout-adobe.c (aout_adobe_set_arch_mach): Check return value of
  5851. bfd_default_set_arch_mach. Accept bfd_arch_m68k as well as
  5852. bfd_arch_unknown.
  5853. * coffcode.h (coff_set_arch_mach): Check return value of
  5854. bfd_default_set_arch_mach.
  5855. * elfcode.h (elf_set_arch_mach): Don't check a list of ELF
  5856. architectures, just see if the desired architecture matches what
  5857. the ELF backend permits.
  5858. * coffcode.h (coff_set_arch_mach_hook): Rename SHMAGIC to
  5859. SH_ARCH_MAGIC to match change in coff/sh.h.
  5860. (coff_set_flags): Likewise.
  5861. Follow convention in which each NLM header has an 8 byte stamp
  5862. followed by a four byte length.
  5863. * libnlm.h (struct nlm_obj_tdata): Rename nlm_cygnus_section_hdr
  5864. to nlm_cygnus_ext_header, and change type to
  5865. Nlm_Internal_Cygnus_Ext_Header.
  5866. (nlm_cygnus_ext_header): Rename from nlm_cygnus_section_header.
  5867. * nlmcode.h (nlm_swap_auxiliary_headers_in): Use CyGnUsEx instead
  5868. of CyGnUsSeCs. Rename from cygnus_section to cygnus_ext. Require
  5869. length word to be 8.
  5870. (nlm_swap_auxiliary_headers_out): Rename from cygnus_section to
  5871. cygnus_ext. Set length word to 8.
  5872. (nlm_compute_section_file_positions): Rename from cygnus_section
  5873. to cygnus_ext.
  5874. Thu Apr 21 22:54:22 1994 Stu Grossman (grossman at cygnus.com)
  5875. * nlmcode.h (nlm_swap_auxiliary_headers_in): Keep section table
  5876. (from CyGnUsSeCs) in more permanent memory to keep section names
  5877. from getting trashed.
  5878. Thu Apr 21 09:29:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  5879. * libelf.h (elf_obj_tdata): Add members for dynamic symbol table
  5880. handling.
  5881. * elfcode.h (bfd_section_from_shdr): Handle dynamic symbol table.
  5882. * elfcode.h (elf_slurp_symbol_table): Take additional parameter
  5883. to select static or dynamic symbol table and return number of
  5884. symbols slurped or -1 on error.
  5885. * elfcode.h (elf_get_symtab): Set bfd symcount from
  5886. elf_slurp_symbol_table result.
  5887. * elfcode.h (elf_get_dynamic_symtab_upper_bound,
  5888. elf_canonicalize_dynamic_symtab): New functions to handle dynamic
  5889. symbol table.
  5890. * elf32-target.h, elf64-target.h (BFD_JUMP_TABLE_DYNAMIC):
  5891. Change to handle dynamic symbol table, provide default definitions
  5892. for dynamic relocs.
  5893. * aoutx.h (howto_table_std, NAME(aout,swap_std_reloc_out),
  5894. NAME(aout,swap_std_reloc_in), aout_link_input_section_std,
  5895. aout_link_reloc_link_order): Handle r_jmptable and r_relative
  5896. relocations.
  5897. Thu Apr 21 11:58:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5898. Clean up uses of _bfd_dummy_target (from Peter Schauer).
  5899. * libbfd.c (_bfd_dummy_target): Set bfd_error_wrong_format.
  5900. * nlm-target.h (nlm_core_file_p): Define as _bfd_dummy_target, not
  5901. NULL.
  5902. * srec.c (srec_vec): Use _bfd_dummy_target, not NULL, in
  5903. _bfd_check_format.
  5904. (symbolsrec_vec): Likewise.
  5905. * tekhex.c (tekhex_vec): Likewise.
  5906. * libnlm.h (struct nlm_obj_tdata): Add nlm_cygnus_section_hdr
  5907. field.
  5908. (nlm_cygnus_section_header): New accessor macro.
  5909. * nlmcode.h (nlm_object_p): Free new tdata structure if failure.
  5910. Add fixed sections before swapping in auxiliary headers. After
  5911. adding sections, treat errors as real, not as wrong format.
  5912. (nlm_swap_auxiliary_headers_in): Swap in the sections header; add
  5913. sections to the BFD for each section it describes.
  5914. (nlm_swap_auxiliary_headers_out): Swap out the sections header.
  5915. (nlm_compute_section_file_positions): Account for the size of the
  5916. sections header.
  5917. Wed Apr 20 16:45:51 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  5918. * coff-sparc.c (sparccoff_vec): Change minimum alignment power to
  5919. 2, so that stab sections can be multiples of 4 bytes only.
  5920. * hosts/i386aix.h: Changes to avoid prototypes conflicts with the
  5921. ones defined in stdlib.h. (From Minh Tran-Le.)
  5922. Wed Apr 20 14:15:21 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5923. * nlm32-ppc.c: Complete rewrite for new version of PowerPC
  5924. NetWare. Old code still present, but ifdeffed out.
  5925. * nlmcode.h (nlm_swap_auxiliary_headers_in): Don't assume a
  5926. particular format for the customer header. Allocate a block of
  5927. memory and read it into that.
  5928. (nlm_swap_auxiliary_headers_out): Write out the block of memory.
  5929. (nlm_compute_section_file_positions): Include length of customer
  5930. header when computing its size.
  5931. Mon Apr 18 14:27:17 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  5932. * som.c (som_prep_headers): Get the space's number from the
  5933. backend private section data rather than target_index.
  5934. (bfd_som_set_section_attributes): Store the space's number
  5935. in the backend private section data rather than target_index.
  5936. * som.h (som_copyable_section_data_struct): Add space_number.
  5937. Fri Apr 15 12:22:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5938. * coff-a29k.c (reloc_processing): Always set the address of a
  5939. R_IHCONST reloc to that of the immediately preceding R_IHIHALF.
  5940. gas does this anyhow, but some other assemblers seem to leave
  5941. garbage in the R_IHCONST address field.
  5942. * archive.c: Consistently use ARFMAG; from
  5943. schwab@issan.informatik.uni-dortmund.de (Andreas Schwab).
  5944. (_bfd_write_archive_contents): Use ARFMAG rather than '`' and
  5945. '\012'.
  5946. (bsd_write_armap): Likewise.
  5947. (coff_write_armap): Likewise.
  5948. * coff-mips.c (mips_relocate_section): When relaxing, adjust local
  5949. relocs against the .text section as required.
  5950. * ecofflink.c (bfd_ecoff_debug_accumulate): When relaxing, adjust
  5951. PDR addresses as required.
  5952. * ecoff.c (ecoff_emit_aggregate): Take fdr argument. Map fdr
  5953. index through rfd map if it exists. Check for a couple of cases
  5954. which gdb handles specially. Change all callers.
  5955. (ecoff_type_to_string): Take fdr argument rather than aux_ptr and
  5956. bigendian argument. Change all callers.
  5957. (ecoff_print_symbol): Handle stStruct, stUnion and stEnum.
  5958. Thu Apr 14 13:05:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5959. * coff-mips.c (mips_howto_table): Add dummy entries to account for
  5960. numbering changes in include/coff/mips.h. Add entries for
  5961. MIPS_R_RELHI and MIPS_R_RELLO.
  5962. (mips_ecoff_swap_reloc_in): Handle an extra bit for the reloc type
  5963. when little endian. Treat internal MIPS_R_RELLO or MIPS_R_RELHI
  5964. relocs like MIPS_R_SWITCH, and convert r_offset from 24 to 32
  5965. bits.
  5966. (mips_ecoff_swap_reloc_out): Likewise.
  5967. (mips_adjust_reloc_in): Handle internal MIPS_R_RELLO or
  5968. MIPS_R_RELHI relocs like MIPS_R_SWITCH.
  5969. (mips_adjust_reloc_out): Likewise.
  5970. (mips_relhi_addr, mips_relhi_addend): New static variables.
  5971. (mips_relhi_reloc, mips_rello_reloc): New functions.
  5972. (mips_bfd_reloc_type_lookup): Turn BFD_RELOC_PCREL_HI16_S into
  5973. MIPS_R_RELHI and turn BFD_RELOC_PCREL_LO16 into MIPS_R_RELLO.
  5974. (mips_relocate_hi): Rename from mips_relocate_refhi, and add pcrel
  5975. argument. Changed all callers.
  5976. (mips_relocate_section): Rename got_reflo to got_lo and
  5977. reflo_int_rel to lo_int_rel. Handle MIPS_R_RELLO and MIPS_R_RELHI
  5978. relocs.
  5979. (mips_relax_section): Adjust MIPS_R_RELHI/MIPS_R_RELLO pairs when
  5980. expanding a PC relative call.
  5981. * reloc.c (bfd_reloc_code_real_type): Add BFD_RELOC_PCREL_HI16_S
  5982. and BFD_RELOC_PCREL_LO16.
  5983. * bfd-in2.h: Rebuilt.
  5984. Wed Apr 13 11:50:07 1994 Stan Shebs (shebs@andros.cygnus.com)
  5985. * coff-sparc.c (sparccoff_vec): Set minimum alignment power to 3.
  5986. Tue Apr 12 13:36:20 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  5987. * som.c (som_write_fixups): Always emit at least
  5988. one relocation for any non-bss section.
  5989. Mon Apr 11 14:41:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5990. * elfcode.h (assign_file_positions_except_relocs): Don't require
  5991. the file alignment to correspond to the page size when linking
  5992. with -N.
  5993. Sun Apr 10 01:02:24 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  5994. * elfcode.h (write_relocs): For rela relocations, adjust the
  5995. addend for relocations involving section symbols to account
  5996. for the lossage of 1:1 mapping from input section symbols to
  5997. output section symbols.
  5998. Fri Apr 8 12:22:02 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  5999. * aoutx.h (NAME(aout,make_sections)): New function.
  6000. (NAME(aout,some_aout_object_p)): Call NAME(aout,make_sections)
  6001. rather than making sections inline.
  6002. (NAME(aout,mkobject)): Don't make any sections.
  6003. (NAME(aout,adjust_sizes_and_vmas)): Call NAME(aout,make_sections).
  6004. (NAME(aout,final_link)): Don't dereference obj_textsec (abfd) or
  6005. obj_datasec (abfd) if they are NULL.
  6006. * libaout.h (NAME(aout,make_sections)): Declare.
  6007. * bout.c (b_out_mkobject): Don't make any sections.
  6008. (b_out_write_object_contents): Call aout_32_make_sections.
  6009. (b_out_set_section_contents): Likewise.
  6010. * i386os9k.c (os9k_mkobject): Don't make any sections.
  6011. (os9k_write_object_contents): Call aout_32_make_sections.
  6012. (os9k_set_section_contents): Likewise.
  6013. * aoutx.h (NAME(aout,new_section_hook)): Don't set N_EXT in target
  6014. index.
  6015. Wed Apr 6 20:44:56 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  6016. * config.bfd, configure.host: Add mips-*-sysv4* support.
  6017. Thu Apr 7 14:23:05 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6018. * coff-mips.c (mips_howto_table): Add entry for MIPS_R_SWITCH.
  6019. (mips_ecoff_swap_reloc_in): For MIPS_R_SWTICH, copy r_symndx into
  6020. r_offset and set r_symndx to RELOC_SECTION_TEXT.
  6021. (mips_ecoff_swap_reloc_out): For MIPS_R_SWITCH, get the r_symndx
  6022. value from the r_offset field.
  6023. (mips_adjust_reloc_in): Maximum r_type value is now MIPS_R_SWITCH.
  6024. For MIPS_R_SWITCH, copy the r_offset field into the addend field.
  6025. (mips_adjust_reloc_out): For MIPS_R_SWITCH, copy the addend field
  6026. into the r_offset field.
  6027. (mips_switch_reloc): New function.
  6028. (mips_bfd_reloc_type_lookup): Translate BFD_RELOC_GPREL32 into
  6029. MIPS_R_SWITCH.
  6030. (mips_relocate_section): Handle MIPS_R_SWITCH.
  6031. (mips_relax_section): Adjust MIPS_R_SWITCH offset if necessary.
  6032. Thu Apr 7 11:10:51 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6033. * elfcode.h (elf_set_section_contents): Support calling the backend
  6034. function elf_backend_begin_write_processing when just beginning to
  6035. write an object file.
  6036. * libelf.h (elf_backend_begin_write_processing): Declare.
  6037. * elf{32,64}-target.h (elf_backend_begin_write_processing): Provide
  6038. a default definition.
  6039. (elf{32,64}_bed): Add elf_backend_begin_write_processing.
  6040. * elf32-hppa.h (elf_hppa_tc_symbol): Delete extern declaration.
  6041. (elf_hppa_tc_make_sections): Likewise.
  6042. * elf32-hppa.c (symext_chain_built): Delete.
  6043. (symext_chain_size): Renamed from symextn_contents_real_size.
  6044. (elf32_hppa_backend_{begin,final}_write_processing): New functions.
  6045. (add_entry_to_symext_chain): New function.
  6046. (hppa_elf_set_section_contents): Ignore writes to the symbol extension
  6047. section until it's been rebuilt internally.
  6048. (hppa_elf_get_section_contents): Symbol extension section is no
  6049. longer special.
  6050. (elf_backend_{begin,final}_write_processing): Define.
  6051. (elf_hppa_tc_make_sections): Simplify now that much code has
  6052. migrated into elf32_hppa_backend_{being,final}_write_processing.
  6053. Wed Apr 6 17:24:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6054. Add new target vectors to read the dynamic symbols and dynamic
  6055. relocs. Change a.out to use these rather than reading the dynamic
  6056. symbols and relocs along with the normal symbols and relocs.
  6057. * targets.c (bfd_target): Add fields
  6058. _bfd_get_dynamic_symtab_upper_bound,
  6059. _bfd_canonicalize_dynamic_symtab,
  6060. _bfd_get_dynamic_reloc_upper_bound,
  6061. _bfd_canonicalize_dynamic_reloc.
  6062. (BFD_JUMP_TABLE_DYNAMIC): Define.
  6063. * libbfd-in.h (_bfd_nodynamic_get_dynamic_symtab_upper_bound):
  6064. Define.
  6065. (_bfd_nodynamic_canonicalize_dynamic_symtab): Define.
  6066. (_bfd_nodynamic_get_dynamic_reloc_upper_bound): Define.
  6067. (_bfd_nodynamic_canonicalize_dynamic_reloc): Define.
  6068. * bfd.c (bfd_get_dynamic_symtab_upper_bound): Define.
  6069. (bfd_canonicalize_dynamic_symtab): Define.
  6070. (bfd_get_dynamic_reloc_upper_bound): Define.
  6071. (bfd_canonicalize_dynamic_reloc): Define.
  6072. * sunos.c (MY_read_dynamic_symbols): Don't define.
  6073. (MY_read_dynamic_relocs): Don't define.
  6074. (MY_get_dynamic_symtab_upper_bound): Define.
  6075. (MY_canonicalize_dynamic_symtab): Define.
  6076. (MY_get_dynamic_reloc_upper_bound): Define.
  6077. (MY_canonicalize_dynamic_reloc): Define.
  6078. (struct sunos_dynamic_info): Change type of dynsym_count and
  6079. dynrel_count to long. Add fields canonical_dynsym and
  6080. canonical_dynrel.
  6081. (sunos_read_dynamic_info): Check that BFD had DYNAMIC flag set.
  6082. Clear info->canonical_dynsym and info->canonical_dynrel.
  6083. (MY(read_dynamic_symbols)): Removed.
  6084. (MY(read_dynamic_relocs)): Removed.
  6085. (sunos_get_dynamic_symtab_upper_bound): New function.
  6086. (sunos_canonicalize_dynamic_symtab): New function.
  6087. (sunos_get_dynamic_reloc_upper_bound): New function.
  6088. (sunos_canonicalize_dynamic_reloc): New function.
  6089. * libaout.h: Declare struct reloc_ext_external and
  6090. reloc_std_external to avoid prototype problems.
  6091. (struct aout_backend_data): Remove fields read_dynamic_symbols and
  6092. read_dynamic_relocs.
  6093. (NAME(aout,translate_symbol_table)): Declare.
  6094. (NAME(aout,swap_ext_reloc_in)): Declare.
  6095. (NAME(aout,swap_std_reloc_in)): Declare.
  6096. * aoutx.h (NAME(aout,translate_symbol_table)): Renamed from
  6097. translate_symbol_table and made non-static. Changed all callers.
  6098. (NAME(aout,slurp_symbol_table)): Don't read dynamic symbols.
  6099. (NAME(aout,slurp_reloc_table)): Don't read dynamic relocs.
  6100. (NAME(aout,get_reloc_upper_bound)): Don't count dynamic relocs.
  6101. * aoutf1.h (aout_32_sunos4_write_object_contents): Don't bother to
  6102. remove dynamic symbols and relocs. They will no longer be
  6103. present.
  6104. (MY_read_dynamic_symbols): Don't define.
  6105. (MY_read_dynamic_relocs): Don't define.
  6106. (sunos4_aout_backend): Don't initialize dynamic entry points.
  6107. * aout-target.h (MY_read_dynamic_symbols): Don't define.
  6108. (MY_read_dynamic_relocs): Don't define.
  6109. (MY(backend_data)): Don't initialize dynamic entry points.
  6110. (MY_get_dynamic_symtab_upper_bound): If not defined, define to
  6111. _bfd_nodynamic version.
  6112. (MY_canonicalize_dynamic_symtab): Likewise.
  6113. (MY_get_dynamic_reloc_upper_bound): Likewise.
  6114. (MY_canonicalize_dynamic_reloc): Likewise.
  6115. * All backends: Added BFD_JUMP_TABLE_DYNAMIC to target vector.
  6116. * bfd-in2.h: Rebuilt.
  6117. * libbfd.h: Rebuilt.
  6118. * cf-m68klynx.c: Include sysdep.h.
  6119. * hp300hpux.c: Removed some spaces in uses of NAME to avoid
  6120. problems with traditional C compilers.
  6121. * targets.c (bfd_target): Rearranged fields in target vector.
  6122. Removed _bfd_debug_info_start, _bfd_debug_info_end and
  6123. _bfd_debug_info_accumulate, which were never used.
  6124. (BFD_JUMP_TABLE_GENERIC, BFD_JUMP_TABLE_COPY): Defined.
  6125. (BFD_JUMP_TABLE_CORE, BFD_JUMP_TABLE_ARCHIVE): Defined.
  6126. (BFD_JUMP_TABLE_SYMBOLS, BFD_JUMP_TABLE_RELOCS): Defined.
  6127. (BFD_JUMP_TABLE_WRITE, BFD_JUMP_TABLE_LINK): Defined.
  6128. * All backends: Changed to use the new BFD_JUMP_TABLE_* macros
  6129. rather than the single JUMP_TABLE macro. Removed many of the
  6130. weird macro definitions needed to support the monolithic
  6131. JUMP_TABLE.
  6132. * bfd-in.h (JUMP_TABLE): Removed.
  6133. * libbfd-in.h: Define a bunch of macros, and declare a few
  6134. functions, for use with the new BFD_JUMP_TABLE_* macros.
  6135. * libbfd.c (_bfd_dummy_new_section_hook): Removed.
  6136. (bfd_false): Set bfd_error_invalid_operation.
  6137. (bfd_nullvoidptr): Likewise.
  6138. (bfd_n1): New function.
  6139. (_bfd_nocore_core_file_matches_executable_p): Renamed from
  6140. _bfd_dummy_core_file_matches_executable_p.
  6141. (_bfd_nocore_core_file_failing_command): Similar rename. Set
  6142. bfd_error_invalid_operation.
  6143. (_bfd_nocore_core_file_failing_signal): Likewise.
  6144. (_bfd_generic_get_section_contents): Renamed from
  6145. bfd_generic_get_section_contents. Changed all callers.
  6146. (_bfd_generic_set_section_contents): Similar rename.
  6147. * ieee.c: #if 0 out ieee_bfd_debug_info_start,
  6148. ieee_bfd_debug_info_end, ieee_bfd_debug_info_accumulate. They
  6149. were never called.
  6150. * bfd-in2.h: Rebuilt.
  6151. * libbfd.h: Rebuilt.
  6152. Tue Apr 5 22:10:04 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6153. * Crude support for examining dynamic libraries.
  6154. * som.c (som_object_setup): Set DYNAMIC flag for SHL_MAGIC and
  6155. DL_MAGIC objects.
  6156. (som_prep_headers): Preserve the system_id for DYNAMIC objects.
  6157. Use SHL_MAGIC as the magic number of the DYNAMIC flag is set.
  6158. Write exec headers for DYNAMIC objects.
  6159. (som_begin_writing): DYNAMIC objects have the same alignment
  6160. restrictions as D_PAGED objects.
  6161. (bfd_section_from_som_symbol): Treat DYNAMIC objects like EXEC_P
  6162. objects.
  6163. (object_flags): Add DYNAMIC.
  6164. Tue Apr 5 17:48:52 1994 Stan Shebs (shebs@andros.cygnus.com)
  6165. * i386lynx.c, sparclynx.c (NAME): Remove embedded whitespace in
  6166. macro uses, confuses some non-ANSI compilers.
  6167. Tue Apr 5 15:50:01 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6168. * som.c (som_bfd_free_cached_info): Add missing PARAMS decl.
  6169. Don't free anything if we don't have a bfd_object.
  6170. (som_close_and_cleanup): Call som_bfd_free_cached_info.
  6171. Tue Apr 5 11:22:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6172. * elf32-mips.c (mips_elf_final_link): Don't remove empty sections.
  6173. It turns out not to be required on Irix 5, and it causes problems
  6174. if the sections happen to contain symbols.
  6175. * elfcode.h (write_shdrs_and_ehdr): Correct bfd_write check.
  6176. * aoutx.h (NAME(aout,canonicalize_reloc)): Don't error out if
  6177. section->relocation is NULL; malloc might have returned NULL when
  6178. given a zero size if there were no relocations.
  6179. * bout.c (b_out_canonicalize_reloc): Likewise.
  6180. * coffcode.h (coff_canonicalize_reloc): Likewise.
  6181. * ecoff.c (ecoff_canonicalize_reloc): Likewise.
  6182. * elfcode.h (elf_canonicalize_reloc): Likewise.
  6183. * mipsbsd.c (MY(canonicalize_reloc)): Likewise.
  6184. * i386lynx.c (NAME(lynx,canonicalize_reloc)): Likewise.
  6185. * nlmcode.h (nlm_canonicalize_reloc): Likewise.
  6186. * som.c (som_canonicalize_reloc): Likewise.
  6187. * hp300hpux.c (MY(slurp_reloc_table)): Likewise. Also, if malloc
  6188. returns NULL, don't report an error if we asked for zero bytes.
  6189. * i386lynx.c (NAME(lynx,slurp_reloc_table)): If malloc returns
  6190. NULL, don't report an error if we asked for zero bytes.
  6191. * nlmcode.h (nlm_slurp_reloc_fixups): Likewise.
  6192. Mon Apr 4 15:30:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6193. * aoutx.h (NAME(aout,bfd_free_cached_info)): Don't free anything
  6194. if we don't have a bfd_object.
  6195. Made sure that every call to bfd_read, bfd_write, and bfd_seek
  6196. checks the return value and handled bfd_error correctly. These
  6197. changes are not itemised. Also:
  6198. * aoutx.h (emit_strtab): Change return type to boolean, and return
  6199. errors.
  6200. (NAME(aout,write_syms)): Check emit_strtab return value.
  6201. (NAME(aout,final_link)): Likewise.
  6202. * coffcode.h (coff_write_relocs): Change return type to boolean,
  6203. and return errors.
  6204. (coff_write_object_contents): Check coff_write_relocs return
  6205. value.
  6206. * i386os9k.c (os9k_swap_exec_header_in): Change return type to
  6207. boolean.
  6208. (os9k_object_p): Check os9k_swap_exec_header_in return value.
  6209. * oasys.c (oasys_read_record): Change return type to boolean.
  6210. (oasys_slurp_symbol_table: Check oasys_read_record return value.
  6211. (oasys_object_p, oasys_slurp_section_data): Likewise.
  6212. (oasys_write_record): Change return type to boolean.
  6213. (oasys_write_syms): Likewise. Also, check oasys_write_record
  6214. return value.
  6215. (oasys_write_sections): Check oasys_write_record return value.
  6216. (oasys_write_header): Change return type to boolean. Check
  6217. oasys_write_record return value.
  6218. (oasys_write_end, oasys_write_data): Likewise.
  6219. (oasys_write_object_contents): Check return values of
  6220. oasys_write_header, oasys_write_syms, oasys_write_data, and
  6221. oasys_write_end.
  6222. * srec.c (srec_write_record): Change return type to boolean.
  6223. (srec_write_header): Likewise. Also, check srec_write_record
  6224. return value.
  6225. (srec_write_section, srec_write_terminator): Likewise.
  6226. (srec_write_symbols): Change return type to boolean.
  6227. (internal_srec_write_object_contents): Check return value of
  6228. srec_write_symbols, srec_write_header, srec_write_section, and
  6229. srec_write_terminator.
  6230. * Makefile.in: Rebuilt dependencies.
  6231. Mon Apr 4 10:56:45 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  6232. * aix386-core.c (aix386_bfd_is_local_label): Correct cast from
  6233. asection to asymbol.
  6234. * ptrace-core.c (ptrace_unix_bfd_is_local_label): Correct cast from
  6235. bfd to asymbol.
  6236. * trad-core.c (trad_unix_bfd_is_local_label): Correct cast from
  6237. asection to asymbol.
  6238. Sun Apr 3 18:27:29 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6239. * som.c (som_slurp_string_table): Use malloc to allocate space
  6240. for the cached copy of the native string table.
  6241. (som_slurp_symbol_table): Likewise for the native symbol table.
  6242. (som_slurp_reloc_table): Likewise for the native and generic
  6243. relocation tables.
  6244. (som_bfd_free_cached_info): Free the cached native strings,
  6245. symbols, and relocations. Also free the canonical cached
  6246. relocations.
  6247. Fri Apr 1 12:40:58 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6248. * aoutx.h (aout_link_write_symbols): If keep_memory is false, make
  6249. sure the symbol name is stored in permanent memory before adding
  6250. it to the string table.
  6251. * archive.c (_bfd_write_archive_contents): Once we've found an
  6252. object, don't bother to look for more when deciding whether to
  6253. build a map.
  6254. (compute_and_write_armap): After adding the symbols for a BFD,
  6255. call bfd_free_cached_info on it.
  6256. Add bfd_free_cached_info support to a.out backends.
  6257. * aoutx.h (aout_get_external_symbols): Renamed from
  6258. aout_link_get_symbols. Read strings even if symbols have been
  6259. read. Store string size in obj_aout_string_size.
  6260. (NAME(aout,slurp_symbol_table)): Call aout_get_external_symbols to
  6261. read the symbols. Allocate the cached symbols with malloc, not
  6262. bfd_alloc.
  6263. (NAME(aout,slurp_reloc_table)): Allocate the cached relocs with
  6264. malloc, not bfd_alloc.
  6265. (NAME(aout,bfd_free_cached_info)): New function; free cached
  6266. symbols and relocs.
  6267. * libaout.h (struct aoutdata): Add external_string_size field.
  6268. (obj_aout_external_string_size): New accessor macro.
  6269. (NAME(aout,close_and_cleanup)): Don't declare.
  6270. (NAME(aout,bfd_free_cached_info)): Declare.
  6271. (aout_32_close_and_cleanup): Don't define.
  6272. (aout_64_close_and_cleanup): Don't define.
  6273. * aout-target.h (MY_bfd_free_cached_info): If not already defined,
  6274. define as NAME(aout,free_cached_info).
  6275. (MY_close_and_cleanup): If not already defined, define as
  6276. MY_bfd_free_cached_info.
  6277. * aout-adobe.c (aout_32_close_and_cleanup): Define.
  6278. (aout_32_bfd_free_cached_info): Don't define.
  6279. * bout.c (aout_32_close_and_cleanup): Define.
  6280. (aout_32_bfd_free_cached_info): Don't define.
  6281. * hp300hpux.c (MY_bfd_free_cached_info): Define as bfd_true.
  6282. (MY_close_and_cleanup): Don't define.
  6283. * i386lynx.c (NAME(lynx,slurp_reloc_table)): Allocate the cached
  6284. relocs with malloc, not bfd_alloc.
  6285. * i386os9k.c (aout_32_close_and_cleanup): Define.
  6286. (aout_32_bfd_free_cached_info): Don't define.
  6287. Add a new entry point to free memory cached by a BFD.
  6288. * targets.c (bfd_target): Add _bfd_free_cached_info field.
  6289. * bfd.c (bfd_free_cached_info): Define.
  6290. * bfd-in.h (JUMP_TABLE): Add _bfd_free_cached_info.
  6291. * bfd-in2.h: Rebuilt.
  6292. * All backends: Initialize bfd_free_cached_info entry point to
  6293. bfd_true.
  6294. * elf32-hppa.c (elf_hppa_reloc_type_lookup): Correct type of
  6295. first, unused, argument.
  6296. (hppa_elf_is_local_label): Declare instead of
  6297. som_bfd_is_local_label.
  6298. * coff-a29k.c (a29k_reloc): Add reloc_entry->address to value of
  6299. absolute R_IREL reloc.
  6300. Thu Mar 31 11:52:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6301. Added some support for Irix 4 shared libraries.
  6302. * ecoff.c (ecoff_new_section_hook): Set SEC_SHARED_LIBRARY for a
  6303. .lib section.
  6304. (ecoff_sec_to_styp_flags): Set SEC_SHARED_LIBRARY if
  6305. STYP_ECOFF_LIB bit is set.
  6306. (ecoff_compute_section_file_positions): Round the contents of a
  6307. .lib section up to the next page boundary.
  6308. (ecoff_set_section_contents): If we see a .lib section, increment
  6309. the vma by one to count the number of shared libraries we have.
  6310. (ecoff_write_object_contents): Don't crash if we see a
  6311. STYP_ECOFF_LIB section, and don't adjust text_start or data_start
  6312. or bss_size either.
  6313. * coffcode.h (CALC_ADDEND): Change to fetch original symbol value
  6314. from original BFD, rather than using value of current BFD symbol.
  6315. Needed for new linker.
  6316. * coff-sparc.c (CALC_ADDEND): Likewise.
  6317. * ecoff.c (ecoff_write_object_contents): Set the text_start and
  6318. data_start entries in the optional header correctly even if a text
  6319. or data section starts at location zero.
  6320. * reloc.c (bfd_reloc_code_real_type): Added BFD_RELOC_26 (from sef
  6321. and raeburn).
  6322. * bfd-in2.h: Rebuilt.
  6323. * nlm32-i386.c (nlm_i386_read_import): Null terminate the symbol
  6324. name.
  6325. * nlm32-alpha.c (nlm_alpha_read_import): Likewise.
  6326. * nlm32-sparc.c (nlm_sparc_read_import): Likewise.
  6327. * coffgen.c (coff_write_symbol): Reindented. Changed to return
  6328. boolean, and changed written to unsigned int *. Check error
  6329. returns from called functions.
  6330. (coff_write_alien_symbol): Likewise.
  6331. (coff_write_native_symbol): Likewise.
  6332. (coff_write_symbols): Likewise. Reworked checks on whether to
  6333. write symbol name to string table for clarity and to avoid core
  6334. dumping when given a non COFF symbol.
  6335. * libcoff-in.h (coff_write_symbols): Declare as returning boolean.
  6336. * libcoff.h: Rebuilt.
  6337. * coffcode.h (coff_write_object_contents): Check return value of
  6338. coff_write_symbols.
  6339. Wed Mar 30 16:25:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6340. Changes to let BFD return an error indication from
  6341. get_symtab_upper_bound, bfd_canonicalize_symtab,
  6342. bfd_get_reloc_upper_bound, and bfd_canonicalize_reloc. They now
  6343. return long instead of unsigned int, and use -1 to indicate an
  6344. error. Along the way, rename get_symtab_upper_bound to
  6345. bfd_get_symtab_upper_bound.
  6346. * bfd.c (bfd_get_reloc_upper_bound): Return long, and -1 on
  6347. errors.
  6348. (bfd_canonicalize_reloc): Likewise.
  6349. * syms.c (bfd_get_symtab_upper_bound): Renamed from
  6350. get_symtab_upper_bound.
  6351. * targets.c (bfd_target): Renamed _get_symtab_upper_bound to
  6352. _bfd_get_symtab_upper_bound, and changed it and
  6353. _bfd_canonicalize_symtab and _get_reloc_upper_bound and
  6354. _bfd_canonicalize_reloc to all return long.
  6355. * aoutx.h (NAME(aout,get_symtab)): Return long, and -1 on errors.
  6356. (NAME(aout,canonicalize_reloc)): Likewise.
  6357. (NAME(aout,get_reloc_upper_bound)): Likewise.
  6358. (NAME(aout,get_symtab_upper_bound)): Likewise.
  6359. * bout.c (b_out_canonicalize_reloc): Likewise.
  6360. (b_out_get_reloc_upper_bound): Likewise.
  6361. * coffcode.h (coff_canonicalize_reloc): Likewise.
  6362. * coffgen.c (coff_get_symtab_upper_bound): Likewise.
  6363. (coff_get_symtab): Likewise.
  6364. (coff_get_reloc_upper_bound): Likewise.
  6365. * ecoff.c (ecoff_get_symtab_upper_bound): Likewise.
  6366. (ecoff_get_symtab): Likewise.
  6367. (ecoff_canonicalize_reloc): Likewise.
  6368. * elfcode.h (elf_get_symtab_upper_bound): Likewise.
  6369. (elf_get_reloc_upper_bound): Likewise.
  6370. (elf_canonicalize_reloc): Likewise.
  6371. (elf_get_symtab): Likewise.
  6372. * hp300hpux.c (MY(get_symtab)): Likewise.
  6373. (MY(get_symtab_upper_bound)): Likewise.
  6374. (MY(canonicalize_reloc)): Likewise.
  6375. * i386lynx.c (NAME(lynx,canonicalize_reloc)): Likewise.
  6376. * ieee.c (ieee_slurp_external_symbols): Change return type to
  6377. boolean. Check for errors from get_symbol.
  6378. (ieee_slurp_symbol_table): Change return type to boolean. Check
  6379. for errors from ieee_slurp_external_symbols.
  6380. (ieee_get_symtab_upper_bound): Return long, and -1 on errors.
  6381. (ieee_get_symtab): Likewise.
  6382. (ieee_get_reloc_upper_bound): Likewise.
  6383. (ieee_canonicalize_reloc): Likewise.
  6384. * mipsbsd.c (MY(canonicalize_reloc)): Likewise.
  6385. * nlmcode.h (nlm_get_symtab_upper_bound): Likewise.
  6386. (nlm_get_symtab): Likewise.
  6387. (nlm_get_reloc_upper_bound): Likewise.
  6388. (nlm_canonicalize_reloc): Likewise.
  6389. * oasys.c (oasys_get_symtab_upper_bound): Likewise.
  6390. (oasys_get_symtab): Likewise.
  6391. (oasys_get_reloc_upper_bound): Likewise.
  6392. (oasys_canonicalize_reloc): Likewise.
  6393. * som.c (som_get_symtab_upper_bound): Likewise.
  6394. (som_get_symtab): Likewise.
  6395. (som_get_reloc_upper_bound): Likewise.
  6396. (som_canonicalize_reloc): Likewise.
  6397. * srec.c (srec_get_symtab_upper_bound): Likewise.
  6398. (srec_get_symtab): Likewise.
  6399. (srec_get_reloc_upper_bound): Define as bfd_0l.
  6400. (srec_canonicalize_reloc): Likewise.
  6401. * tekhex.c (tekhex_get_symtab): Return long, and -1 on errors.
  6402. (tekhex_get_symtab_upper_bound): Likewise.
  6403. (tekhex_get_reloc_upper_bound): Define as bfd_0l.
  6404. (tekhex_canonicalize_reloc): Likewise.
  6405. * libaout.h (NAME(aout,get_symtab_upper_bound)): Change
  6406. declaration to return long.
  6407. (NAME(aout,get_symtab)): Likewise.
  6408. (NAME(aout,canonicalize_reloc)): Likewise.
  6409. (NAME(aout,get_reloc_upper_bound)): Likewise.
  6410. * libcoff-in.h (coff_get_symtab_upper_bound): Likewise.
  6411. (coff_get_symtab): Likewise.
  6412. (coff_get_reloc_upper_bound): Likewise.
  6413. * libecoff.h (ecoff_get_symtab_upper_bound): Likewise.
  6414. (ecoff_get_symtab): Likewise.
  6415. (ecoff_canonicalize_reloc): Likewise.
  6416. * libelf.h (bfd_elf32_get_symtab_upper_bound): Likewise.
  6417. (bfd_elf32_get_symtab): Likewise.
  6418. (bfd_elf32_get_reloc_upper_bound): Likewise.
  6419. (bfd_elf32_canonicalize_reloc): Likewise.
  6420. (bfd_elf64_get_symtab_upper_bound): Likewise.
  6421. (bfd_elf64_get_symtab): Likewise.
  6422. (bfd_elf64_get_reloc_upper_bound): Likewise.
  6423. (bfd_elf64_canonicalize_reloc): Likewise.
  6424. * libnlm.h (nlmNAME(get_symtab_upper_bound)): Likewise.
  6425. (nlmNAME(get_symtab)): Likewise.
  6426. (nlmNAME(get_reloc_upper_bound)): Likewise.
  6427. (nlmNAME(canonicalize_reloc)): Likewise.
  6428. * archive.c (compute_and_write_armap): Use error_return and
  6429. no_memory_return labels rather than freeing information in various
  6430. places. Change storage, symcount and src_count to long. Check
  6431. errors from bfd_get_symtab_upper_bound and
  6432. bfd_canonicalize_symtab.
  6433. * bout.c (b_out_relax_section): Change reloc_size to long. Check
  6434. for errors from bfd_get_reloc_upper_bound and
  6435. bfd_canonicalize_reloc.
  6436. (b_out_get_relocated_section_contents): Likewise.
  6437. * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
  6438. Likewise.
  6439. * elf32-mips.c: Likewise.
  6440. * elf32-hppa.c (hppa_elf_stub_finish): Likewise.
  6441. (hppa_look_for_stubs_in_section): Check for errors from
  6442. bfd_get_symtab_upper_bound, bfd_canonicalize_symtab, and
  6443. bfd_canonicalize_reloc.
  6444. * ecofflink.c (bfd_ecoff_debug_accumulate_other): Check for errors
  6445. from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
  6446. * linker.c (generic_link_read_symbols): Likewise.
  6447. (_bfd_generic_final_link): Check for errors from
  6448. bfd_get_reloc_upper_bound and bfd_canonicalize_reloc.
  6449. * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
  6450. * reloc16.c (bfd_coff_reloc16_relax_section): Likewise.
  6451. (bfd_coff_reloc16_get_relocated_section_contents): Likewise.
  6452. * libbfd.c (bfd_0l): New function.
  6453. * libbfd-in.h (bfd_0l): Declare.
  6454. * aix386-core.c: Change get_symtab_upper_bound, get_symtab,
  6455. get_reloc_upper_bound, and canonicalize_reloc to use bfd_0l rather
  6456. than bfd_0u.
  6457. * cisco-core.c, hppabsd-core.c, hpux-core.c: Likewise.
  6458. * irix-core.c, osf-core.c, ptrace-core.c, trad-core.c: Likewise.
  6459. * bfd-in2.h: Rebuilt.
  6460. * libbfd.h: Rebuilt.
  6461. * libcoff.h: Rebuilt.
  6462. * nlm32-sparc.c (nlm_sparc_read_reloc): Remove unused variables
  6463. temp and name.
  6464. Wed Mar 30 08:33:04 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  6465. * hosts/dpx2.h: Define POSIX_UTIME.
  6466. Wed Mar 30 00:31:49 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  6467. * i386dynix.c, config/i386-dynix.mt: New files, handling Dynix
  6468. variant of a.out.
  6469. * configure.in, config.bfd: Use them for Dynix.
  6470. * Makefile.in: Add dependencies for i386dynix.o.
  6471. * targets.c: Add definition for i386dynix_vec.
  6472. * hosts/symmetry.h: Do not define TRAD_CORE_USER_OFFSET for Dynix.
  6473. Define HOST_DATA_START_ADDR and TRAD_UNIX_CORE_FILE_FAILING_SIGNAL
  6474. for Dynix. Remove inclusion of dynix3.h, Dynix bfd is now handled by
  6475. i386dynix.c
  6476. Mon Mar 28 12:53:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6477. * Makefile.in (BFD32_BACKENDS): Add coff-sparc.o.
  6478. * coffcode.h (coff_set_flags): Handle bfd_arch_powerpc like
  6479. bfd_arch_rs6000.
  6480. * config.bfd (powerpc-*-aix*): New target; use rs6000.mt.
  6481. * config/rs6000.mt (SELECT_ARCHITECTURES): Add bfd_powerpc_arch.
  6482. * aoutx.h (translate_from_native_sym_flags): Set SEC_RELOC flag
  6483. for generated constructor section.
  6484. Sun Mar 27 16:25:22 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6485. * som.c (som_begin_writing): New approach at dealing with holes
  6486. in executables left by the HP linker. Does not rely on subspace
  6487. alignments as subspaces are *NOT* guaranteed to be properly
  6488. aligned in an executable (can you believe that!).
  6489. Sat Mar 26 10:25:43 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6490. * som.c (som_get_section_contents): New function. Do not try
  6491. to actually read data from a section that doesn't have either
  6492. SEC_LOAD or SEC_DEBUGGING set (eg $BSS$) just return true.
  6493. * libbfd.c (bfd_read): Set bfd_error as appropriate for a short
  6494. read. (bfd_error_system_call or bfd_error_file_truncated).
  6495. * som.c: Do not blindly set bfd_error_system_call after a
  6496. failing bfd_read, bfd_write, or bfd_seek. In a few places
  6497. (like som_object_p) override the error status set by bfd_read.
  6498. * aix386-core.c, aout-encap,c archive.c, bout.c: Likewise.
  6499. * coff-rs6000.c, coffgen.c ecoff.c, elf.c: Likewise.
  6500. * elf32-hppa.c, elfcode.h, hp300hpux.c, i386lynx.c: Likewise.
  6501. * nlm32-alpha.c, nlm32-i386.c, nlm32-sparc.c: Likewise.
  6502. * som.c: Check return values from several bfd_{seek,read,write}
  6503. calls that we just assumed were not failing.
  6504. Fri Mar 25 11:44:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  6505. * hosts/sysv4.h (HAVE_PROCFS): Add comments about ptx4.
  6506. * config/sysv4.mh: Add comment.
  6507. * config/symmetry.mh: Change comment.
  6508. * configure.host: Use sysv4, not symmetry, for i[34]86-sequent-sysv4*.
  6509. Fri Mar 25 17:10:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6510. Changes to support linker relaxing of embedded MIPS PIC code to
  6511. use a five instruction sequence for function calls which are out of
  6512. range of the bal instruction.
  6513. * libecoff.h (struct ecoff_section_tdata): Define.
  6514. (ecoff_section_data): Define.
  6515. (ecoff_bfd_relax_section): Don't define.
  6516. * ecoff.c (ecoff_final_link_debug_accumulate): Don't read or free
  6517. the debugging information if it has already been read.
  6518. (ecoff_indirect_link_order): Handle _cooked_size being different
  6519. from _raw_size. Don't reread the contents or the relocs if they
  6520. have already been read in.
  6521. * coff-mips.c (mips_howto_table): Change bitsize of PCREL16 from
  6522. 18 to 16.
  6523. (PCREL16_EXPANSION_ADJUSTMENT): Define.
  6524. (mips_relocate_refhi): Take adjust argument.
  6525. (mips_relocate_section): Handle reloc offsets stored in section
  6526. used_by_bfd field. Call mips_relax_pcrel16 to handle details of
  6527. expanding an out of range PCREL16. Keep trace of adjustments
  6528. required by expansions. Set s and unset h when converting a reloc
  6529. from undefined to section. Change handling of PC relative relocs:
  6530. if against a section, they are correct in the object file, if
  6531. against an external symbol they are pcrel_offset.
  6532. (mips_relax_section): New function.
  6533. (mips_relax_pcrel16): New function.
  6534. (ecoff_bfd_relax_section): Define.
  6535. * coff-alpha.c (ecoff_bfd_relax_section): Define.
  6536. * ecofflink.c (bfd_ecoff_debug_accumulate): Handle adjustments
  6537. built by mips_relax_section when writing out addresses.
  6538. * elf32-mips.c (mips_elf_read_ecoff_info): Clear adjust field.
  6539. * aoutx.h (NAME(aout,find_nearest_line)): The caller expects
  6540. functionname_ptr to be set to a symbol name, so prepend
  6541. symbol_leading_char.
  6542. Thu Mar 24 11:33:46 1994 Steve Chamberlain (sac@jonny.cygnus.com)
  6543. * coff-h8300.c (h8300_reloc16_extra_cases): Add relaxing info
  6544. for 16bit relative branches.
  6545. * coff-h8500.c (r_high8, r_low16, r_high16): Don't complain on
  6546. overflow.
  6547. Thu Mar 24 09:21:13 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6548. * som.c (som_bfd_prep_for_ar_write): Ignore non-SOM objects.
  6549. (som_bfd_ar_write_symbol_stuff, som_write_armap): Likewise.
  6550. Wed Mar 23 14:29:31 1994 David J. Mackenzie (djm@rtl.cygnus.com)
  6551. * netbsd386.c (N_SET_FLAGS): Delete the old definition.
  6552. Wed Mar 23 14:58:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6553. Clean up the relaxing code for the new linker.
  6554. * targets.c (_bfd_relax_section): Take boolean *again argument
  6555. rather than asymbol list.
  6556. * bfd.c (bfd_relax_section): Change name of fourth argument from
  6557. symbols to again.
  6558. * reloc.c (bfd_generic_relax_section): Take boolean *again
  6559. argument rather than asymbol list. Always return true.
  6560. * bout.c: Include genlink.h.
  6561. (aligncode, perform_slip): Declare.
  6562. (perform_slip): Take BFD argument rather than asymbol list.
  6563. Changed all callers. Get the symbols from the BFD. Change the
  6564. hash table entry value as well as the symbol value.
  6565. (abs32code): Take BFD argument rather than asymbol list. Changed
  6566. all callers.
  6567. (aligncode): Likewise.
  6568. (b_out_relax_section): Take boolean *again argument rather than
  6569. asymbol list. Only return false if an error occurred. Set *again
  6570. to false. Get symbols from BFD.
  6571. * reloc16.c: Include genlink.h.
  6572. (bfd_perform_slip): Take BFD argument rather than asymbol list.
  6573. Get the symbols from the BFD. Change the hash table entry value
  6574. as well as the symbol value.
  6575. (bfd_coff_reloc16_relax_section): Take boolean *again argument
  6576. rather than asymbol list. Only return false if an error occurred.
  6577. Set *again to false. Get symbols from BFD.
  6578. * coffcode.h (bfd_coff_backend_data): Change
  6579. _bfd_coff_reloc16_estimate to take BFD argument rather than
  6580. asymbol list.
  6581. (bfd_coff_reloc16_estimate): Corresponding change.
  6582. (dummy_reloc16_estimate): Corresponding change.
  6583. * libcoff-in.h (bfd_coff_reloc16_relax_section): Change
  6584. declaration to take boolean * rather than asymbol list.
  6585. (bfd_perform_slip): Change declaration to take BFD rather than
  6586. asymbol list.
  6587. * coff-h8300.c (h300_reloc16_estimate): Take BFD argument rather
  6588. than asymbol list. Changed calls to bfd_perform_slip.
  6589. * bfd-in2.h: Rebuilt.
  6590. * libbfd.h: Rebuilt.
  6591. * libcoff.h: Rebuilt.
  6592. * Makefile.in: Rebuilt dependencies.
  6593. * genlink.h (_bfd_generic_link_get_symbols): Define.
  6594. (_bfd_generic_link_get_symcount): Define.
  6595. * linker.c (generic_link_read_symbols): New function.
  6596. (generic_link_add_object_symbols): Use it. Use
  6597. _bfd_generic_link_get_symbols and _bfd_generic_link_get_symcount
  6598. to get the symbols from the BFD.
  6599. (generic_link_check_archive_element): Likewise.
  6600. (_bfd_generic_final_link): Likewise.
  6601. (_bfd_generic_link_output_symbols): Likewise.
  6602. (default_indirect_link_order): Likewise.
  6603. (generic_link_add_symbol_list): Store pointer to hash table entry
  6604. in asymbol udata field.
  6605. Tue Mar 22 13:09:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6606. * coff-mips.c (mips_howto_table): Add entry for new MIPS_R_PCREL16
  6607. reloc, used in embedded PIC code.
  6608. (mips_adjust_reloc_in): Change sanity check to permit new reloc.
  6609. (mips_bfd_reloc_type_lookup): Turn BFD_RELOC_16_PCREL_S2 into
  6610. MIPS_R_PCREL16.
  6611. * elf32-mips.c (mips_elf_final_link): Account for link_order
  6612. relocs when allocating space for relocations. Set SEC_RELOC flag
  6613. for any section which has relocs. Handle link_order relocs in
  6614. link_order loop. Use _bfd_generic_link_add_symbols_collect for
  6615. add_symbls entry point.
  6616. * linker.c (_bfd_generic_final_link): Set reloc_count to 0 before
  6617. counting relocs. Set SEC_RELOC flag for any section which has
  6618. relocs.
  6619. * linker.c (_bfd_default_link_order): Handle bfd_data_link_order.
  6620. * linker.c (_bfd_generic_link_add_symbols): Just call
  6621. generic_link_add_symbols.
  6622. (_bfd_generic_link_add_symbols_collect): New function, like
  6623. _bfd_generic_link_add_symbols but also collect constructors and
  6624. destructors by name as collect2 does.
  6625. (generic_link_add_symbols): New function, like old
  6626. _bfd_generic_link_add_symbols but with collect argument.
  6627. (generic_link_add_object_symbols): Take collect argument.
  6628. (generic_link_check_archive_element_no_collect): New function.
  6629. (generic_link_check_archive_element_collect): New function.
  6630. (generic_link_check_archive_element): Take collect argument.
  6631. (generic_link_add_symbol_list): Take collect argument.
  6632. (_bfd_generic_link_add_one_symbol): Rename constructor argument to
  6633. collect.
  6634. * libbfd-in.h (_bfd_generic_link_add_symbols_collect): Declare.
  6635. * libbfd.h: Rebuilt.
  6636. Tue Mar 22 10:04:00 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6637. * archive.c (bfd_construct_extended_name_table): Use ar_padchar
  6638. for first character in an extended name.
  6639. (_bfd_write_archive_contents): If ar_padchar == '/', then use
  6640. "//" as the name of the special archive member holding the
  6641. extended name table.
  6642. Mon Mar 21 12:28:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6643. Support for link_order types which generate relocs in order to
  6644. support -Ur in the linker.
  6645. * linker.c (generic_link_add_symbol_list): Remove bitsize argument
  6646. from call to _bfd_generic_link_add_one_symbol.
  6647. (_bfd_generic_link_add_one_symbol): Remove bitsize argument.
  6648. Don't pass bitsize to constructor call back. Pass BFD_RELOC_CTOR
  6649. instead of bitsize to add_to_set call back.
  6650. (_bfd_generic_final_link): Account for link_order relocs when
  6651. allocating space for relocations. Handle them in link_order loop.
  6652. (_bfd_generic_reloc_link_order): New function.
  6653. (_bfd_default_link_order): If a reloc_link_order is seen here,
  6654. abort.
  6655. (_bfd_count_link_order_relocs): New function.
  6656. * libbfd-in.h (_bfd_generic_link_add_one_symbol): Remove bitsize
  6657. argument from declaration.
  6658. (_bfd_generic_reloc_link_order): Declare.
  6659. (_bfd_count_link_order_relocs): Declare.
  6660. * libbfd.h: Rebuilt.
  6661. * aoutx.h (aout_link_add_symbols): Remove bitsize argument from
  6662. call to _bfd_generic_link_add_one_symbol.
  6663. (NAME(aout,final_link)): Account for link_order relocs when
  6664. allocating space for relocations. Handle them after handling all
  6665. input BFDs.
  6666. (aout_link_reloc_link_order): New function.
  6667. * ecoff.c (ecoff_link_add_externals): Remove bitsize argument from
  6668. call to _bfd_generic_link_add_one_symbol.
  6669. (ecoff_bfd_final_link): Account for link_order relocs when
  6670. allocating space for relocations. Handle them in link_order loop.
  6671. (ecoff_link_write_external): Set the storage class of a defined
  6672. linker created symbol based on the section it is in. Correct
  6673. bfd_link_hash_weak case to use .sc rather than .st.
  6674. (ecoff_reloc_link_order): New function.
  6675. * coff-alpha.c (alpha_bfd_reloc_type_lookup): Handle
  6676. BFD_RELOC_CTOR.
  6677. * coff-mips.c (mips_bfd_reloc_type_lookup): Likewise.
  6678. * sunos.c (sunos_read_dynamic_info): Remove unused locals dynsym
  6679. and buf.
  6680. * cisco-core.c (cisco_core_file_p): Only pass one argument to
  6681. bfd_zmalloc. Free a pointer, not a union.
  6682. (cisco_bfd_is_local_label): Correct cast from asection to asymbol.
  6683. Sun Mar 20 09:24:36 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6684. * som.c (som_begin_writing): Fix thinko (off by one error).
  6685. * som.c (bfd_section_from_som_symbol): Only to do the value
  6686. comparison for function symbols within executables.
  6687. * som.c (bfd_section_from_som_symbol): Renamed from
  6688. som_section_from_subspace_index. Pass in a native SOM symbol.
  6689. For executables, iterate through the sections to find out
  6690. which contains the symbol's address rather than using the
  6691. symbol_info field. (symbol_info has a different meaning for
  6692. dynamicly linked executables.)
  6693. * trad-core.c (trad_unix_core_file_p): Don't pass abfd to
  6694. bfd_zmalloc.
  6695. * som.c (som_begin_writing): Fix braino (one call to align
  6696. space/subspace data was done unconditionally rather than
  6697. just for executables.)
  6698. * som.c (som_begin_writing): Align text in all executables to
  6699. make HPUX kernel happy. Fixes strip/objcopy for shared
  6700. executables.
  6701. Sat Mar 19 07:06:59 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6702. * som.c (som_begin_writing): Account for alignment needs of
  6703. subspaces too when writing executables. Never request a negative
  6704. bss size. Fixes some problems with demand paged executables,
  6705. still having problems with pure executables and shared executables.
  6706. Fri Mar 18 19:12:47 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  6707. * trad-core.c (trad_unix_core_file_p): Call bfd_zmalloc not
  6708. bfd_zalloc for rawptr, because later on we may call free, not
  6709. bfd_release, on it.
  6710. * bfd.c (struct _bfd): Add cisco_core_struct to tdata union.
  6711. * libbfd.c (bfd_read, bfd_seek): Add comments regarding errors.
  6712. * cisco-core.c: New file.
  6713. * Makefile.in: Change accordingly.
  6714. * configure.in: Recognize cisco_core_vec.
  6715. * config/m68k-aout.mt (SELECT_VECS): Add cisco_core_vec.
  6716. * targets.c: Add cisco_core_vec.
  6717. * bfd-in2.h: Rebuilt.
  6718. Fri Mar 18 18:13:49 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6719. * som.h (som_copyable_section_data_struct): New structure
  6720. containing all the private section information which needs
  6721. to be copied from input section to output section during
  6722. objcopy or strip.
  6723. (som_section_data_struct): Remove several fields now in
  6724. som_copyable_section_data_struct. Make the space and
  6725. subspace dictionaries be pointers (to save space when
  6726. only reading objects).
  6727. * som.c (bfd_som_set_section_attributes): Now returns a boolean;
  6728. some references changed. Allocate a copyable data stucture if
  6729. none exists. Store info into the copyable data structure.
  6730. (bfd_som_set_subsection_attributes): Likewise.
  6731. (som_is_space, som_is_subspace, som_is_container): New functions.
  6732. Use these instead of directly accessing private data.
  6733. (som_prep_headers): Allocate space and subspace headers here.
  6734. Fill in some fields in the space/subspace headers from the
  6735. copyable data.
  6736. (som_bfd_copy_private_section_data): Only copy the stuff
  6737. that we really need to make objcopy and strip work. Allocate
  6738. the copy_data structure for the output bfd before copying.
  6739. * som.h (struct som_exec_data): New structure to hold exec
  6740. info that must be preserved when running objcopy/strip.
  6741. (struct somdata): Add new "exec_data" field and accessor
  6742. macro. Add some comments on how the various fields are used.
  6743. (som_section_data_struct): Make is_space and is_subspace bitfields.
  6744. Delete unused subspace_index. All references now use the
  6745. target_index field within the section structure itself.
  6746. * som.c (make_unique_section): Delete unused declaration.
  6747. (som_bfd_copy_private_bfd_data): New function.
  6748. (som_object_setup): Allocate space for and save exec information
  6749. that needs to be copied during objcopy/strip.
  6750. (som_mkobject): Do not allocate space for a file header here.
  6751. It is not used when only reading SOM objects.
  6752. (som_prep_headers): Allocate space for and attach a file header
  6753. to the output bfd. For executables, use the saved system_id
  6754. value rather than trying to guess the right value. Do not abort
  6755. wwhen setting file_hdr->entry* for executables.
  6756. (som_begin_writing): For executables, set the exec_entry and
  6757. exec_flags fields.
  6758. (som_copy_private_backend_section_data): Always return a value.
  6759. * libhppa.h (PA_PAGESIZE): Define.
  6760. * som.c (SOM_ALIGN): Define.
  6761. (som_begin_writing): If writing an executable, initialize all
  6762. fields in the exec header to zero. Update fields in the exec
  6763. header as sizes of loadable subspaces are computed. Carefully
  6764. preserve alignments when building executables. Actually write the
  6765. exec after all the fields are filled in.
  6766. * Better long-filename handling. Reads SOM ABI compliant extended
  6767. names, but doesn't quite write compliant extended names yet.
  6768. * som.c (som_slurp_extended_name_table): Delete function. The
  6769. generic code will handle things correctly.
  6770. (som_slurp_armap): Seek to the beginning of the next member.
  6771. (normalize): New function.
  6772. (som_bfd_ar_write_symbol_stuff): Take the size of the extended
  6773. name table into account when computing the file offsets in the
  6774. SOM dictionary. Make sure to align to an even boundary.
  6775. (som_write_armap): Initialize the checksum to zero.
  6776. (ar_maxchars): Fix. Opps.
  6777. Fri Mar 18 20:35:24 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  6778. * aoutx.h (reloc_type_lookup): Handle BFD_RELOC_CTOR on a 64-bit
  6779. machine. Handle BFD_RELOC_SPARC13 and BFD_RELOC_SPARC_BASE13.
  6780. Thu Mar 17 18:26:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  6781. * bfd-in.h (BFD_VERSION): Use @VERSION@.
  6782. * Makefile.in (bfd.h): Replace it with contents of VERSION file.
  6783. * bfd-in2.h: Regenerated.
  6784. * trad-core.c (trad_unix_bfd_is_local_label): Fixed typo where
  6785. this was also named trad_unix_bfd_copy_private_bfd_data.
  6786. Thu Mar 17 10:37:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  6787. * aoutx.h, elfcode.h, coff-alpha.c, bout.c, ecoff.c, ecofflink.c,
  6788. elf32-hppa.c, elf32-mips.c, linker.c, som.c, sunos.c: If malloc(0)
  6789. returns NULL, it is not an error. It's possible that some of
  6790. these checks are not necessary (because the size can never be
  6791. zero), but putting in the checks is the conservative thing to do
  6792. in light of the fact that some of these malloc calls replaced
  6793. unchecked alloca calls, in which a zero argument would work fine.
  6794. Thu Mar 17 11:44:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6795. * osf-core.c (osf_core_bfd_copy_private_bfd_data): Remove
  6796. duplicate definition.
  6797. (osf_core_bfd_is_local_label): Define.
  6798. * reloc.c (bfd_generic_get_relocated_section_contents): Don't fail
  6799. if malloc (0) fails. bfd_canonicalize_reloc returning 0 is not a
  6800. failure indication, it merely means there are no relocs.
  6801. * elfcode.h (NAME(bfd_elf,write_object_contents)): Don't use space
  6802. after NAME, since SunOS /bin/cc can't handle it.
  6803. Wed Mar 16 16:43:33 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  6804. * netbsd386.c (N_SET_FLAGS): Don't nuke the machine id field.
  6805. From sukes@glue.umd.edu (Tasuki Hirata).
  6806. Wed Mar 16 07:55:54 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  6807. * aoutf1.h (4 places): Use a simple #if on ARCH_SIZE, rather than
  6808. all that convoluted stuff with NAME, CAT3, etc. The convoluted
  6809. stuff broke for SunOS4 /bin/cc (due to DEFUN elimination, I guess).
  6810. Wed Mar 16 00:02:05 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6811. * som.c (som_prep_for_fixups): Detect section symbols based
  6812. on either the lack of private data or the symbol flags. Do not
  6813. munge section symbol names anymore -- they no longer confuse GDB.
  6814. (som_begin_writing): Leave space for an exec header if writing
  6815. an executable.
  6816. (som_slurp_symbol_table): Recognize both forms of section symbol
  6817. names "L$0\002" and "$<FOO>$". Change the name of "L$0\002"
  6818. section symbols to be the name of the section they represent.
  6819. Debugging symbols begin with "L$0\001", not just "L$".
  6820. Tue Mar 15 22:58:28 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6821. * bfd-in2.h, libbfd.h, libcoff.h: Rebuilt.
  6822. * bfd-in.h (JUMP_TABLE): Add new entries to the jump table
  6823. for bfd_copy_private_section_data, bfd_copy_private_bfd_data,
  6824. and bfd_is_local_label.
  6825. * targets.c: Add new entries to the bfd_target structure.
  6826. * bfd.c (bfd_copy_private_bfd_data): New definition.
  6827. * section.c (bfd_copy_private_section_data): New definition.
  6828. * syms.c (bfd_is_local_label): New definition.
  6829. * libbfd-in.h (bfd_generic_is_local_label): Declare.
  6830. * libbfd.c (bfd_generic_is_local_label): New function.
  6831. * *-core.c: Provide default definitions for new functions in
  6832. the target vector which all point to bfd_false.
  6833. * aout-target.h, coffcode.h, elf32-target.h elf64-target.h, ieee.c
  6834. libaout.h, libecoff.h, nlm-target.h, oasys.c, srec.c, tekhex.c
  6835. Default new vectors for copying private backend data to bfd_true.
  6836. Default new vector for determining if a symbol is a local label
  6837. to bfd_generic_is_local_label.
  6838. * som.c (som_bfd_copy_private_section_data): New function.
  6839. (som_bfd_is_local_label): New function.
  6840. (som_bfd_copy_private_bfd_data): For now default to bfd_true.
  6841. * elf32-hppa.c (hppa_elf_is_local_label): New function.
  6842. Tue Mar 15 23:55:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6843. * cf-m68klynx.c (CALC_ADDEND): Use _bfd_m68klynx_howto_table.
  6844. Tue Mar 15 04:41:13 1994 David J. Mackenzie (djm@rtl.cygnus.com)
  6845. * Most files:
  6846. Replace DEFUN and DEFUN_VOID with K&R-style function definition.
  6847. Indent some of them to GNU standards.
  6848. * aout32.c, archures.c, core.c, cpu-h8300.c, cpu-i960.c,
  6849. cpu-m68k.c, cpu-m88k.c, cpu-mips.c, cpu-vax.c, ctor.c, demo64.c,
  6850. elf32-hppa.h, gen-aout.c, host-aout.c, init.c, libhppa.h,
  6851. libieee.h, liboasys.h, newsos3.c, som.h, stab-syms.c, sunos.c:
  6852. Update copyright years.
  6853. Mon Mar 14 11:41:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6854. * som.c (som_prep_for_fixups): A relocation involving the section
  6855. symbol for the *ABS* section is really a relocation involving
  6856. no symbol.
  6857. (som_slurp_symbol_table): Do not set BSF_GLOBAL or BSF_EXPORT for
  6858. undefined symbols. Correctly distinguish between debugger symbols
  6859. and section symbols.
  6860. * som.c (setup_sections): Set SEC_DEBUGGING and the section attributes
  6861. for spaces and subspaces.
  6862. * som.c (som_bfd_count_ar_symbols): Fix typo.
  6863. * som.c (som_object_setup): Set EXEC_P, D_PAGED, WP_TEXT, and
  6864. HAS_RELOC based on the object's magic number.
  6865. (make_unique_section): Delete function. BFD and its users are
  6866. prepared to handle multiple sections with the same name.
  6867. (setup_sections): Allocate space on the BFD's obstack to hold
  6868. section names. Use bfd_make_setion_anyway rather than the
  6869. obsolete make_unique_section.
  6870. (som_prep_headers): Choose the correct SOM magic number based
  6871. on the BFD's flags.
  6872. (som_bfd_fill_in_ar_symbols): Return false, not NULL on error.
  6873. Sat Mar 12 09:46:09 1994 Ian Lance Taylor (ian@cygnus.com)
  6874. * elf32-ppc.c: Renamed from elf32-powerpc.c.
  6875. * nlm32-ppc.c: Renamed from nlm32-powerpc.c.
  6876. * Makefile.in, configure.in: Corresponding changes.
  6877. Fri Mar 11 22:27:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  6878. * elf32-powerpc.c: Extensive changes to update to preliminary ABI.
  6879. Fri Mar 11 00:34:59 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  6880. * sunos.c (sunos_read_dynamic_info): Assume that dynamic info
  6881. is always located at the start of the data section to allow
  6882. recovery of the dynamic info from a stripped executable.
  6883. * ecoff.c (ecoff_styp_to_sec_flags): Handle STYP_PDATA, STYP_XDATA
  6884. and STYP_COMMENT.
  6885. Wed Mar 9 17:17:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  6886. * libbfd-in.h: Remove alloca cruft. It was missing some necessary
  6887. cruft (like the #pragma alloca for AIX).
  6888. In addition to that problem, the C alloca calls xmalloc, which
  6889. means checking for being out of memory can't work right. The
  6890. following changes remove all uses of alloca from BFD.
  6891. * hosts/solaris2.h: Remove alloca cruft.
  6892. * som.c: Replace alloca with a fixed size auto array.
  6893. * aoutx.h, elfcode.h, nlmcode.h, bout.c, coff-alpha.c, ecoff.c,
  6894. ecofflink.c, elf32-hppa.c, elf32-mips.c, linker.c, reloc.c, som.c,
  6895. sunos.c: Replace alloca with malloc and appropriate error checking and
  6896. freeing.
  6897. * linker.c: Replace alloca with obstack_alloc.
  6898. * libbfd.h: Rebuilt.
  6899. Tue Mar 8 12:10:38 1994 Ian Lance Taylor (ian@cygnus.com)
  6900. * coff-mips.c (mips_relocate_section): Handle MIPS_R_LITERAL like
  6901. MIPS_R_GPREL.
  6902. Sat Mar 5 14:08:54 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  6903. * elf32-hppa.h, elfcode.h: Replace uses of Elf*_Half, Elf*_Word,
  6904. Elf*_Off typedefs by their expansion, the typedefs have been
  6905. removed from include/elf/internal.h.
  6906. * elfcode.h (bfd_section_from_shdr): Handle SHT_DYNAMIC section like
  6907. SHT_PROGBITS section.
  6908. Thu Mar 3 20:03:39 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6909. * som.h (_PA_RISC_ID): Treat HOST_HPPAOSF just like HOST_HPPABSD.
  6910. Wed Mar 2 13:28:06 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
  6911. * configure.host: Recognize i[34]86-sequent-*.
  6912. * trad-core.c (trad_unix_core_file_p): A non-zero, not zero,
  6913. return from bfd_seek indicates an error.
  6914. New macro TRAD_CORE_DSIZE_INCLUDES_TSIZE to replace
  6915. TRAD_CORE_STACK_OFFSET.
  6916. * hosts/symmetry.h: Define TRAD_CORE_DSIZE_INCLUDES_TSIZE and
  6917. TRAD_CORE_USER_OFFSET but not HOST_STACK_OFFSET.
  6918. Wed Mar 2 11:57:03 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6919. * som.[ch]: Do not include libhppa.h in som.c, instead include
  6920. it in som.h.
  6921. * elf32-hppa.[ch]: Do not include libhppa.h in elf32-hppa.c, instead
  6922. include it in elf32-hppa.h.
  6923. * som.c (log2): Return -1 on error rather than aborting.
  6924. (setup_sections): Bubble up an error from log2.
  6925. * Changes to make HP C compiler happy in both traditional
  6926. and ANSI mode.
  6927. * som.c (hppa_som_gen_reloc_type): Use correct enum type for
  6928. field parameter.
  6929. (bfd_som_set_section_attributes): Use unsigned int rather than
  6930. unsigned char to avoid GNU-C extensions.
  6931. (bfd_som_attach_aux_hdr): Return a boolean to indicate success
  6932. or failure rather than aborting on failure.
  6933. * som.h (bfd_som_set_section_attributes): Fix prototype to match
  6934. som.c changes.
  6935. (bfd_som_attach_aux_hdr): Add prototype.
  6936. (hppa_som-gen_reloc_type): Likewise.
  6937. * elf32-hppa.c: Add a couple casts to make HP compiler happy.
  6938. (hppa_look_for_stubs_in_section): Do not return false on failure
  6939. until rest of code is ready to handle it. Abort for now.
  6940. Tue Mar 1 18:33:59 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
  6941. * bfd-in2.h: Rebuilt.
  6942. Tue Mar 1 13:06:53 1994 Kung Hsu (kung@mexican.cygnus.com)
  6943. * i386os9k.c: use new functions bfd_set_error and bfd_get_error.
  6944. * Makefile.in: delete an extra blank.
  6945. * configure.in : Add i396os9k_vec.
  6946. Mon Feb 28 15:41:01 1994 Kung Hsu (kung@mexican.cygnus.com)
  6947. * config.bfd : Add i386-os9k.
  6948. * config/i386-os9k.mt : Newly add os9k target makefile.
  6949. * i386os9k.c : new file to handle os9k format bfd.
  6950. * Makefile.in : Handle new file i386os9k.c
  6951. * targets.c : Add bfd_target_os9k_flavour and i386os9k_vec.
  6952. * cache.c : Initialize cache_sentinel to 0.
  6953. Sun Feb 27 16:30:55 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6954. * elf32-hppa.c (mismatches, retval_mismatches): Fix mismatch
  6955. action in case where caller specified no argument relocation.
  6956. (hppa_elf_build_linker_stub): Try again to get the sym_ptr_ptr
  6957. right in the original relocation and the stub's relocation.
  6958. * elf32-hppa.h (hppa_look_for_stub_in_section): Fix typo. Delete
  6959. unused symbols argument.
  6960. * elf32-hppa.c (hppa_elf_stub_reloc): Accept asymbol ** rather
  6961. than asymbol * for original target symbol. All callers changed.
  6962. Set reloc->sym_ptr_ptr appropriately.
  6963. (hppa_elf_build_linker_stub): Set reloc->sym_ptr_ptr correctly.
  6964. (hppa_elf_look_for_stubs_in_section): No longer need symbols
  6965. argument. Use the output symbols when canonicalizing the relocs,
  6966. creating them if necessary.
  6967. * linker.c (_bfd_generic_link_output_symbols): Do not
  6968. rebuild/clobber the output symbols if they already exist.
  6969. Sun Feb 27 15:22:36 1994 Stan Shebs (shebs@andros.cygnus.com)
  6970. * targets.c (BFD_SEND, BFD_SEND_FMT): Add debugging versions that
  6971. check all the pointer dereferences. Enabled via DEBUG_BFD_SEND.
  6972. * bfd-in2.h: Rebuilt.
  6973. * srec.c (hex_value): Always set to a size of 256 bytes.
  6974. (srec_init): Cosmetic changes.
  6975. Sun Feb 27 11:18:47 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  6976. * elf32-hppa.c: Second half of major cleanup. More comments,
  6977. PARAMize and staticize rest of functions. Delete unused
  6978. functions. Delete unused/unnecessary arguments to some functions.
  6979. Group static vars together. Abort for bad errors until we have
  6980. error code propogation working. Work on spacing and indention.
  6981. Add FIXMEs for unresolved problems. Use enums rather than
  6982. #defines for lots of things. Merge two functions which build
  6983. linker stubs into a single function (so they can easily share a
  6984. ton of common code).
  6985. Sat Feb 26 10:00:45 1994 Ian Lance Taylor (ian@cygnus.com)
  6986. * reloc.c (_bfd_relocate_contents): Adjust handling of overflow to
  6987. avoid depending upon right shifts of signed numbers, and to
  6988. correct handling of src_mask with lower bits zero.
  6989. * aoutx.h, archive.c: Add casts to avoid warnings from SVR4 cc.
  6990. * ecoff.c, ecofflink.c, ecoffswap.h, srec.c: Likewise.
  6991. * elf32-i386.c: Likewise.
  6992. * elfcode.h (bfd_section_from_shdr): Make i unsigned; remove old
  6993. #if 0 code.
  6994. (elf_write_phdrs): Make i unsigned.
  6995. (map_program_segments): Make i and n_left unsigned.
  6996. (assign_file_positions_except_relocs): Make i unsigned.
  6997. (write_shdrs_and_ehdr): Make count unsigned.
  6998. (assign_file_positions_for_relocs): Make i unsigned.
  6999. (NAME(bfd,elf_write_object_contents)): Make count unsigned.
  7000. (section_from_elf_index): Make index argument unsigned.
  7001. Fri Feb 25 21:34:58 1994 Ian Lance Taylor (ian@cygnus.com)
  7002. * elfcode.h: Don't include assert.h.
  7003. (swap_out_syms): Use BFD_ASSERT rather than assert.
  7004. * linker.c (_bfd_generic_link_write_global_symbol): Add missing
  7005. break in switch.
  7006. * hosts/i386v4.h (qsort, strtol): Remove incorrect and useless
  7007. declarations.
  7008. Fri Feb 25 16:35:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  7009. * libhppa.h (hppa_rebuild_insn): Moved here from elf32-hppa.c.
  7010. * elf32-hppa.h (elf_hppa_tc_symbol): Add new arguments.
  7011. (elf_hppa_tc_make_sections): Likewise.
  7012. (elf_hppa_final_processing): Add extern decl.
  7013. * elf32-hppa.c: First half of major cleanup. Add/cleanup lots of
  7014. comments. PARAMize some static functions. Delete unused functions.
  7015. Delete unused/unnecessary arguments to many functions. Group
  7016. static vars together. Collapse common case statements together
  7017. in many places. Use default case when possible instead of listing
  7018. each case separately. Abort for bad errors until we get error
  7019. code propogation working. Work on spacing and indention problems.
  7020. Add FIXMEs for some unresolved problems. Delete hopelessly broken
  7021. COMPLEX relocation support (it's never used anyway).
  7022. (hppa_elf_rebuild_insn): Delete. Moved into libhppa.h.
  7023. (elf_hppa_tc_symbol): Accept and use new arguments (symext chains).
  7024. (elf_hppa_tc_make_sections): Likewise.
  7025. * format.c (bfd_check_format_matches): Initialize matching_vector
  7026. to keep gcc -Wall quiet.
  7027. * elfcode.h (elf_slurp_reloca_table): Fix typo.
  7028. * som.c (som_get_symtab_upper_bound): Use "sizeof (asymbol *)"
  7029. not "sizeof (som_symbol_type *)".
  7030. * elfcode.h (elf_get_symtab_upper_bound): Use "sizeof (asymbol *)"
  7031. not "sizeof (asymbol"). Opps.
  7032. Fri Feb 25 13:19:04 1994 Ted Lemon (mellon@pepper.ncd.com)
  7033. * bfd.c (bfd_get_gp_size): Can't return gp value on an archive.
  7034. (bfd_set_gp_size): Can't set gp value on an archive.
  7035. Fri Feb 25 12:57:00 1994 Steve Chamberlain (sac@jonny.cygnus.com)
  7036. * srec.c (pass_over): Don't skip too many characters when
  7037. end of line seen.
  7038. Fri Feb 25 11:41:57 1994 Ian Lance Taylor (ian@cygnus.com)
  7039. * ecoff.c (ecoff_sizeof_headers): Align result to 16 byte
  7040. boundary.
  7041. Thu Feb 24 07:13:22 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  7042. * som.c (som_bfd_derive_misc_symbol_info): Derive symbol_info
  7043. field for absolute symbols in the same manner as undefined
  7044. and common symbols.
  7045. Thu Feb 24 04:29:19 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  7046. * elfcode.h (elf_core_file_p): Check for core file e_machine match
  7047. like in elf_object_p.
  7048. Wed Feb 23 18:28:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  7049. * elfcode.h (alloca): Delete declaration.
  7050. * som.c (som_prep_headers): Use CPU_PA_RISC1_0 for magic
  7051. number rather than HP9000S800_ID. Note som.c is careful
  7052. to make sure CPU_PA_RISC1_0 is always defined.
  7053. Mon Feb 21 10:12:02 1994 Stan Shebs (shebs@andros.cygnus.com)
  7054. * Makefile.in (targets.o, archures.o): Use ALL_CFLAGS to supply
  7055. flags to explicit compile actions.
  7056. Mon Feb 21 09:50:06 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
  7057. * ecofflink.c (ecoff_write_symhdr): Set symhdr->magic here.
  7058. * ecoff.c (ecoff_write_object_contents): Make sure .bss section
  7059. ends on a page boundary if there is no symbol table.
  7060. (ecoff_bfd_final_link): Don't set symhdr->magic here.
  7061. * hosts/hp300.h: Include <stdlib.h>; don't declare free.
  7062. * som.c (som_bfd_count_ar_symbols): Use a pointer and alloca
  7063. rather than an array of variable size.
  7064. (som_bfd_fill_in_ar_symbols): Likewise.
  7065. (som_bfd_ar_write_symbol_stuff): Likewise.
  7066. * coff-alpha.c (alpha_relocate_section): Rewrite mask and shift
  7067. operation to avoid OSF 1.3 cc bug.
  7068. * ecoff.c (ecoff_write_object_contents): Make text_size, data_size
  7069. and bss_size bfd_size_type instead of unsigned long. Make
  7070. text_start and data_start bfd_vma instead of unsigned long.
  7071. * ecofflink.c (ecoff_add_string): Remove incorrect cast of return
  7072. value.
  7073. Sun Feb 20 16:06:54 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
  7074. * linker.c (_bfd_generic_link_add_archive_symbols): Consider
  7075. symbols in the order they appear in the archive map.
  7076. Sat Feb 19 03:17:32 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  7077. * coff-alpha.c (reloc_nil): Add forward declaration, add missing
  7078. error_message argument.
  7079. * coff-sparc.c (bfd_coff_generic_reloc): Add forward declaration,
  7080. add missing error_message argument.
  7081. * mipsbsd.c (mips_fix_hi16_s): Add forward declaration, add missing
  7082. error_message argument.
  7083. Fri Feb 18 11:41:58 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7084. Support for PowerPC NetWare.
  7085. * nlm32-powerpc.c: New file.
  7086. * config.bfd (powerpc-*-netware*): New target; use ppc-nlm.
  7087. * config/ppc-nlm.mt: New file.
  7088. * configure.in (nlm32_powerpc_vec): New target vector; use
  7089. nlm32-powerpc.o, nlm32.o, nlm.o.
  7090. * targets.c (nlm32_powerpc_vec): Declare.
  7091. * Makefile.in (BFD32_BACKENDS): Add nlm32-powerpc.o.
  7092. (CFILES): Add nlm32-powerpc.c.
  7093. Initial support for PowerPC ELF. Done without an ABI, and
  7094. probably to be changed when I get an ABI.
  7095. * config.bfd (powerpc-*-sysv4*): New target; use ppc-elf.
  7096. * config/ppc-elf.mt: New file.
  7097. * configure.in (bfd_elf32_powerpc_vec): New target vector; use
  7098. elf32-powerpc.o, elf32.o, elf.o.
  7099. * elf32-powerpc.c: New file.
  7100. * elfcode.h (prep_headers): Add bfd_arch_powerpc case.
  7101. (elf_set_arch_mach): Likewise.
  7102. * targets.c (bfd_elf32_powerpc_vec): Declare.
  7103. * Makefile.in (BFD32_BACKENDS): Add elf32-powerpc.o.
  7104. (CFILES): Add elf32-powerpc.c.
  7105. Rebuilt dependencies.
  7106. Thu Feb 17 15:29:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7107. * coffgen.c (coff_write_linenumbers): Always return a value.
  7108. * elfcode.h (elf_slurp_symbol_table): Handle zero symbols
  7109. reasonably. Allocate x_symp using alloca.
  7110. * elfcode.h (map_program_segments): ELF program header entries
  7111. must be sorted by load address. This used to generate the entries
  7112. in reverse order.
  7113. * section.c (SEC_IN_MEMORY): Define.
  7114. (asection): Rename unused field otheruserdata to contents, and
  7115. make it char *.
  7116. (bfd_make_section_anyway): Initialize contents field to NULL.
  7117. (bfd_get_section_contents): If SEC_IN_MEMORY is set, get section
  7118. contents from contents field rather than from file.
  7119. * bfd-in2.h: Rebuilt.
  7120. Thu Feb 17 08:30:53 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  7121. * bfd.c (bfd_get_error, bfd_set_error): New functions.
  7122. (bfd_error): Make static.
  7123. (bfd_error_type): Renamed from bfd_ec. Prepend "bfd_error_" to
  7124. all values.
  7125. * bfd-in2.h: Regenerated.
  7126. * aix386-core.c, aout-adobe.c, aout-encap.c, aout-target.h,
  7127. aoutf1.h, aoutx.h, archive.c, archures.c,
  7128. bfd.c, bout.c, cache.c, coff-alpha.c, coff-mips.c,
  7129. coff-rs6000.c, coffcode.h, coffgen.c, core.c, ctor.c,
  7130. ecoff.c, ecofflink.c, elf.c, elf32-hppa.c, elf32-mips.c,
  7131. elfcode.h, format.c, hash.c, hp300hpux.c, hppabsd-core.c,
  7132. i386lynx.c, ieee.c, libbfd.c, libelf.h, linker.c,
  7133. lynx-core.c, nlm.c, nlm32-alpha.c, nlm32-i386.c,
  7134. nlm32-sparc.c, nlmcode.h, oasys.c, opncls.c, osf-core.c,
  7135. ptrace-core.c, reloc16.c, rs6000-core.c, section.c, som.c,
  7136. srec.c, sunos.c, syms.c, targets.c, tekhex.c,
  7137. trad-core.c: Change callers.
  7138. Tue Feb 15 22:27:27 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  7139. * som.c: Remove FIXMEs for things which have been dealt with.
  7140. Tue Feb 15 19:39:24 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  7141. * section.c (bfd_get_section_contents): Since this function reads
  7142. unrelocated contents, the section's raw size is always the one to
  7143. use for bounds checking.
  7144. * linker.c (default_indirect_link_order): In assertion, compare
  7145. link_order size field against cooked size, not raw size, of input
  7146. section.
  7147. * bout.c (b_out_get_reloc_upper_bound): For BSS section, just
  7148. return 0.
  7149. (aligncode): When shrinking, the addend should be set to the
  7150. current offset in the section plus the number of bytes of padding
  7151. that will actually be retained.
  7152. (b_out_relax_section): If a section contains no relocations, don't
  7153. bother processing them.
  7154. (b_out_get_relocated_section_contents): Set reloc_done. Assert
  7155. that bfd_get_section_contents returns true. Check that relocs are
  7156. properly ordered.
  7157. (b_out_get_relocated_section_contents, case ALIGNDONE): Assert
  7158. that reloc->addend falls between the current source offset and the
  7159. raw size of the input section.
  7160. * config.bfd: Support i960 vxworks versions > 5.0 with coff, not
  7161. bout. Default with no version number is still bout. Support
  7162. explicit i960-coff target too.
  7163. * bout.c: Changed some indentation, deleted trailing whitespace,
  7164. fixed some comments, removed some "#if 1" lines.
  7165. (output_addr): New macro.
  7166. (calljx_callback, callj_callback, get_value, abs32code, aligncode,
  7167. b_out_get_relocated_section_contents): Use it for readability.
  7168. Tue Feb 15 09:00:16 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  7169. * som.c (som_bfd_prep_for_ar_write): Iterate through the SOM
  7170. symbols, not the BFD symbols.
  7171. (som_bfd_ar_write_symbol_stuff): Likewise.
  7172. Mon Feb 14 22:55:20 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  7173. * som.c (som_slurp_symbol_table): Do not die if a BFD doesn't
  7174. have any symbols.
  7175. * Finish basic read-write support for SOM archive libraries. Bugs
  7176. surely remain as this hasn't been tested all that much.
  7177. * som.c (SOM_LST_HASH_SIZE, SOM_LST_MODULE_LIMIT): Define.
  7178. (struct som_misc_symbol_info): New structure to hold info necessary
  7179. to build both normal and library symbol tables.
  7180. (som_derive_misc_symbol_info): New function to derive info necessary
  7181. to build both normal and library symbol tables.
  7182. (som_build_and_write_symbol_table): Use new function to derive misc
  7183. symbol information.
  7184. (som_slurp_symbol_table): Update backend private data for symbols
  7185. appropriately.
  7186. (som_bfd_prep_for_ar_write): New function.
  7187. (som_bfd_ar_symbol_hash): New function.
  7188. (som_bfd_ar_write_symbol_stuff): New function.
  7189. (som_write_armap): Flesh out.
  7190. (som_vec): Fix ar padding character.
  7191. * som.c: Consistently use memset rather than bzero.
  7192. Mon Feb 14 17:02:28 1994 Stu Grossman (grossman at cygnus.com)
  7193. * coff-rs6000.c: Add Lynx core file support, use HOST_AIX, where
  7194. appropriate.
  7195. * rs6000-core.c: Use HOST_AIX instead of COREFILES_PLEASE.
  7196. * config/rs6000.mh: Remove defs of ARCHIVES_PLEASE and
  7197. COREFILES_PLEASE.
  7198. * config/rs6000lynx.mh: Turn on Lynx core file support.
  7199. * hosts/rs6000.h: #define HOST_AIX.
  7200. * hosts/rs6000lynx.h: Create this to enable Lynx host support.
  7201. Sun Feb 13 14:30:00 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  7202. * som.h (som_symbol_data): Safely access backend private data
  7203. for BFD symbols. All callers changed.
  7204. * Read-only SOM archive support.
  7205. * som.c (som_bfd_count_ar_symbols): New helper function.
  7206. (som_bfd_fill_in_ar_symbols): New helper function.
  7207. (som_slurp_armap): New function to read a SOM LST.
  7208. * som.h: Include <lst.h> and <ar.h>.
  7209. Sat Feb 12 22:34:14 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  7210. * elfcode.h (elf_map_symbols): Fix typo.
  7211. (write_object_contents): Check return values from prep_headers and
  7212. elf_compute_section_file_positions.
  7213. (set_section_contents): Likewise.
  7214. Fri Feb 11 16:56:50 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  7215. * archive.c (normalize) [VMS]: Call malloc, not bfd_xmalloc.
  7216. (bfd_construct_extended_name_table): Check result of normalize.
  7217. Tue Feb 8 08:57:31 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  7218. Make all callers of malloc or realloc (including via obstacks)
  7219. check the result for NULL. Most set bfd_error to no_memory and
  7220. return in that case; a few are harder to fix, and are marked
  7221. with "FIXME <return type>".
  7222. * elf32-hppa.c (hppa_elf_build_arg_reloc_stub
  7223. hppa_elf_build_long_branch_stub): Check bfd_make_empty_symbol return.
  7224. * linker.c (_bfd_generic_link_output_symbols
  7225. _bfd_generic_link_write_global_symbol): Ditto
  7226. * section.c (bfd_make_section_anyway): Ditto.
  7227. * tekhex.c (find_chunk tekhex_mkobject): Check bfd_alloc.
  7228. (first_phase): Ditto. FIXME void
  7229. (tekhex_make_empty_symbol): Check bfd_zalloc.
  7230. * sunos.c (sunos_read_dynamic_info): Check bfd_zalloc.
  7231. (MY(read_dynamic_symbols) MY(read_dynamic_relocs)): Check bfd_alloc.
  7232. * stringhash.c (_bfd_stringtab_hash_newfunc): Check bfd_hash_allocate.
  7233. * srec.c: Indent.
  7234. (fillup_symbols): Check bfd_alloc. FIXME void
  7235. (srec_mkobject srec_get_section_contents
  7236. srec_set_section_contents): Check bfd_alloc.
  7237. (srec_make_empty_symbol): Check bfd_zalloc.
  7238. * som.c (hppa_som_gen_reloc_type): Check bfd_alloc_by_size_t.
  7239. (make_unique_section): Check bfd_alloc.
  7240. (som_new_section_hook): Check bfd_zalloc.
  7241. (bfd_som_attach_aux_hdr): Ditto. FIXME void
  7242. * rs6000-core.c (rs6000coff_core_p): Check bfd_zalloc.
  7243. * osf-core.c (osf_core_make_empty_symbol): Check bfd_zalloc.
  7244. (osf_core_core_file_p): Check bfd_alloc.
  7245. * oasys.c (oasys_slurp_symbol_table oasys_archive_p
  7246. oasys_mkobject oasys_object_p oasys_new_section_hook
  7247. oasys_set_section_contents): Check bfd_alloc.
  7248. (oasys_slurp_section_data): Check bfd_zalloc and bfd_alloc.
  7249. (oasys_make_empty_symbol): Check bfd_zalloc.
  7250. * nlmcode.h (nlm_make_empty_symbol): Check bfd_zalloc.
  7251. (nlm_slurp_symbol_table): Check bfd_zalloc and bfd_alloc.
  7252. * nlm32-sparc.c (nlm_sparc_read_import): Check bfd_alloc.
  7253. * nlm32-i386.c (nlm_i386_read_import): Check bfd_alloc.
  7254. * nlm32-alpha.c (nlm_alpha_read_import): Check bfd_alloc.
  7255. * linker.c (_bfd_link_hash_newfunc
  7256. (generic_link_hash_newfunc
  7257. (archive_hash_newfunc
  7258. (_bfd_generic_link_add_one_symbol): Check bfd_hash_allocate.
  7259. (_bfd_generic_final_link
  7260. (_bfd_generic_link_output_symbols
  7261. (default_indirect_link_order): Check bfd_alloc.
  7262. (bfd_new_link_order): Check bfd_alloc_by_size_t.
  7263. * irix-core.c (irix_core_make_empty_symbol): Check bfd_zalloc.
  7264. * ieee.c: Indent.
  7265. (read_id get_symbol get_section_entry ieee_archive_p ieee_object_p
  7266. ieee_slurp_section_data ieee_new_section_hook): Check bfd_alloc.
  7267. (do_one): Check bfd_alloc. Return a boolean.
  7268. (ieee_slurp_section_data): Check it.
  7269. (init_for_output): Check bfd_alloc. Return a boolean.
  7270. (ieee_set_section_contents): Check it.
  7271. (do_with_relocs): Check bfd_alloc. Return a boolean.
  7272. (ieee_bfd_debug_info_accumulate): Ditto. FIXME void.
  7273. (ieee_mkobject): Check bfd_zalloc.
  7274. (ieee_make_empty_symbol): Check bfd_zmalloc.
  7275. * hpux-core.c (hpux_core_make_empty_symbol): Check
  7276. bfd_zalloc.
  7277. * hppabsd-core.c (hppabsd_core_make_empty_symbol): Check
  7278. bfd_zalloc.
  7279. (hppabsd_core_core_file_p): Check bfd_zalloc.
  7280. * hp300hpux.c (MY(slurp_symbol_table)): Check bfd_alloc.
  7281. * elfcode.h (elf_new_section_hook): Check bfd_alloc.
  7282. (bfd_section_from_phdr): Ditto.
  7283. (write_relocs): Ditto. FIXME void
  7284. (elf_map_symbols assign_section_numbers map_program_segments):
  7285. Ditto. Return a boolean.
  7286. (swap_out_syms): Ditto. Check elf_map_symbols.
  7287. (elf_slurp_symbol_table): Check bfd_zalloc.
  7288. (elf_slurp_reloca_table): Check bfd_alloc.
  7289. (elf_slurp_reloc_table): Ditto.
  7290. (elf_compute_section_file_positions): Check assign_section_numbers.
  7291. (assign_file_positions_except_relocs): Return a boolean.
  7292. Check map_program_segments.
  7293. (elf_compute_section_file_positions): Check it.
  7294. * elf32-mips.c (mips_elf_final_link): Check bfd_alloc.
  7295. * elf32-hppa.c (hppa_elf_stub_branch_reloc): Check bfd_zmalloc and
  7296. realloc.
  7297. (hppa_elf_stub_reloc): Ditto.
  7298. (hppa_elf_build_arg_reloc_stub): Check bfd_zalloc.
  7299. (hppa_elf_build_long_branch_stub): Ditto.
  7300. (elf32_hppa_backend_symbol_table_processing): Ditto.
  7301. * ecoff.c (ecoff_set_symbol_info): Check bfd_alloc. Return a boolean.
  7302. (ecoff_slurp_symbol_table): Check it.
  7303. (ecoff_slurp_armap): Check bfd_alloc.
  7304. (ecoff_write_armap): Check bfd_zalloc.
  7305. (ecoff_link_hash_newfunc): Check bfd_hash_allocate and
  7306. _bfd_link_hash_newfunc.
  7307. (ecoff_link_add_externals): Check bfd_alloc.
  7308. * ctor.c (bfd_constructor_entry): Check bfd_alloc.
  7309. * coffgen.c (coff_real_object_p): Check bfd_alloc.
  7310. (coff_renumber_symbols): Check bfd_alloc_by_size_t. Return a boolean.
  7311. (coff_write_symbol): Check bfd_alloc. FIXME int
  7312. (coff_write_linenumbers): Check bfd_alloc. Return a boolean.
  7313. (coff_section_symbol): Check bfd_alloc_by_size_t.
  7314. (coff_get_normalized_symtab): Check bfd_alloc.
  7315. (coff_bfd_make_debug_symbol): Check bfd_zalloc.
  7316. * libcoff-in.h: Change decls of coff_renumber_symbols,
  7317. coff_write_linenumbers.
  7318. * libcoff.h: Rebuilt.
  7319. * coffcode.h (coff_write_object_contents): Check
  7320. coff_renumber_symbols, coff_write_linenumbers.
  7321. * coffcode.h: Indent.
  7322. (coff_add_missing_symbols): Check bfd_alloc_by_size_t. Return a
  7323. boolean.
  7324. (coff_write_object_contents): Check it.
  7325. * coff-alpha.c (alpha_relocate_section): Check bfd_alloc.
  7326. * coff-mips.c (mips_relocate_section): Ditto.
  7327. * archive.c (bfd_slurp_bsd_armap_f2): Check bfd_alloc value.
  7328. (do_slurp_bsd_armap): Ditto.
  7329. (compute_and_write_armap): Check bfd_realloc value.
  7330. * aoutx.h (translate_from_native_sym_flags): Check bfd_alloc
  7331. return value. Return boolean value.
  7332. (NAME(aout,make_empty_symbol)): Check bfd_zalloc return value.
  7333. (NAME(aout,slurp_symbol_table)): Check bf_alloc and bfd_zalloc
  7334. return value.
  7335. (add_to_stringtab): Ditto. FIXME void
  7336. (aout_link_hash_newfunc): Check bfd_hash_allocate return value.
  7337. (aout_link_add_symbols): Check bfd_alloc value.
  7338. (translate_symbol_table): Check translate_from_native_sym_flags.
  7339. * hp300hpux.c (MY(slurp_symbol_table)): Ditto.
  7340. * aoutx.h (aout_link_hash_newfunc): Check _bfd_link_hash_newfunc.
  7341. * opncls.c (bfd_zalloc bfd_realloc): Check result of bfd_alloc.
  7342. * opncls.c (obstack_chunk_alloc): Define as malloc, not
  7343. bfd_xmalloc_by_size_t.
  7344. (_bfd_new_bfd): Check obstack_begin for 0 return.
  7345. * ieee.c (obstack_chunk_alloc): Define as malloc, not
  7346. bfd_xmalloc_by_size_t.
  7347. (ieee_archive_p): Check obstack_begin for 0 return and
  7348. obstack_finish for NULL return.
  7349. * hash.c (obstack_chunk_alloc): Define as malloc, not
  7350. bfd_xmalloc_by_size_t.
  7351. (bfd_hash_table_init_n): Check obstack_begin for 0 return and
  7352. obstack_finish for NULL return.
  7353. (bfd_hash_lookup): Check obstack_alloc for NULL return.
  7354. * ecofflink.c (obstack_chunk_alloc): Define as malloc, not
  7355. bfd_xmalloc_by_size_t.
  7356. bfd_ecoff_debug_accumulate
  7357. bfd_ecoff_debug_accumulate_other): Check obstack_alloc.
  7358. (add_file_shuffle add_memory_shuffle): Check obstack_alloc for
  7359. NULL return. Return boolean, not void.
  7360. (bfd_ecoff_debug_init): Check obstack_begin for 0 return.
  7361. (bfd_ecoff_debug_accumulate): Check add_file_shuffle
  7362. and add_memory_shuffle return.
  7363. (string_hash_newfunc): Check bfd_hash_allocate and bfd_hash_newfunc.
  7364. (bfd_ecoff_debug_accumulate): Check bfd_alloc.
  7365. (ecoff_add_string): Check add_memory_shuffle return.
  7366. * libbfd-in.h (xmalloc, bfd_xmalloc, bfd_xmalloc_by_size_t):
  7367. Remove decls.
  7368. * libbfd.h: Rebuilt.
  7369. Fri Feb 11 15:35:32 1994 Stu Grossman (grossman at cygnus.com)
  7370. * configure.host: Add Lynx/rs6000 support.
  7371. * config/i386-nlm.mt: Enable a.out file support.
  7372. * config/rs6000lynx.mh: Lynx/rs6000 host support.
  7373. Fri Feb 11 17:25:58 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7374. * archive.c (compute_and_write_armap): Rewrite somewhat to improve
  7375. memory usage.
  7376. Fri Feb 11 13:10:42 1994 Stan Shebs (shebs@andros.cygnus.com)
  7377. * archive.c: Change all references to '\n' in archive magic
  7378. to '\012', for greater portability.
  7379. * ecoff.c (ecoff_write_armap): Ditto.
  7380. Thu Feb 10 12:58:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7381. * aoutx.h (aout_link_write_other_symbol): Check strip settings to
  7382. see whether symbol should be output.
  7383. * genlink.h (struct generic_write_global_symbol_info): Added info
  7384. field.
  7385. * linker.c (_bfd_generic_final_link): Initialize wginfo.info.
  7386. (_bfd_generic_link_write_global_symbol): Check strip settings to
  7387. see whether symbol should be output.
  7388. * elf32-mips.c (mips_elf_final_link): Initialize wginfo.info.
  7389. Wed Feb 9 21:34:58 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  7390. * som.c (som_reloc_queue_find): Do not examine a NULL queue entry.
  7391. * som.c: Cast return values from BFD memory allocation routines to
  7392. avoid warnings from the HP compiler.
  7393. Wed Feb 9 12:55:02 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7394. * coff-alpha.c (alpha_relocate_section): Accept a LITERAL
  7395. reloc on an "ldl" instruction too.
  7396. * archive.c (bfd_ar_hdr_from_filesystem): Cast status elements
  7397. when passing them to sprintf. Use %ld instead of %d.
  7398. * coff-rs6000.c (rs6000coff_mkarchive): Return false.
  7399. (rs6000_coff_snarf_ar_hdr): Don't declare errno; it's not used.
  7400. Also removed unused variable namelen.
  7401. (rs6000coff_write_armap): Declare orl_count and stridx parameters.
  7402. Tue Feb 8 18:00:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7403. * libbfd-in.h (xmalloc): Don't declare parameter type, to avoid
  7404. conflicts.
  7405. * libbfd.h: Rebuilt.
  7406. Tue Feb 8 15:55:50 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  7407. * coff-alpha.c (reloc_nil): New function.
  7408. (alpha_howto_table): Use it as special_function to prevent certain
  7409. relocs from being adjusted by bfd_perform_relocation. IGNORE
  7410. reloc should be partial_inplace.
  7411. (alpha_ecoff_get_relocated_section_contents): Accept a LITERAL
  7412. reloc on an "ldl" instruction too.
  7413. Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  7414. * elf32-hppa.c (CURRENT_STUB_OFFSET, hppa_elf_build_arg_reloc_stub,
  7415. hppa_elf_build_long_branch_stub): Cast to char * instead of int
  7416. before performing pointer arithmetic.
  7417. Mon Feb 7 20:56:27 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  7418. * config.bfd (hppa*-*-osf*): Use bfd_name hppaosf for this
  7419. configuration.
  7420. (hppa*-*-*elf*): This configuration used hppa-elf now.
  7421. * som.c: This file is also used for HOST_HPPAOSF.
  7422. * targets.c (bfd_target_vector): Enable som_vec for HOST_HPPAOSF.
  7423. * hosts/hppaosf.h: New host configuration file.
  7424. * config/hppabsd.mt (SELECT_VECS): Add bfd_elf32_hppa_vec as
  7425. BSD handles both SOM and ELF object files.
  7426. * config/hppaosf.mh (HDEFINES): Delete. No longer needed.
  7427. (RANLIB): Doesn't do anything, define it to be "echo".
  7428. * config/hppaosf.mt: New target makefile fragment for a PA running
  7429. OSF1.
  7430. Mon Feb 7 15:02:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7431. * archures.c (enum bfd_architecture): Added bfd_arch_powerpc.
  7432. (archures_init_table): If SELECT_ARCHITECTURES is not defined,
  7433. added bfd_powerpc_arch.
  7434. * bfd-in2.h: Rebuilt.
  7435. * cpu-powerpc.c: New file.
  7436. * Makefile.in (ALL_MACHINES, CFILES): Added cpu-powerpc.c.
  7437. Rebuilt dependencies.
  7438. * elfcode.h (bfd_section_from_shdr): Get vma and alignment_power
  7439. of an SHT_STRTAB section from sh_addr and sh_addralign, rather
  7440. than just setting them to zero.
  7441. Sun Feb 6 20:04:10 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  7442. * elfcode.h (prep_headers, swap_out_syms): Check for NULL return
  7443. from bfd_new_strtab.
  7444. (elf_compute_section_file_positions): Check for false return from
  7445. swap_out_syms.
  7446. * linker.c (default_indirect_link_order): Check for NULL return
  7447. from bfd_get_relocated_section_contents.
  7448. * syms.c: Make example application in doc call xmalloc, not
  7449. bfd_xmalloc.
  7450. * aoutx.h (NAME(aout,slurp_symbol_table),
  7451. aout_link_get_symbols, NAME(aout,link_hash_table_create)):
  7452. * bout.c (b_out_slurp_reloc_table, b_out_squirt_out_relocs):
  7453. * ecoff.c (ecoff_bfd_link_hash_table_create):
  7454. * ecofflink.c (bfd_ecoff_debug_init):
  7455. * format.c (bfd_check_format_matches):
  7456. * linker.c (_bfd_generic_link_hash_table_create):
  7457. (_bfd_generic_final_link):
  7458. * reloc16.c (bfd_coff_reloc16_relax_section):
  7459. (bfd_coff_reloc16_get_relocated_section_contents):
  7460. * elf32-hppa.c (hppa_elf_build_arg_reloc_stub):
  7461. * elf32-mips.c (mips_elf_final_link):
  7462. * elfcode.h (bfd_new_strtab):
  7463. (bfd_add_2_to_strtab):
  7464. (elf_slurp_symbol_table):
  7465. (elf_corefile_note):
  7466. * libbfd.c (bfd_zmalloc):
  7467. Use malloc and check the result, instead of bfd_xmalloc.
  7468. Sat Feb 5 12:39:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  7469. * config.bfd: Put m68*-*-sysv* line after m68*-*-sysv4*.
  7470. Sat Feb 5 05:32:44 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  7471. * srec.c (srec_write_record): Put CONST keyword for "src" before
  7472. "unsigned", some compilers don't like it after "unsigned".
  7473. * libcoff.h, libcoff-in.h (bfd_perform_slip): Rename "value" to
  7474. "val" in prototype declaration because some compilers don't like
  7475. arguments whose names are the same as types.
  7476. Sat Feb 5 01:14:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7477. * aoutx.h (aout_link_check_ar_symbols): Correct test for whether
  7478. object file defines symbol. Also, if skipping a symbol, skip the
  7479. second symbol of a N_WARNING or N_INDR symbol as well.
  7480. Fri Feb 4 23:55:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7481. Add basic support for writing RS/6000 XCOFF files.
  7482. * coff-rs6000.c (dummy_reloc): Removed.
  7483. (rs6000coff_howto_table): Defined XCOFF relocs.
  7484. (RTYPE2HOWTO): Defined to use rs6000coff_rtype2howto.
  7485. (rs6000coff_rtype2howto): New function.
  7486. (coff_bfd_reloc_type_lookup): Defined to use
  7487. rs6000coff_reloc_type_lookup.
  7488. (rs6000coff_reloc_type_lookup): New function.
  7489. (SELECT_RELOC): Defined to set r_type and r_size fields.
  7490. (COFF_LONG_FILENAMES): Defined.
  7491. * coffcode.h (combined_entry_type): Changed fix_tag and fix_end
  7492. fields to bitfields. Added fields fix_value and fix_scnlen.
  7493. (sec_to_styp_flags): If STYP_DEBUG is defined, use it rather than
  7494. STYP_INFO for the type of a section named .debug.
  7495. (coff_add_missing_symbols): Don't define if RS6000COFF_C.
  7496. (coff_write_object_contents): If RS6000COFF_C, don't call
  7497. coff_add_missing_symbols.
  7498. (coff_slurp_symbol_table): If RS6000COFF_C, then if the last aux
  7499. entry has type STY_LD change the x_scnlen into a pointer to a
  7500. symbol and set fix_scnlen. Also, for a C_BSTAT symbol, change the
  7501. value into a pointer to a symbol and set fix_value.
  7502. * libcoff.h: Rebuilt.
  7503. * coffgen.c (coff_mangle_symbols): Reindent. If fix_value is set,
  7504. get the symbol offset. Likewise for fix_scnlen.
  7505. (string_size): Change type to bfd_size_type.
  7506. (debug_string_size, debug_string_section): New static variables.
  7507. (coff_fix_symbol_name): If bfd_coff_symname_in_debug returns true,
  7508. write the symbol name into the .debug section; assume that the
  7509. section has already been created with the right size.
  7510. (coff_write_symbols): Initialize debug_string_size to 0. If
  7511. bfd_coff_symname_in_debug returns true, don't put symbol name in
  7512. usual string table. After writing out all symbols, if
  7513. debug_string_size is not 0, check that it matches the size of the
  7514. .debug section.
  7515. (coff_get_normalized_symtab): Clear new fix_value and fix_scnlen
  7516. fields. If the string offset is 0, always use an empty string as
  7517. the name.
  7518. (coff_make_empty_symbol): Zero out the symbol structure.
  7519. * reloc.c (bfd_perform_relocation): Work around one gross hack
  7520. with another: actually look at the target name to avoid the broken
  7521. COFF check.
  7522. (bfd_reloc_code_real_type): Add BFD_RELOC_PPC_B26,
  7523. BFD_RELOC_PPC_BA26 and BFD_RELOC_PPC_TOC16.
  7524. * bfd-in2.h: Rebuilt.
  7525. Fri Feb 4 17:28:32 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  7526. * libbfd.c (bfd_zmalloc): Call bfd_xmalloc instead of malloc.
  7527. (bfd_xmalloc, bfd_xmalloc_by_size_t): Functions deleted.
  7528. * libbfd-in.h: Define them as macros calling xmalloc and declare
  7529. xmalloc.
  7530. * libbfd.h: Rebuilt.
  7531. Thu Feb 3 16:49:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7532. * ecofflink.c (bfd_ecoff_debug_externals): If a small undefined
  7533. symbol has a value in the ECOFF symbol but not in the BFD symbol,
  7534. keep the value in the ECOFF symbol. This helps gas.
  7535. * linker.c (_bfd_generic_link_output_symbols,
  7536. _bfd_generic_link_write_global_symbol): Don't require that all
  7537. references to a common symbol be themselves common symbols.
  7538. * aoutx.h (aout_reloc_index_to_section): Handle N_UNDF.
  7539. Wed Feb 2 20:37:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  7540. * libbfd.c, bfd-in.h, hosts/alphaosf.h, hosts/sparc-ll.h, aoutf1.h,
  7541. sparclynx.c, Makefile.in: Change HOST_64_BIT to BFD_HOST_64_BIT.
  7542. * bfd-in2.h: Rebuilt.
  7543. Wed Feb 2 12:30:13 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7544. * coffswap.h (coff_swap_reloc_out): If RS6000COFF_C, handle type
  7545. and size correctly.
  7546. (coff_swap_aux_in): If RS6000COFF_C, change x_csect.x_scnlen to
  7547. x_csect.x_scnlen.l to match change in coff/internal.h.
  7548. (coff_swap_aux_out): Likewise.
  7549. * coff-mips.c (mips_ecoff_backend_data), coff-alpha.c
  7550. (alpha_ecoff_backend_data): Change casts of aux_in and aux_out
  7551. fields to match yesterday's changes.
  7552. * coffcode.h (coff_write_relocs): If SELECT_RELOC is defined, pass
  7553. in the internal_reloc itself, not the type.
  7554. * coff-apollo.c, coff-h8300.c, coff-h8500.c, coff-i386.c,
  7555. coff-m68k.c, coff-sh.c, coff-we32k.c, coff-z8k.c: Changed
  7556. definition of SELECT_RELOC accordingly.
  7557. Tue Feb 1 12:05:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7558. * coffcode.h (bfd_coff_backend_data): Added new arguments to
  7559. _bfd_coff_swap_aux_in and _bfd_coff_swap_aux_out: aux index number
  7560. and number of aux entries.
  7561. (bfd_coff_swap_aux_in, bfd_coff_swap_aux_out): Changed
  7562. accordingly.
  7563. * libcoff.h: Rebuilt.
  7564. * coffswap.h (coff_swap_aux_in, coff_swap_aux_out): Accept new
  7565. arguments. If RS6000COFF_C, only treat C_EXT and C_HIDEXT
  7566. specially if this is the last aux entry.
  7567. * coffgen.c (coff_write_symbol, coff_get_normalized_symtab): Pass
  7568. new arguments to swap_aux functions.
  7569. Sun Jan 30 15:14:36 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  7570. * gen-aout.c (main): Set DEFAULT_ARCH based on preprocessor macros
  7571. (only testing for m68k and vax at the moment); do verify that the
  7572. preprocessor didn't trash the arch name inside the string version.
  7573. Don't print out "pagesize =" line that prevents output from
  7574. compiling. Derive BYTES_IN_WORD and ARCH values from sizeof
  7575. results.
  7576. * Makefile.in (aout-params.h): Pass gen-aout a dummy target name.
  7577. (check, installcheck): Identify directory in "no testsuites"
  7578. message.
  7579. Sun Jan 30 13:25:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7580. * aoutx.h (aout_link_write_symbols): Write out correct value for
  7581. object file symbol.
  7582. Fri Jan 28 18:34:05 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  7583. * hosts/vaxbsd.h (HOST_STACK_END_ADDR): Vax BSD doesn't define
  7584. KERNBASE, so hard-code 0x80000000 instead.
  7585. Thu Jan 27 13:54:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7586. * linker.c (generic_link_add_symbol_list): If symbol is common,
  7587. set the BSF_OLD_COMMON flag.
  7588. Wed Jan 26 13:47:15 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  7589. * format.c (bfd_check_format_matches): Put the new entry in the
  7590. correct element of matching_vector.
  7591. Tue Jan 25 11:43:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  7592. * som.c, som.h (bfd_som_set_section_attributes,
  7593. bfd_som_set_subsection_attributes): Change parameters from char
  7594. to int. Following a prototype with an old-style function definition
  7595. in the presence of widened parameters is a GCC-ism not supported
  7596. by the HP compiler in ANSI mode.
  7597. Tue Jan 25 11:46:46 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7598. * reloc.c (bfd_get_reloc_size): Size of type -2 is 4 bytes, not 2.
  7599. * hp300hpux.c (MY(write_object_contents)): Write out the symbols
  7600. before writing out the relocs, so that the right symbol indices
  7601. are used.
  7602. * archive.c (do_slurp_bsd_armap, bfd_slurp_bsd_armap_f2): Do not
  7603. try to overlay the internal carsyms on the external symdefs. That
  7604. can not work if the size of a host pointer is larger than 4 bytes.
  7605. * format.c (bfd_check_format_matches): Cast result of
  7606. bfd_xmalloc_by_size_t.
  7607. * opncls.c (_bfd_new_bfd): Avoid ANSI C prototype.
  7608. * archive.c: Reindented to GNU standards.
  7609. Mon Jan 24 14:41:23 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  7610. * opncls.c (_bfd_new_bfd, _bfd_new_bfd_contained_in): Add
  7611. "_bfd_" to function names.
  7612. * archive.c (_bfd_create_empty_archive_element_shell),
  7613. libbfd-in.h: Change callers.
  7614. * libbfd.c (bfd_zmalloc): Renamed from zalloc.
  7615. * libbfd.c (bfd_add_to_string_table),
  7616. trad-core.c (trad_unix_core_file_p),
  7617. targets.c (bfd_target_list),
  7618. ptrace-core.c (ptrace_unix_core_file_p),
  7619. opncls.c (new_bfd), libbfd-in.h,
  7620. ieee.c (ieee_make_empty_symbol),
  7621. elf32-hppa.c (hppa_elf_stub_branch_reloc),
  7622. (hppa_elf_stub_reloc): Change callers.
  7623. * libbfd.h: Regenerated.
  7624. * archive.c (_bfd_look_for_bfd_in_cache): Add "_bfd_" to name.
  7625. (_bfd_get_elt_at_filepos),
  7626. coff-rs6000.c (rs6000coff_get_elt_at_filepos), libbfd-in.h:
  7627. Change callers.
  7628. * format.c (bfd_check_format_matches), libbfd-in.h, targets.c,
  7629. elfcode.h (elf_object_p): Rename target_vector to bfd_target_vector
  7630. and default_vector to bfd_default_vector.
  7631. * libbfd.h: Regenerated.
  7632. * format.c (bfd_check_format_matches): New function.
  7633. (bfd_check_format): Call it.
  7634. (bfd_matching_formats): Function removed.
  7635. * targets.c: Replace the vector added on Jan 21 with a count of
  7636. entries in default_vector.
  7637. * bfd-in2.h: Regenerated.
  7638. Mon Jan 24 12:38:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7639. * coff-alpha.c (alpha_ecoff_object_p): New function. Set size of
  7640. .pdata section based on lnnoptr field, not section header.
  7641. (alpha_relocate_section): Don't bother to check if r_symndx >= 0,
  7642. since it is unsigned.
  7643. (ecoffalpha_little_vec): Use alpha_ecoff_object_p rather than
  7644. coff_object_p.
  7645. * ecoff.c (ecoff_new_section_hook): Set alignment_power field of
  7646. .pdata section to 3.
  7647. (ecoff_compute_section_file_positions): Save the size of the
  7648. .pdata section in the line_filepos field, and actually align the
  7649. .pdata section to an alignment power of 4.
  7650. (ecoff_compute_reloc_file_positions): Set output_has_begun after
  7651. calling ecoff_compute_section_file_positions.
  7652. (ecoff_write_object_contents): Set s_lnnoptr for the .pdata
  7653. section from the line_filepos field. Set vstamp for the optional
  7654. header from the vstamp of the symbolic header.
  7655. (ecoff_bfd_final_link): Set vstamp of the symbolic header to the
  7656. vstamp used by the first object file in the link.
  7657. * ecofflink.c (ecoff_align_debug): Align RFDs to debug_align.
  7658. * linker.c (generic_link_check_achive_element): Set SEC_ALLOC flag
  7659. for a created common section.
  7660. (_bfd_generic_link_add_one_symbol): Likewise.
  7661. * elfcode.h (swap_out_syms): Use elf_section_from_bfd_section to
  7662. get the index of a common section, rather than always using
  7663. SHN_COMMON (MIPS has multiple common sections).
  7664. * elf32-hppa.c (hppa_elf_gen_reloc_type): Typo (== for =).
  7665. * aoutx.h (aout_link_input_section_std,
  7666. aout_link_input_section_ext): Pass additional arguments to
  7667. reloc_overflow callback.
  7668. * coff-alpha.c (alpha_ecoff_get_relocated_section_contents,
  7669. alpha_relocat_section): Likewise.
  7670. * coff-h8300.c (h8300_reloc16_extra_cases): Likewise.
  7671. * coff-h8500.c (extra_case): Likewise.
  7672. * coff-mips.c (mips_relocate_section): Likewise.
  7673. * coff-z8k.c (extra_case): Likewise.
  7674. * elf32-hppa.c (hppa_elf_stub_finish): Likewise.
  7675. * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
  7676. * bout.c (calljx_callback, callj_callback): Use get_value to get
  7677. the symbol value and check for undefined symbols.
  7678. (get_value): If the symbol is undefined, look it up in the linker
  7679. hash table.
  7680. (b_out_get_relocated_section_contents): For PCREL24 and PCREL13
  7681. use get_value to get the symbol value and check for undefined
  7682. symbols.
  7683. * reloc16.c (bfd_coff_reloc16_get_value): If the symbol is
  7684. undefined, look it up in the linker hash table.
  7685. * aoutx.h (translate_symbol_table): The string index 0 has a
  7686. special meaning for normal symbols, but not for dynamic symbols.
  7687. Sat Jan 22 12:26:01 1994 Stu Grossman (grossman at cygnus.com)
  7688. * sparclynx.c: Setup appropriate macros to enable core file
  7689. support.
  7690. Fri Jan 21 16:25:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  7691. * targets.c: Add a vector of matching format names.
  7692. * format.c (bfd_matching_formats): New function to return it.
  7693. (bfd_check_format): Set it.
  7694. * bfd-in2.h: Regenerated.
  7695. * bfd-in.h: Remove decls of bfd_ec type and error printing functions.
  7696. Remove decl of type symclass; wasn't used.
  7697. * bfd.c: Document error handling, including code fragments
  7698. containing the error decls that were in bfd-in.h.
  7699. Remove DEFUNs.
  7700. * bfd-in2.h: Regenerated.
  7701. Fri Jan 21 14:11:16 1994 Sean Fagan (sef@cygnus.com)
  7702. * nlmcode.h, liblnm.h, nlm32-alpha.c nlm32-i386.c nlm32-sparc.c:
  7703. The sparc (and possibly other?) NLM format requires a different
  7704. way to write exports, so add a write_export field to the backend
  7705. data (and set it to NULL for everything but the sparc).
  7706. Fri Jan 21 14:11:16 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  7707. * sunos.c (MY(read_dynamic_relocs)): Compare info->dynrel with NULL,
  7708. not (struct external_nlist *) NULL. info->dynrel is a PTR, not
  7709. a struct external_nlist *.
  7710. Fri Jan 21 09:29:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  7711. * bfd.c: Remove error strings for errors removed below.
  7712. * aoutx.h (translate_to_native_sym_flags), bfd-in.h (bfd_ec),
  7713. oasys.c (oasys_write_sections): Rename
  7714. bfd_error_nonrepresentable_section to nonrepresentable_section.
  7715. None of the other bfd error names start with "bfd_error".
  7716. Remove errors symbol_not_found and no_relocation_info, which seem
  7717. to be unused.
  7718. * bfd-in2.h: Regenerated.
  7719. Fri Jan 21 01:11:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7720. * bfd.c (bfd_get_gp_size): Added support for ELF.
  7721. * syms.c (BSF_DYNAMIC): New symbol flag.
  7722. (bfd_print_symbol_vandf): Print it.
  7723. * bfd-in2.h: Rebuilt.
  7724. * libaout.h (struct aout_backend_data): New read_dynamic_symbols
  7725. and read_dynamic_relocs fields.
  7726. (struct aoutdata): New dynamic_info field.
  7727. (obj_aout_dynamic_info): New accessor macro.
  7728. * sunos.c (struct sunos_dynamic_info): New structure.
  7729. (sunos_read_dynamic_info, MY(read_dynamic_symbols),
  7730. MY(read_dynamic_relocs)): New functions to read dynamic symbols
  7731. and relocs.
  7732. * aoutx.h (NAME(aout,some_aout_object_p)): If the object is
  7733. dynamically linked, set SEC_RELOC for both the .text and .data
  7734. sections.
  7735. (translate_from_native_sym_flags): Don't set BSF_LOCAL for an
  7736. undefined symbol.
  7737. (translate_symbol_table): New function, split out of
  7738. slurp_symbol_table; set the BSF_DYNAMIC flag appropriately.
  7739. (NAME(aout,slurp_symbol_table)): Read dynamic symbols, if any.
  7740. (NAME(aout,slurp_reloc_table)): Read dynamic relocs, if any.
  7741. (NAME(aout,get_reloc_upper_bound)): Include dynamic reloc count in
  7742. return value.
  7743. * aoutf1.h (NAME(aout,sunos4_write_object_contents)): Don't write
  7744. out dynamic symbols or relocs against reloc symbols, since they
  7745. are already in the .text section and we wouldn't know where to
  7746. write them anyhow.
  7747. (sunos4_aout_backend): Initialize read_dynamic_symbols and
  7748. read_dynamic_relocs fields.
  7749. * aout-target.h (MY(backend_data)): Initialize
  7750. read_dynamic_symbols and read_dynamic_relocs fields.
  7751. Thu Jan 20 20:57:27 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  7752. * hosts/alphaosf.h (uint64e_type, uint64_type, int64_type): Delete
  7753. typedefs, since HOST_64_BIT will take care of defining them in
  7754. bfd.h.
  7755. Wed Jan 19 17:28:59 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
  7756. * config/alphaosf.mh (HDEFINES): Don't define HOST_64_BIT here;
  7757. that's dealt with elsewhere.
  7758. * hosts/alphaosf.h (sprintf_vma, fprintf_vma): New macros.
  7759. (uint64_typeHIGH, uint64_typeLOW): Comment with HOST_64_BIT so
  7760. they get copied to bfd.h.
  7761. * reloc.c (enum bfd_reloc_code_real): Add some Alpha relocation
  7762. types. Reorganized some of the existing ones.
  7763. * coff-alpha.c (alpha_howto_table): Construct 64-bit negative one
  7764. values in case of compilation on a 32-bit machine. Fix pcrel
  7765. fields of some reloc types.
  7766. (alpha_bfd_reloc_type_lookup): Handle more relocation types.
  7767. * bfd-in.h (uint64_typeHIGH, uint64_typeLOW): Supply default
  7768. definitions when not defined, regardless of whether uint64_type is
  7769. a defined macro or not.
  7770. (fprintf_vma, sprintf_vma): Define only if fprintf_vma is not
  7771. already defined.
  7772. Wed Jan 19 00:02:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7773. * aoutx.h (translate_to_native_sym_flags): Set the type of a
  7774. BSF_WARNING symbol to N_WARNING.
  7775. Tue Jan 18 16:43:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7776. * aoutx.h (aout_link_add_symbols): Increment sym_hash as well as p
  7777. for an indirect or warning symbol.
  7778. (aout_link_write_symbols): Update sym_hash with the target of an
  7779. indirect or warning symbol. If an indirect symbol is defined,
  7780. output the calculated value and don't output the target symbol.
  7781. Tue Jan 18 03:54:59 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  7782. * aoutx.h (translate_from_native_sym_flags): Give warning symbols
  7783. an (unused) nonzero section value, needed for check below.
  7784. Mon Jan 17 15:12:07 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  7785. * aoutx.h (translate_from_native_sym_flags,
  7786. aout_link_add_symbols): Treat N_SET[ABDT] | N_EXT like
  7787. N_SET[ABDT].
  7788. Fri Jan 14 16:45:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7789. * elfcode.h (elf_object_p): If there is a SHT_DYNAMIC section, set
  7790. the DYNAMIC flag for the BFD.
  7791. (NAME(bfd_elf,write_object_contents)): Don't try to write out a
  7792. BFD with the DYNAMIC flag set, since we don't generate the program
  7793. header table correctly.
  7794. Fri Jan 14 01:04:36 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  7795. * elfcode.h (elf_slurp_symbol_table): Free x_symp at the end
  7796. of the function to avoid storage leak.
  7797. Thu Jan 13 23:07:32 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7798. * ecoff.c (ecoff_link_write_external): An ifd can be -1.
  7799. Thu Jan 13 12:33:27 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  7800. * som.c (som_set_reloc_info): Provide a default symbol for
  7801. relocations which don't actually have an associated symbol.
  7802. * som.c (hppa_som_reloc): Add new "error message" argument.
  7803. Wed Jan 12 13:36:43 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  7804. Enable gdb to write to core files on more core file readers.
  7805. * libbfd.c (bfd_generic_set_section_contents): Remove range check
  7806. for section size, it is already done in bfd_set_section_contents
  7807. with bfd_get_section_size_now.
  7808. * aix386-core.c, hppabsd-core.c, hpux-core.c, irix-core.c,
  7809. osf-core.c, ptrace-core.c, trad-core.c (*_set_section_contents):
  7810. Use bfd_generic_set_section_contents instead of bfd_false.
  7811. Wed Jan 12 15:31:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7812. * linker.c: Added initial documentation.
  7813. * linker.c (default_indirect_link_order): Don't expect space for
  7814. output relocations if there aren't any input relocations.
  7815. Tue Jan 11 14:37:12 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7816. * aoutx.h (NAME(aout,final_link)): Set a_entry before computing
  7817. file offsets.
  7818. * elfcode.h (swap_out_syms): A common symbol is STT_OBJECT, not
  7819. STT_NOTYPE.
  7820. Tue Jan 11 09:10:56 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  7821. * config.bfd: Use ELF, not COFF for m88*-*-dgux*.
  7822. Combine m88k-*-* and m88110-*-* cases into m88*-*-*.
  7823. Tue Jan 11 00:07:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7824. * ecofflink.c: Extensive changes to compress and merge debugging
  7825. information, and to write some of out directly rather than saving
  7826. it in memory. Several new functions and structures, and new
  7827. arguments to existing functions.
  7828. * ecoff.c (ecoff_compute_reloc_file_positions): Compute
  7829. sym_filepos as well.
  7830. (ecoff_get_extr): Use ifdmap instead of ifdbase.
  7831. (ecoff_write_object_contents): Don't compute sym_filepos here.
  7832. Only output symbols if outsymbols is not NULL.
  7833. (ecoff_bfd_final_link): Adjust for changes in ecoff_debug_info and
  7834. bfd_ecoff_debug functions. Write out debugging information here.
  7835. (ecoff_final_link_debug_accumulate): Adjust for changes in
  7836. bfd_ecoff_debug functions.
  7837. (ecoff_link_write_external): Use ifdmap rather than ifdbase.
  7838. * elf32-mips.c (mips_elf_read_ecoff_info): Read external symbols
  7839. first, to put them in the first memory buffer. Clear fdr field.
  7840. (mips_elf_get_extr): Use pointer to unswapped external symbol.
  7841. (mips_elf_final_link): Adjust for changes in bfd_ecoff functions.
  7842. Preserve .text, .data and .bss even if they are empty. Save
  7843. pointer to unswapped external symbol rather than copying it.
  7844. Don't free up the external symbols.
  7845. * libelf.h (elf_symbol_type): Change mips_extr to PTR.
  7846. * bfd-in.h (bfd_ecoff_debug_init, bfd_ecoff_debug_free): Declare.
  7847. (bfd_ecoff_debug_accumulate): Update declaration.
  7848. (bfd_ecoff_debug_accumulate_other): Rename declaration from
  7849. bfd_ecoff_debug_link_other and update.
  7850. (bfd_ecoff_write_accumulated_debug): Declare.
  7851. * bfd-in2.h: Rebuilt.
  7852. * Makefile.in: Rebuilt dependencies.
  7853. Mon Jan 10 20:46:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  7854. * Makefile.in (install): Remove "@" which follows a backslash. In
  7855. this position it just causes errors, not suppresses echoes.
  7856. Mon Jan 10 09:06:21 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
  7857. * som.c (hppa_som_gen_reloc_type): Fix handling of LT and RT
  7858. field selectors.
  7859. Sun Jan 9 04:32:25 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
  7860. * config/i386-netbsd.mt (SELECT_VECS): Include i386bsd_vec.
  7861. Fri Jan 7 10:27:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
  7862. * aoutx.h (adjust_z_magic): Don't merge the start of bss with the
  7863. end of data if they are not contiguous.
  7864. * aoutf1.h (sunos4_aout_backend): Comment the fields' meanings.
  7865. Fri Jan 7 15:40:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7866. * ecoff.c (ecoff_mkobject_hook): Don't set SEC_SHARED_LIBRARY flag
  7867. for .reginfo section here.
  7868. (ecoff_new_section_hook): Set it here instead.
  7869. Fri Jan 7 10:29:27 1994 Stan Shebs (shebs@andros.cygnus.com)
  7870. * bfd-in.h: (bfd_boolean): Add workaround for systems that also
  7871. define true and false as enums.
  7872. (ALMOST_STDC): Add as alternative to __STDC__.
  7873. * bfd-in2.h: Rebuilt.
  7874. * syms.c (bfd_print_symbol_vandf): Convert a PTR to FILE*.
  7875. Thu Jan 6 14:24:44 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  7876. * aoutx.h (translate_to_native_sym_flags): Catch the case where
  7877. there is no output section.
  7878. Thu Jan 6 14:37:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7879. * nlmcode.h (nlm_object_p): If we can't read the fixed header,
  7880. count it as a wrong format error, not a system call error, since
  7881. the object file might simply be too small.
  7882. * targets.c (target_vector): Added nlm32_alpha_vec inside #ifdef
  7883. BFD64.
  7884. * Makefile.in (BFD32_BACKENDS): Remove nlm32-alpha.o.
  7885. (BFD64_BACKENDS): Add nlm32-alpha.o. It depends on 64 bit
  7886. support, even though it is for an Alpha in 32 bit mode.
  7887. * configure.in (nlm32_alpha_vec): Set target64 to true.
  7888. * nlm32-gen.c, nlm64-gen.c: Removed. All nlm targets are
  7889. different, so there is no point to providing a generic one.
  7890. * libnlm.h: Don't bother to check for nlm_backend(bfd) being NULL
  7891. in the backend accessor macros; that should no longer be possible.
  7892. * targets.c (target_vector): Removed nlm32_big_generic_vec,
  7893. nlm64_big_generic_vec, nlm64_little_generic_vec.
  7894. * configure.in (nlm32_big_generic_vec, nlm32_little_generic_vec,
  7895. nlm64_big_generic_vec, nlm64_little_generic_vec): Removed.
  7896. * Makefile.in: Rebuilt dependencies, and
  7897. (BFD32_BACKENDS): Removed nlm32-gen.o.
  7898. (BFD64_BACKENDS): Removed nlm64-gen.o.
  7899. (CFILES): Removed nlm32-gen.c and nlm64-gen.c.
  7900. * hp300hpux.c (ARCH_SIZE): Define before including aoutx.h.
  7901. * linker.c (_bfd_generic_link_add_one_symbol): Add constructor and
  7902. bitsize arguments. Changed all callers (aoutx.h).
  7903. * libbfd-in.h (_bfd_generic_link_add_one_symbol): Add constructor
  7904. and bitsize arguments to declaration.
  7905. * libbfd.h: Rebuilt.
  7906. * ecoff.c: First cut at new style of linker backend for
  7907. ECOFF--added a bunch of functions. Also:
  7908. (ecoff_sec_to_styp_flags): Set flags for .pdata and .xdata.
  7909. (ecoff_slurp_symbolic_header): New function.
  7910. (ecoff_slurp_symbolic_info): Call ecoff_slurp_symbolic_header.
  7911. (ecoff_compute_reloc_file_positions): New function.
  7912. (ecoff_set_section_contents): Get out quickly if count is zero.
  7913. Check errors better.
  7914. (ecoff_write_object_contents): Put .xdata section in data segment.
  7915. Call ecoff_compute_reloc_file_positions. Don't output relocs or
  7916. external symbols if outsymbols is NULL.
  7917. (ecoff_bfd_final_link): Completely rewritten.
  7918. * libecoff.h: Include bfdlink.h.
  7919. (struct ecoff_backend_data): Add relocate_section field.
  7920. (ecoff_data_type): Add sym_hashes and symndx_to_section fields.
  7921. (struct ecoff_link_hash_entry): Define.
  7922. (struct ecoff_link_hash_table): Define.
  7923. (ecoff_bfd_link_add_symbols): Declare as function, not macro.
  7924. (ecoff_bfd_link_hash_table_create): Likewise.
  7925. * ecofflink.c (bfd_ecoff_debug_one_external): New function.
  7926. (bfd_ecoff_debug_externals): Call bfd_ecoff_debug_one_external.
  7927. * bfd-in.h (bfd_ecoff_debug_one_external): Declare.
  7928. * bfd-in2.h: Rebuilt.
  7929. * coff-alpha.c (alpha_howto_table): Mark BRADDR as
  7930. partial_inplace, and set the src_mask to 0x1fffff.
  7931. (alpha_ecoff_get_relocated_section_contents): Remove unused
  7932. variable gp_warned.
  7933. (alpha_convert_external_reloc): New static function.
  7934. (alpha_relocate_section): New static function.
  7935. (alpha_ecoff_backend_data): Initialize relocate_section field.
  7936. * coff-mips.c (mips_relocate_refhi): New static function.
  7937. (mips_relocate_section): New static function.
  7938. (mips_ecoff_backend_data): Initialize relocate_section field.
  7939. * reloc.c (_bfd_relocate_contents): Corrected signed overflow
  7940. checking when there is an addend.
  7941. * aoutx.h (NAME(aout,final_link)): Don't abort when trying to link
  7942. a non a.out file, just pass it to _bfd_default_link_order.
  7943. (aout_link_input_section_std): When doing a final PC relative link
  7944. against a section symbol, subtract the VMA of the input section.
  7945. (aout_link_input_section_ext): Likewise.
  7946. * linker.c (default_indirect_link_order): Renamed from
  7947. _bfd_generic_indirect_link_order and made static.
  7948. (_bfd_generic_final_link): Don't switch on link_order type, just
  7949. call _bfd_default_link_order.
  7950. (_bfd_default_link_order): Handle bfd_indirect_link_order type.
  7951. * genlink.h: Removed declaration of
  7952. _bfd_generic_indirect_link_order.
  7953. * elf32-mips.c (mips_elf_final_link): Don't switch on link_order
  7954. type, just call _bfd_default_link_order.
  7955. Tue Jan 4 21:23:37 1994 Ian Lance Taylor (ian@cygnus.com)
  7956. * linker.c (generic_link_check_archive_element): Base the name of
  7957. the created common section on the name of the section the symbol
  7958. came from.
  7959. (_bfd_generic_link_add_one_symbol): (case BIG): A common symbol
  7960. must have a section, so don't bother to create one.
  7961. Mon Jan 3 15:32:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  7962. * aout-target.h (MY(vec)): Add DYNAMIC to mask of object flags.
  7963. * aoutf1.h (NAME(aout,sunos4_write_object_contents)):
  7964. If the DYNAMIC flag is set, set it in the exec header.
  7965. * aoutx.h (NAME(aout,some_aout_object_p)): If the object is
  7966. dynamically linked, set the DYNAMIC flag in the BFD.
  7967. * libaout.h (N_SET_DYNAMIC): New macro.
  7968. (N_DYNAMIC): Add missing 0 in mask.
  7969. Mon Jan 3 11:41:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
  7970. * ecoff.c (ecoff_get_extr): Don't output section symbols as
  7971. external symbols.
  7972. * bfd-in.h, hash.c: Change bfd_hash_allocate argument from size_t
  7973. to unsigned int, because size_t may not be defined in bfd.h.
  7974. * bfd-in2.h: Rebuilt.
  7975. * bfd-in.h (bfd_get{b,l}[_signed_]{16,32,64}): Declare argument to
  7976. be a const pointer.
  7977. * bfd-in2.h: Rebuilt.
  7978. * libbfd.c (bfd_get{b,l}[_signed_]{16,32,64}): Declare argument to
  7979. be a const pointer.
  7980. * targets.c (bfd_target): Change swap function pointers
  7981. accordingly.
  7982. * archive.c (do_slurp_coff_armap): Change swap accordingly.
  7983. * aix386-core.c: Change NO_GET and NO_GETS accordingly.
  7984. * hppabsd-core.c, hpux-core.c, irix-core.c, osf-core.c,
  7985. ptrace-core.c, trad-core.c: Change NO_GET and NO_SIGNED_GET
  7986. accordingly.
  7987. * libbfd-in.h (struct artdata): Added tdata field.
  7988. (_bfd_add_bfd_to_archive_cache): Declare.
  7989. (_bfd_get_elt_at_filepos): Declare.
  7990. (_bfd_snarf_ar_hdr): Renamed from snarf_ar_hdr.
  7991. * libbfd.h: Rebuilt.
  7992. * archive.c: Cleaned up some more.
  7993. (_bfd_generic_mkarchive, bfd_generic_archive_p): Initialize
  7994. pointer elements of artdata.
  7995. (_bfd_add_bfd_to_archive_cache): Renamed from add_bfd_to_cache.
  7996. (_bfd_snarf_ar_hdr): Renamed from snarf_ar_hdr.
  7997. (_bfd_get_elt_at_filepos): Renamed from get_elt_at_filepos.
  7998. (get_extended_arelt_filename, bfd_construct_extended_name_table,
  7999. bfd_ar_hdr_from_filesystem, compute_and_write_armap): Made static.
  8000. * ecoff.c: Some comment changes.
  8001. (ecoff_slurp_armap): Handle rename of snarf_ar_hdr. Set
  8002. ardata->tdata to raw_armap.
  8003. (ecoff_archive_p): Initialize pointer elements of artdata.
  8004. * coff-rs6000.c (rs6000coff_get_elt_at_filepos): Handle rename of
  8005. add_bfd_to_cache.
  8006. * hash.c: Added some documentation.
  8007. Mon Jan 3 11:09:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
  8008. * aout-target.h, netbsd386.c: Replace NO_SWAP_MAGIC with SWAP_MAGIC,
  8009. and do the swapping here rather than calling ntohl from the N_*
  8010. macros. This cleans up assumptions about the size of a host long,
  8011. the existence to ntohl, etc.
  8012. Sat Jan 1 13:50:05 1994 Rob Savoye (rob@darkstar.cygnus.com)
  8013. * config.bfd: Add support for VSTa micro-kernel. It currently uses
  8014. i386-aout.
  8015. Sat Jan 1 10:18:54 1994 David J. Mackenzie (djm@thepub.cygnus.com)
  8016. * hosts/i386mach3.h (HOST_SEGMENT_SIZE): Fix value.
  8017. * i386mach3.c (SEGMENT_SIZE): Fix value.
  8018. For older changes see ChangeLog-9193
  8019. Copyright (C) 1994-1995 Free Software Foundation, Inc.
  8020. Copying and distribution of this file, with or without modification,
  8021. are permitted in any medium without royalty provided the copyright
  8022. notice and this notice are preserved.
  8023. Local Variables:
  8024. mode: change-log
  8025. left-margin: 8
  8026. fill-column: 74
  8027. version-control: never
  8028. End: